28 |
|
/// </summary> |
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.ScracthPadSaver = new System.Windows.Forms.SaveFileDialog(); |
36 |
+ |
this.ScracthPadLoader = new System.Windows.Forms.OpenFileDialog(); |
37 |
+ |
this.txtScratchPad = new System.Windows.Forms.RichTextBox(); |
38 |
+ |
this.toolStrip1.SuspendLayout(); |
39 |
|
this.SuspendLayout(); |
40 |
|
// |
41 |
+ |
// toolStrip1 |
42 |
+ |
// |
43 |
+ |
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
44 |
+ |
this.mnuItemSave, |
45 |
+ |
this.mnuItemOpen}); |
46 |
+ |
this.toolStrip1.Location = new System.Drawing.Point(0, 0); |
47 |
+ |
this.toolStrip1.Name = "toolStrip1"; |
48 |
+ |
this.toolStrip1.Size = new System.Drawing.Size(743, 25); |
49 |
+ |
this.toolStrip1.TabIndex = 0; |
50 |
+ |
this.toolStrip1.Text = "toolStrip1"; |
51 |
+ |
// |
52 |
+ |
// mnuItemSave |
53 |
+ |
// |
54 |
+ |
this.mnuItemSave.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; |
55 |
+ |
this.mnuItemSave.Image = ((System.Drawing.Image)(resources.GetObject("mnuItemSave.Image"))); |
56 |
+ |
this.mnuItemSave.ImageTransparentColor = System.Drawing.Color.Magenta; |
57 |
+ |
this.mnuItemSave.Name = "mnuItemSave"; |
58 |
+ |
this.mnuItemSave.Size = new System.Drawing.Size(35, 22); |
59 |
+ |
this.mnuItemSave.Text = "&Save"; |
60 |
+ |
this.mnuItemSave.Click += new System.EventHandler(this.mnuItemSave_Click); |
61 |
+ |
// |
62 |
+ |
// mnuItemOpen |
63 |
+ |
// |
64 |
+ |
this.mnuItemOpen.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; |
65 |
+ |
this.mnuItemOpen.Image = ((System.Drawing.Image)(resources.GetObject("mnuItemOpen.Image"))); |
66 |
+ |
this.mnuItemOpen.ImageTransparentColor = System.Drawing.Color.Magenta; |
67 |
+ |
this.mnuItemOpen.Name = "mnuItemOpen"; |
68 |
+ |
this.mnuItemOpen.Size = new System.Drawing.Size(40, 22); |
69 |
+ |
this.mnuItemOpen.Text = "&Open"; |
70 |
+ |
this.mnuItemOpen.Click += new System.EventHandler(this.mnuItemOpen_Click); |
71 |
+ |
// |
72 |
+ |
// ScracthPadSaver |
73 |
+ |
// |
74 |
+ |
this.ScracthPadSaver.DefaultExt = "txt"; |
75 |
+ |
this.ScracthPadSaver.Filter = "Text Files|*.txt|All Files|*.*"; |
76 |
+ |
this.ScracthPadSaver.SupportMultiDottedExtensions = true; |
77 |
+ |
this.ScracthPadSaver.Title = "Please choose the fail to save"; |
78 |
+ |
// |
79 |
+ |
// ScracthPadLoader |
80 |
+ |
// |
81 |
+ |
this.ScracthPadLoader.DefaultExt = "txt"; |
82 |
+ |
this.ScracthPadLoader.Filter = "Text Files|*.txt|All Files|*.*"; |
83 |
+ |
this.ScracthPadLoader.SupportMultiDottedExtensions = true; |
84 |
+ |
this.ScracthPadLoader.Title = "Please choose the file to load"; |
85 |
+ |
// |
86 |
+ |
// txtScratchPad |
87 |
+ |
// |
88 |
+ |
this.txtScratchPad.Dock = System.Windows.Forms.DockStyle.Fill; |
89 |
+ |
this.txtScratchPad.ForeColor = System.Drawing.SystemColors.GrayText; |
90 |
+ |
this.txtScratchPad.Location = new System.Drawing.Point(0, 25); |
91 |
+ |
this.txtScratchPad.Name = "txtScratchPad"; |
92 |
+ |
this.txtScratchPad.Size = new System.Drawing.Size(743, 362); |
93 |
+ |
this.txtScratchPad.TabIndex = 1; |
94 |
+ |
this.txtScratchPad.Text = ""; |
95 |
+ |
this.txtScratchPad.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtScratchPad_KeyDown); |
96 |
+ |
this.txtScratchPad.MouseDown += new System.Windows.Forms.MouseEventHandler(this.txtScratchPad_MouseDown); |
97 |
+ |
// |
98 |
|
// ScratchPad |
99 |
|
// |
100 |
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
101 |
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
102 |
< |
this.ClientSize = new System.Drawing.Size(284, 262); |
102 |
> |
this.ClientSize = new System.Drawing.Size(743, 387); |
103 |
> |
this.Controls.Add(this.txtScratchPad); |
104 |
> |
this.Controls.Add(this.toolStrip1); |
105 |
|
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
106 |
|
this.Name = "ScratchPad"; |
107 |
|
this.Text = "Scratch Pad"; |
108 |
+ |
this.toolStrip1.ResumeLayout(false); |
109 |
+ |
this.toolStrip1.PerformLayout(); |
110 |
|
this.ResumeLayout(false); |
111 |
+ |
this.PerformLayout(); |
112 |
|
|
113 |
|
} |
114 |
|
|
115 |
|
#endregion |
116 |
+ |
|
117 |
+ |
private System.Windows.Forms.ToolStrip toolStrip1; |
118 |
+ |
private System.Windows.Forms.ToolStripButton mnuItemSave; |
119 |
+ |
private System.Windows.Forms.ToolStripButton mnuItemOpen; |
120 |
+ |
private System.Windows.Forms.SaveFileDialog ScracthPadSaver; |
121 |
+ |
private System.Windows.Forms.OpenFileDialog ScracthPadLoader; |
122 |
+ |
private System.Windows.Forms.RichTextBox txtScratchPad; |
123 |
|
} |
124 |
|
} |