Subversion Repositories DevTools

Rev

Rev 2088 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2088 Rev 2094
Line 10... Line 10...
10
	/// Summary description for AboutForm.
10
	/// Summary description for AboutForm.
11
	/// </summary>
11
	/// </summary>
12
	public class AboutForm : System.Windows.Forms.Form
12
	public class AboutForm : System.Windows.Forms.Form
13
	{
13
	{
14
      private System.Windows.Forms.Label label1;
14
      private System.Windows.Forms.Label label1;
15
      private System.Windows.Forms.Label label3;
15
      private System.Windows.Forms.LinkLabel linkLabel1;
16
		/// <summary>
16
		/// <summary>
17
		/// Required designer variable.
17
		/// Required designer variable.
18
		/// </summary>
18
		/// </summary>
19
		private System.ComponentModel.Container components = null;
19
		private System.ComponentModel.Container components = null;
20
 
20
 
Line 23... Line 23...
23
			//
23
			//
24
			// Required for Windows Form Designer support
24
			// Required for Windows Form Designer support
25
			//
25
			//
26
			InitializeComponent();
26
			InitializeComponent();
27
 
27
 
-
 
28
         this.linkLabel1.Links[0].LinkData = "http://bms/docRegister/docDetail.asp?docnum=TECHGP-00177";
-
 
29
 
28
			//
30
			//
29
			// TODO: Add any constructor code after InitializeComponent call
31
			// TODO: Add any constructor code after InitializeComponent call
30
			//
32
			//
31
		}
33
		}
32
 
34
 
Line 51... Line 53...
51
		/// the contents of this method with the code editor.
53
		/// the contents of this method with the code editor.
52
		/// </summary>
54
		/// </summary>
53
		private void InitializeComponent()
55
		private void InitializeComponent()
54
		{
56
		{
55
         this.label1 = new System.Windows.Forms.Label();
57
         this.label1 = new System.Windows.Forms.Label();
56
         this.label3 = new System.Windows.Forms.Label();
58
         this.linkLabel1 = new System.Windows.Forms.LinkLabel();
57
         this.SuspendLayout();
59
         this.SuspendLayout();
58
         // 
60
         // 
59
         // label1
61
         // label1
60
         // 
62
         // 
61
         this.label1.Location = new System.Drawing.Point(24, 8);
63
         this.label1.Location = new System.Drawing.Point(24, 8);
62
         this.label1.Name = "label1";
64
         this.label1.Name = "label1";
63
         this.label1.Size = new System.Drawing.Size(248, 40);
65
         this.label1.Size = new System.Drawing.Size(320, 56);
64
         this.label1.TabIndex = 0;
66
         this.label1.TabIndex = 0;
65
         this.label1.Text = "ERG Enterprise Architect Document Generation Addin";
67
         this.label1.Text = "ERG Enterprise Architect Document Generation Addin.";
66
         // 
68
         // 
67
         // label3
69
         // linkLabel1
68
         // 
70
         // 
69
         this.label3.Location = new System.Drawing.Point(24, 56);
71
         this.linkLabel1.Location = new System.Drawing.Point(16, 96);
70
         this.label3.Name = "label3";
72
         this.linkLabel1.Name = "linkLabel1";
71
         this.label3.Size = new System.Drawing.Size(256, 40);
73
         this.linkLabel1.Size = new System.Drawing.Size(328, 16);
72
         this.label3.TabIndex = 2;
74
         this.linkLabel1.TabIndex = 3;
-
 
75
         this.linkLabel1.TabStop = true;
73
         this.label3.Text = "See TECHGP-00177 EA_DocGen User Manual";
76
         this.linkLabel1.Text = "see TECHGP-00177 EA_DocGen User Manaual";
-
 
77
         this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
74
         // 
78
         // 
75
         // Form1
79
         // AboutForm
76
         // 
80
         // 
77
         this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
81
         this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
78
         this.ClientSize = new System.Drawing.Size(292, 120);
82
         this.ClientSize = new System.Drawing.Size(360, 144);
79
         this.Controls.Add(this.label3);
83
         this.Controls.Add(this.linkLabel1);
80
         this.Controls.Add(this.label1);
84
         this.Controls.Add(this.label1);
81
         this.Name = "Form1";
85
         this.Name = "AboutForm";
82
         this.Text = "About";
86
         this.Text = "About";
83
         this.ResumeLayout(false);
87
         this.ResumeLayout(false);
84
 
88
 
85
      }
89
      }
86
		#endregion
90
		#endregion
87
 
91
 
-
 
92
      private void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
-
 
93
      {
-
 
94
         // Determine which link was clicked within the LinkLabel.
-
 
95
         this.linkLabel1.Links[linkLabel1.Links.IndexOf(e.Link)].Visited = true;
-
 
96
 
-
 
97
         // Display the appropriate link based on the value of the 
-
 
98
         // LinkData property of the Link object.
-
 
99
         string target = e.Link.LinkData as string;
-
 
100
 
-
 
101
         // If the value looks like a URL, navigate to it.
-
 
102
         // Otherwise, display it in a message box.
-
 
103
         if(null != target && target.StartsWith("http"))
-
 
104
         {
-
 
105
            System.Diagnostics.Process.Start(target);
-
 
106
         }
-
 
107
         else
-
 
108
         {    
-
 
109
            MessageBox.Show("Item clicked: " + target);
-
 
110
         }
-
 
111
     
-
 
112
      }
-
 
113
 
-
 
114
 
-
 
115
 
88
 
116
 
89
	}
117
	}
90
}
118
}