HamBook – Diff between revs 47 and 51

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 47 Rev 51
Line 16... Line 16...
16 private void InitializeComponent() 16 private void InitializeComponent()
17 { 17 {
18 this.components = new System.ComponentModel.Container(); 18 this.components = new System.ComponentModel.Container();
19 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MemoryOrganizerForm)); 19 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MemoryOrganizerForm));
20 this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); 20 this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
21 this.dataGridView1 = new HamBook.Utilities.Controls.DoubleBufferedDataGridView(); -  
22 this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); 21 this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
-   22 this.fromVFOAToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
-   23 this.fromVFOBToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
-   24 this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
-   25 this.goToToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
-   26 this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
23 this.readToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 27 this.readToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
24 this.writeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 28 this.writeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
25 this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); 29 this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
26 this.button1 = new System.Windows.Forms.Button(); 30 this.button1 = new System.Windows.Forms.Button();
27 this.button2 = new System.Windows.Forms.Button(); 31 this.button2 = new System.Windows.Forms.Button();
Line 32... Line 36...
32 this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 36 this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
33 this.importToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 37 this.importToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
34 this.exportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 38 this.exportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
35 this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); 39 this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
36 this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); 40 this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
-   41 this.memoryChannelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
-   42 this.frequencyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
-   43 this.dataGridView1 = new HamBook.Utilities.Controls.DoubleBufferedDataGridView();
37 this.tableLayoutPanel1.SuspendLayout(); 44 this.tableLayoutPanel1.SuspendLayout();
38 ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); -  
39 this.contextMenuStrip1.SuspendLayout(); 45 this.contextMenuStrip1.SuspendLayout();
40 this.tableLayoutPanel2.SuspendLayout(); 46 this.tableLayoutPanel2.SuspendLayout();
41 this.statusStrip1.SuspendLayout(); 47 this.statusStrip1.SuspendLayout();
42 this.menuStrip1.SuspendLayout(); 48 this.menuStrip1.SuspendLayout();
-   49 ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
43 this.SuspendLayout(); 50 this.SuspendLayout();
44 // 51 //
45 // tableLayoutPanel1 52 // tableLayoutPanel1
46 // 53 //
47 this.tableLayoutPanel1.ColumnCount = 1; 54 this.tableLayoutPanel1.ColumnCount = 1;
Line 57... Line 64...
57 this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F)); 64 this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
58 this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); 65 this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
59 this.tableLayoutPanel1.Size = new System.Drawing.Size(1101, 431); 66 this.tableLayoutPanel1.Size = new System.Drawing.Size(1101, 431);
60 this.tableLayoutPanel1.TabIndex = 1; 67 this.tableLayoutPanel1.TabIndex = 1;
61 // 68 //
62 // dataGridView1 -  
63 // -  
64 this.dataGridView1.AllowUserToAddRows = false; -  
65 this.dataGridView1.AllowUserToDeleteRows = false; -  
66 this.dataGridView1.AllowUserToResizeRows = false; -  
67 this.dataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; -  
68 this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; -  
69 this.dataGridView1.ContextMenuStrip = this.contextMenuStrip1; -  
70 this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; -  
71 this.dataGridView1.DoubleBuffered = true; -  
72 this.dataGridView1.Location = new System.Drawing.Point(3, 3); -  
73 this.dataGridView1.Name = "dataGridView1"; -  
74 this.dataGridView1.RowHeadersVisible = false; -  
75 this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; -  
76 this.dataGridView1.Size = new System.Drawing.Size(1095, 365); -  
77 this.dataGridView1.TabIndex = 0; -  
78 this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridView1_CellContentClick); -  
79 this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridView_CellDoubleClick); -  
80 this.dataGridView1.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridView1_CellEndEdit); -  
81 this.dataGridView1.CellMouseUp += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.DataGridView1_CellMouseUp); -  
82 this.dataGridView1.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridView1_CellValueChanged); -  
83 this.dataGridView1.CurrentCellDirtyStateChanged += new System.EventHandler(this.DataGridView1_CurrentCellDirtyStateChanged); -  
84 this.dataGridView1.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.DataGridView1_DataError); -  
85 // -  
86 // contextMenuStrip1 69 // contextMenuStrip1
87 // 70 //
88 this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { 71 this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
-   72 this.fromVFOAToolStripMenuItem,
-   73 this.fromVFOBToolStripMenuItem,
-   74 this.toolStripSeparator2,
-   75 this.goToToolStripMenuItem,
-   76 this.toolStripSeparator1,
89 this.readToolStripMenuItem, 77 this.readToolStripMenuItem,
90 this.writeToolStripMenuItem}); 78 this.writeToolStripMenuItem});
91 this.contextMenuStrip1.Name = "contextMenuStrip1"; 79 this.contextMenuStrip1.Name = "contextMenuStrip1";
92 this.contextMenuStrip1.Size = new System.Drawing.Size(103, 48); 80 this.contextMenuStrip1.Size = new System.Drawing.Size(168, 126);
-   81 //
-   82 // fromVFOAToolStripMenuItem
-   83 //
-   84 this.fromVFOAToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("fromVFOAToolStripMenuItem.Image")));
-   85 this.fromVFOAToolStripMenuItem.Name = "fromVFOAToolStripMenuItem";
-   86 this.fromVFOAToolStripMenuItem.Size = new System.Drawing.Size(167, 22);
-   87 this.fromVFOAToolStripMenuItem.Text = "Read from VFO-A";
-   88 this.fromVFOAToolStripMenuItem.Click += new System.EventHandler(this.readFromVFOAToolStripMenuItem_Click);
-   89 //
-   90 // fromVFOBToolStripMenuItem
-   91 //
-   92 this.fromVFOBToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("fromVFOBToolStripMenuItem.Image")));
-   93 this.fromVFOBToolStripMenuItem.Name = "fromVFOBToolStripMenuItem";
-   94 this.fromVFOBToolStripMenuItem.Size = new System.Drawing.Size(167, 22);
-   95 this.fromVFOBToolStripMenuItem.Text = "Read from VFO-B";
-   96 this.fromVFOBToolStripMenuItem.Click += new System.EventHandler(this.readFromVFOBToolStripMenuItem_Click);
-   97 //
-   98 // toolStripSeparator2
-   99 //
-   100 this.toolStripSeparator2.Name = "toolStripSeparator2";
-   101 this.toolStripSeparator2.Size = new System.Drawing.Size(164, 6);
-   102 //
-   103 // goToToolStripMenuItem
-   104 //
-   105 this.goToToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
-   106 this.memoryChannelToolStripMenuItem,
-   107 this.frequencyToolStripMenuItem});
-   108 this.goToToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("goToToolStripMenuItem.Image")));
-   109 this.goToToolStripMenuItem.Name = "goToToolStripMenuItem";
-   110 this.goToToolStripMenuItem.Size = new System.Drawing.Size(167, 22);
-   111 this.goToToolStripMenuItem.Text = "Go to";
-   112 //
-   113 // toolStripSeparator1
-   114 //
-   115 this.toolStripSeparator1.Name = "toolStripSeparator1";
-   116 this.toolStripSeparator1.Size = new System.Drawing.Size(164, 6);
93 // 117 //
94 // readToolStripMenuItem 118 // readToolStripMenuItem
95 // 119 //
96 this.readToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("readToolStripMenuItem.Image"))); 120 this.readToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("readToolStripMenuItem.Image")));
97 this.readToolStripMenuItem.Name = "readToolStripMenuItem"; 121 this.readToolStripMenuItem.Name = "readToolStripMenuItem";
98 this.readToolStripMenuItem.Size = new System.Drawing.Size(102, 22); 122 this.readToolStripMenuItem.Size = new System.Drawing.Size(167, 22);
99 this.readToolStripMenuItem.Text = "Read"; 123 this.readToolStripMenuItem.Text = "Read";
100 this.readToolStripMenuItem.Click += new System.EventHandler(this.readToolStripMenuItem_Click); 124 this.readToolStripMenuItem.Click += new System.EventHandler(this.readToolStripMenuItem_Click);
101 // 125 //
102 // writeToolStripMenuItem 126 // writeToolStripMenuItem
103 // 127 //
104 this.writeToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("writeToolStripMenuItem.Image"))); 128 this.writeToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("writeToolStripMenuItem.Image")));
105 this.writeToolStripMenuItem.Name = "writeToolStripMenuItem"; 129 this.writeToolStripMenuItem.Name = "writeToolStripMenuItem";
106 this.writeToolStripMenuItem.Size = new System.Drawing.Size(102, 22); 130 this.writeToolStripMenuItem.Size = new System.Drawing.Size(167, 22);
107 this.writeToolStripMenuItem.Text = "Write"; 131 this.writeToolStripMenuItem.Text = "Write";
108 this.writeToolStripMenuItem.Click += new System.EventHandler(this.writeToolStripMenuItem_Click); 132 this.writeToolStripMenuItem.Click += new System.EventHandler(this.writeToolStripMenuItem_Click);
109 // 133 //
110 // tableLayoutPanel2 134 // tableLayoutPanel2
111 // 135 //
Line 202... Line 226...
202 this.exportToolStripMenuItem.Text = "Export"; 226 this.exportToolStripMenuItem.Text = "Export";
203 this.exportToolStripMenuItem.Click += new System.EventHandler(this.exportToolStripMenuItem_Click); 227 this.exportToolStripMenuItem.Click += new System.EventHandler(this.exportToolStripMenuItem_Click);
204 // 228 //
205 // saveFileDialog1 229 // saveFileDialog1
206 // 230 //
-   231 this.saveFileDialog1.Filter = "XML Files|*.xml";
207 this.saveFileDialog1.FileOk += new System.ComponentModel.CancelEventHandler(this.saveFileDialog1_FileOk); 232 this.saveFileDialog1.FileOk += new System.ComponentModel.CancelEventHandler(this.saveFileDialog1_FileOk);
208 // 233 //
209 // openFileDialog1 234 // openFileDialog1
210 // 235 //
211 this.openFileDialog1.FileName = "openFileDialog1"; 236 this.openFileDialog1.FileName = "openFileDialog1";
-   237 this.openFileDialog1.Filter = "XML Files|*.xml";
212 this.openFileDialog1.FileOk += new System.ComponentModel.CancelEventHandler(this.openFileDialog1_FileOk); 238 this.openFileDialog1.FileOk += new System.ComponentModel.CancelEventHandler(this.openFileDialog1_FileOk);
213 // 239 //
-   240 // memoryChannelToolStripMenuItem
-   241 //
-   242 this.memoryChannelToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("memoryChannelToolStripMenuItem.Image")));
-   243 this.memoryChannelToolStripMenuItem.Name = "memoryChannelToolStripMenuItem";
-   244 this.memoryChannelToolStripMenuItem.Size = new System.Drawing.Size(166, 22);
-   245 this.memoryChannelToolStripMenuItem.Text = "Memory Channel";
-   246 this.memoryChannelToolStripMenuItem.Click += new System.EventHandler(this.memoryChannelToolStripMenuItem_Click);
-   247 //
-   248 // frequencyToolStripMenuItem
-   249 //
-   250 this.frequencyToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("frequencyToolStripMenuItem.Image")));
-   251 this.frequencyToolStripMenuItem.Name = "frequencyToolStripMenuItem";
-   252 this.frequencyToolStripMenuItem.Size = new System.Drawing.Size(166, 22);
-   253 this.frequencyToolStripMenuItem.Text = "Frequency";
-   254 this.frequencyToolStripMenuItem.Click += new System.EventHandler(this.frequencyToolStripMenuItem_Click);
-   255 //
-   256 // dataGridView1
-   257 //
-   258 this.dataGridView1.AllowUserToAddRows = false;
-   259 this.dataGridView1.AllowUserToDeleteRows = false;
-   260 this.dataGridView1.AllowUserToResizeRows = false;
-   261 this.dataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
-   262 this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
-   263 this.dataGridView1.ContextMenuStrip = this.contextMenuStrip1;
-   264 this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
-   265 this.dataGridView1.DoubleBuffered = true;
-   266 this.dataGridView1.Location = new System.Drawing.Point(3, 3);
-   267 this.dataGridView1.Name = "dataGridView1";
-   268 this.dataGridView1.RowHeadersVisible = false;
-   269 this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
-   270 this.dataGridView1.Size = new System.Drawing.Size(1095, 365);
-   271 this.dataGridView1.TabIndex = 0;
-   272 this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridView1_CellContentClick);
-   273 this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridView_CellDoubleClick);
-   274 this.dataGridView1.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridView1_CellEndEdit);
-   275 this.dataGridView1.CellMouseUp += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.DataGridView1_CellMouseUp);
-   276 this.dataGridView1.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridView1_CellValueChanged);
-   277 this.dataGridView1.CurrentCellDirtyStateChanged += new System.EventHandler(this.DataGridView1_CurrentCellDirtyStateChanged);
-   278 this.dataGridView1.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.DataGridView1_DataError);
-   279 this.dataGridView1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.dataGridView1_MouseDown);
-   280 //
214 // MemoryOrganizerForm 281 // MemoryOrganizerForm
215 // 282 //
216 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 283 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
217 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 284 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
218 this.ClientSize = new System.Drawing.Size(1101, 455); 285 this.ClientSize = new System.Drawing.Size(1101, 455);
Line 224... Line 291...
224 this.Text = "HamBook: Memory Organizer"; 291 this.Text = "HamBook: Memory Organizer";
225 this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MemoryOrganizerForm_FormClosing); 292 this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MemoryOrganizerForm_FormClosing);
226 this.Load += new System.EventHandler(this.MemoryOrganizerForm_Load); 293 this.Load += new System.EventHandler(this.MemoryOrganizerForm_Load);
227 this.tableLayoutPanel1.ResumeLayout(false); 294 this.tableLayoutPanel1.ResumeLayout(false);
228 this.tableLayoutPanel1.PerformLayout(); 295 this.tableLayoutPanel1.PerformLayout();
229 ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); -  
230 this.contextMenuStrip1.ResumeLayout(false); 296 this.contextMenuStrip1.ResumeLayout(false);
231 this.tableLayoutPanel2.ResumeLayout(false); 297 this.tableLayoutPanel2.ResumeLayout(false);
232 this.statusStrip1.ResumeLayout(false); 298 this.statusStrip1.ResumeLayout(false);
233 this.statusStrip1.PerformLayout(); 299 this.statusStrip1.PerformLayout();
234 this.menuStrip1.ResumeLayout(false); 300 this.menuStrip1.ResumeLayout(false);
235 this.menuStrip1.PerformLayout(); 301 this.menuStrip1.PerformLayout();
-   302 ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
236 this.ResumeLayout(false); 303 this.ResumeLayout(false);
237 this.PerformLayout(); 304 this.PerformLayout();
Line 238... Line 305...
238   305  
Line 255... Line 322...
255 private System.Windows.Forms.SaveFileDialog saveFileDialog1; 322 private System.Windows.Forms.SaveFileDialog saveFileDialog1;
256 private System.Windows.Forms.OpenFileDialog openFileDialog1; 323 private System.Windows.Forms.OpenFileDialog openFileDialog1;
257 private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; 324 private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
258 private System.Windows.Forms.ToolStripMenuItem readToolStripMenuItem; 325 private System.Windows.Forms.ToolStripMenuItem readToolStripMenuItem;
259 private System.Windows.Forms.ToolStripMenuItem writeToolStripMenuItem; 326 private System.Windows.Forms.ToolStripMenuItem writeToolStripMenuItem;
-   327 private System.Windows.Forms.ToolStripMenuItem goToToolStripMenuItem;
-   328 private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
-   329 private System.Windows.Forms.ToolStripMenuItem fromVFOAToolStripMenuItem;
-   330 private System.Windows.Forms.ToolStripMenuItem fromVFOBToolStripMenuItem;
-   331 private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
-   332 private System.Windows.Forms.ToolStripMenuItem memoryChannelToolStripMenuItem;
-   333 private System.Windows.Forms.ToolStripMenuItem frequencyToolStripMenuItem;
260 } 334 }
261 } 335 }
262   336