29 |
|
private void InitializeComponent() |
30 |
|
{ |
31 |
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ScratchPad)); |
32 |
– |
this.toolStrip1 = new System.Windows.Forms.ToolStrip(); |
33 |
– |
this.mnuItemSave = new System.Windows.Forms.ToolStripButton(); |
34 |
– |
this.mnuItemOpen = new System.Windows.Forms.ToolStripButton(); |
35 |
– |
this.mnuItemUndo = new System.Windows.Forms.ToolStripButton(); |
36 |
– |
this.mnuItemRedo = new System.Windows.Forms.ToolStripButton(); |
37 |
– |
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); |
38 |
– |
this.mnuItemCopy = new System.Windows.Forms.ToolStripButton(); |
39 |
– |
this.mnuItemPaste = new System.Windows.Forms.ToolStripButton(); |
32 |
|
this.ScracthPadSaver = new System.Windows.Forms.SaveFileDialog(); |
33 |
|
this.ScracthPadLoader = new System.Windows.Forms.OpenFileDialog(); |
34 |
< |
this.txtScratchPad = new System.Windows.Forms.RichTextBox(); |
34 |
> |
this.tb = new System.Windows.Forms.TabControl(); |
35 |
> |
this.toolStrip1 = new System.Windows.Forms.ToolStrip(); |
36 |
> |
this.mnuItemNew = new System.Windows.Forms.ToolStripButton(); |
37 |
|
this.toolStrip1.SuspendLayout(); |
38 |
|
this.SuspendLayout(); |
39 |
|
// |
46 |
– |
// toolStrip1 |
47 |
– |
// |
48 |
– |
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
49 |
– |
this.mnuItemSave, |
50 |
– |
this.mnuItemOpen, |
51 |
– |
this.mnuItemUndo, |
52 |
– |
this.mnuItemRedo, |
53 |
– |
this.toolStripButton2, |
54 |
– |
this.mnuItemCopy, |
55 |
– |
this.mnuItemPaste}); |
56 |
– |
this.toolStrip1.Location = new System.Drawing.Point(0, 0); |
57 |
– |
this.toolStrip1.Name = "toolStrip1"; |
58 |
– |
this.toolStrip1.Size = new System.Drawing.Size(743, 25); |
59 |
– |
this.toolStrip1.TabIndex = 0; |
60 |
– |
this.toolStrip1.Text = "toolStrip1"; |
61 |
– |
// |
62 |
– |
// mnuItemSave |
63 |
– |
// |
64 |
– |
this.mnuItemSave.BackColor = System.Drawing.SystemColors.ControlLight; |
65 |
– |
this.mnuItemSave.Image = ((System.Drawing.Image)(resources.GetObject("mnuItemSave.Image"))); |
66 |
– |
this.mnuItemSave.ImageTransparentColor = System.Drawing.Color.Magenta; |
67 |
– |
this.mnuItemSave.Name = "mnuItemSave"; |
68 |
– |
this.mnuItemSave.Size = new System.Drawing.Size(51, 22); |
69 |
– |
this.mnuItemSave.Text = "&Save"; |
70 |
– |
this.mnuItemSave.Click += new System.EventHandler(this.mnuItemSave_Click); |
71 |
– |
// |
72 |
– |
// mnuItemOpen |
73 |
– |
// |
74 |
– |
this.mnuItemOpen.BackColor = System.Drawing.SystemColors.ControlLight; |
75 |
– |
this.mnuItemOpen.Image = ((System.Drawing.Image)(resources.GetObject("mnuItemOpen.Image"))); |
76 |
– |
this.mnuItemOpen.ImageTransparentColor = System.Drawing.Color.Magenta; |
77 |
– |
this.mnuItemOpen.Name = "mnuItemOpen"; |
78 |
– |
this.mnuItemOpen.Size = new System.Drawing.Size(56, 22); |
79 |
– |
this.mnuItemOpen.Text = "&Open"; |
80 |
– |
this.mnuItemOpen.Click += new System.EventHandler(this.mnuItemOpen_Click); |
81 |
– |
// |
82 |
– |
// mnuItemUndo |
83 |
– |
// |
84 |
– |
this.mnuItemUndo.BackColor = System.Drawing.SystemColors.ControlLight; |
85 |
– |
this.mnuItemUndo.Image = ((System.Drawing.Image)(resources.GetObject("mnuItemUndo.Image"))); |
86 |
– |
this.mnuItemUndo.ImageTransparentColor = System.Drawing.Color.Magenta; |
87 |
– |
this.mnuItemUndo.Name = "mnuItemUndo"; |
88 |
– |
this.mnuItemUndo.Size = new System.Drawing.Size(56, 22); |
89 |
– |
this.mnuItemUndo.Text = "&Undo"; |
90 |
– |
this.mnuItemUndo.Click += new System.EventHandler(this.mnuItemUndo_Click); |
91 |
– |
// |
92 |
– |
// mnuItemRedo |
93 |
– |
// |
94 |
– |
this.mnuItemRedo.BackColor = System.Drawing.SystemColors.ControlLight; |
95 |
– |
this.mnuItemRedo.Image = ((System.Drawing.Image)(resources.GetObject("mnuItemRedo.Image"))); |
96 |
– |
this.mnuItemRedo.ImageTransparentColor = System.Drawing.Color.Magenta; |
97 |
– |
this.mnuItemRedo.Name = "mnuItemRedo"; |
98 |
– |
this.mnuItemRedo.Size = new System.Drawing.Size(54, 22); |
99 |
– |
this.mnuItemRedo.Text = "&Redo"; |
100 |
– |
this.mnuItemRedo.Click += new System.EventHandler(this.mnuItemRedo_Click); |
101 |
– |
// |
102 |
– |
// toolStripButton2 |
103 |
– |
// |
104 |
– |
this.toolStripButton2.BackColor = System.Drawing.SystemColors.ControlLight; |
105 |
– |
this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image"))); |
106 |
– |
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta; |
107 |
– |
this.toolStripButton2.Name = "toolStripButton2"; |
108 |
– |
this.toolStripButton2.Size = new System.Drawing.Size(54, 22); |
109 |
– |
this.toolStripButton2.Text = "&Clear"; |
110 |
– |
this.toolStripButton2.Click += new System.EventHandler(this.mnuItemClear_Click); |
111 |
– |
// |
112 |
– |
// mnuItemCopy |
113 |
– |
// |
114 |
– |
this.mnuItemCopy.BackColor = System.Drawing.SystemColors.ControlLight; |
115 |
– |
this.mnuItemCopy.Image = ((System.Drawing.Image)(resources.GetObject("mnuItemCopy.Image"))); |
116 |
– |
this.mnuItemCopy.ImageTransparentColor = System.Drawing.Color.Magenta; |
117 |
– |
this.mnuItemCopy.Name = "mnuItemCopy"; |
118 |
– |
this.mnuItemCopy.Size = new System.Drawing.Size(55, 22); |
119 |
– |
this.mnuItemCopy.Text = "C&opy"; |
120 |
– |
this.mnuItemCopy.Click += new System.EventHandler(this.mnuItemCopy_Click); |
121 |
– |
// |
122 |
– |
// mnuItemPaste |
123 |
– |
// |
124 |
– |
this.mnuItemPaste.BackColor = System.Drawing.SystemColors.ControlLight; |
125 |
– |
this.mnuItemPaste.Image = ((System.Drawing.Image)(resources.GetObject("mnuItemPaste.Image"))); |
126 |
– |
this.mnuItemPaste.ImageTransparentColor = System.Drawing.Color.Magenta; |
127 |
– |
this.mnuItemPaste.Name = "mnuItemPaste"; |
128 |
– |
this.mnuItemPaste.Size = new System.Drawing.Size(55, 22); |
129 |
– |
this.mnuItemPaste.Text = "&Paste"; |
130 |
– |
this.mnuItemPaste.Click += new System.EventHandler(this.mnuItemPaste_Click); |
131 |
– |
// |
40 |
|
// ScracthPadSaver |
41 |
|
// |
42 |
|
this.ScracthPadSaver.DefaultExt = "txt"; |
51 |
|
this.ScracthPadLoader.SupportMultiDottedExtensions = true; |
52 |
|
this.ScracthPadLoader.Title = "Please choose the file to load"; |
53 |
|
// |
54 |
< |
// txtScratchPad |
54 |
> |
// tb |
55 |
|
// |
56 |
< |
this.txtScratchPad.Dock = System.Windows.Forms.DockStyle.Fill; |
57 |
< |
this.txtScratchPad.Font = new System.Drawing.Font("Segoe UI Mono", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
58 |
< |
this.txtScratchPad.ForeColor = System.Drawing.SystemColors.GrayText; |
59 |
< |
this.txtScratchPad.Location = new System.Drawing.Point(0, 25); |
60 |
< |
this.txtScratchPad.Name = "txtScratchPad"; |
61 |
< |
this.txtScratchPad.Size = new System.Drawing.Size(743, 362); |
62 |
< |
this.txtScratchPad.TabIndex = 1; |
63 |
< |
this.txtScratchPad.Text = "This is a test"; |
64 |
< |
this.txtScratchPad.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.txtScratchPad_LinkClicked); |
65 |
< |
this.txtScratchPad.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtScratchPad_KeyDown); |
66 |
< |
this.txtScratchPad.MouseDown += new System.Windows.Forms.MouseEventHandler(this.txtScratchPad_MouseDown); |
56 |
> |
this.tb.Dock = System.Windows.Forms.DockStyle.Fill; |
57 |
> |
this.tb.Location = new System.Drawing.Point(0, 25); |
58 |
> |
this.tb.Name = "tb"; |
59 |
> |
this.tb.SelectedIndex = 0; |
60 |
> |
this.tb.Size = new System.Drawing.Size(743, 362); |
61 |
> |
this.tb.TabIndex = 1; |
62 |
> |
// |
63 |
> |
// toolStrip1 |
64 |
> |
// |
65 |
> |
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
66 |
> |
this.mnuItemNew}); |
67 |
> |
this.toolStrip1.Location = new System.Drawing.Point(0, 0); |
68 |
> |
this.toolStrip1.Name = "toolStrip1"; |
69 |
> |
this.toolStrip1.Size = new System.Drawing.Size(743, 25); |
70 |
> |
this.toolStrip1.TabIndex = 2; |
71 |
> |
this.toolStrip1.Text = "toolStrip1"; |
72 |
> |
// |
73 |
> |
// mnuItemNew |
74 |
> |
// |
75 |
> |
this.mnuItemNew.Image = ((System.Drawing.Image)(resources.GetObject("mnuItemNew.Image"))); |
76 |
> |
this.mnuItemNew.ImageTransparentColor = System.Drawing.Color.Magenta; |
77 |
> |
this.mnuItemNew.Name = "mnuItemNew"; |
78 |
> |
this.mnuItemNew.Size = new System.Drawing.Size(51, 22); |
79 |
> |
this.mnuItemNew.Text = "&New"; |
80 |
> |
this.mnuItemNew.Click += new System.EventHandler(this.mnuItemNew_Click); |
81 |
|
// |
82 |
|
// ScratchPad |
83 |
|
// |
84 |
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
85 |
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
86 |
|
this.ClientSize = new System.Drawing.Size(743, 387); |
87 |
< |
this.Controls.Add(this.txtScratchPad); |
87 |
> |
this.Controls.Add(this.tb); |
88 |
|
this.Controls.Add(this.toolStrip1); |
89 |
|
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
90 |
|
this.Name = "ScratchPad"; |
91 |
|
this.Text = "Scratch Pad"; |
92 |
|
this.Deactivate += new System.EventHandler(this.ScratchPad_Deactivate); |
93 |
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ScratchPad_FormClosing); |
94 |
+ |
this.Load += new System.EventHandler(this.ScratchPad_Load); |
95 |
|
this.toolStrip1.ResumeLayout(false); |
96 |
|
this.toolStrip1.PerformLayout(); |
97 |
|
this.ResumeLayout(false); |
101 |
|
|
102 |
|
#endregion |
103 |
|
|
181 |
– |
private System.Windows.Forms.ToolStrip toolStrip1; |
182 |
– |
private System.Windows.Forms.ToolStripButton mnuItemSave; |
183 |
– |
private System.Windows.Forms.ToolStripButton mnuItemOpen; |
104 |
|
private System.Windows.Forms.SaveFileDialog ScracthPadSaver; |
105 |
|
private System.Windows.Forms.OpenFileDialog ScracthPadLoader; |
106 |
< |
private System.Windows.Forms.RichTextBox txtScratchPad; |
107 |
< |
private System.Windows.Forms.ToolStripButton mnuItemUndo; |
108 |
< |
private System.Windows.Forms.ToolStripButton mnuItemRedo; |
189 |
< |
private System.Windows.Forms.ToolStripButton mnuItemPaste; |
190 |
< |
private System.Windows.Forms.ToolStripButton toolStripButton2; |
191 |
< |
private System.Windows.Forms.ToolStripButton mnuItemCopy; |
106 |
> |
private System.Windows.Forms.TabControl tb; |
107 |
> |
private System.Windows.Forms.ToolStrip toolStrip1; |
108 |
> |
private System.Windows.Forms.ToolStripButton mnuItemNew; |
109 |
|
} |
110 |
|
} |