/[dotgnu-pnet]/pnetlib/samples/forms/FormsTest.cs
ViewVC logotype

Diff of /pnetlib/samples/forms/FormsTest.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by drobosson, Mon Aug 22 13:32:33 2005 UTC revision 1.7 by drobosson, Mon Sep 26 02:07:56 2005 UTC
# Line 41  namespace FormsTest Line 41  namespace FormsTest
41                  private TabPage tabPage26;                  private TabPage tabPage26;
42                  private TabPage tabPage27;                  private TabPage tabPage27;
43                  private TabPage tabPage28;                  private TabPage tabPage28;
44                    private TabPage tabPage29;
45                  private StatusBar statusBar;                  private StatusBar statusBar;
46                                    
47                  // Tab1 Labels Test                  // Tab1 Labels Test
# Line 333  namespace FormsTest Line 334  namespace FormsTest
334                  private NumericUpDown upDown4;                  private NumericUpDown upDown4;
335                  private NumericUpDown upDown3ro;                  private NumericUpDown upDown3ro;
336                  private NumericUpDown upDown4ro;                  private NumericUpDown upDown4ro;
337    
338                    // tabPage29 Datagrid
339                    private DataGrid dataGrid;
340                  #endregion                  #endregion
341                                    
342                  public static void Main(String[] args)                  public static void Main(String[] args)
# Line 441  namespace FormsTest Line 445  namespace FormsTest
445                          tabPage28 = new TabPage();                          tabPage28 = new TabPage();
446                          tabPage28.Text = "TrackBar";                          tabPage28.Text = "TrackBar";
447                          tabControl1.Controls.Add(tabPage28);                          tabControl1.Controls.Add(tabPage28);
448                            tabPage29 = new TabPage();
449                            tabPage29.Text = "DataGrid";
450                            tabControl1.Controls.Add(tabPage29);
451    
452                          statusBar = new StatusBar();                          statusBar = new StatusBar();
453                          statusBar.Dock = DockStyle.Bottom;                          statusBar.Dock = DockStyle.Bottom;
# Line 482  namespace FormsTest Line 489  namespace FormsTest
489                          AddMessageBoxTest(tabPage26);                          AddMessageBoxTest(tabPage26);
490                          AddUpDownTest(tabPage27);                          AddUpDownTest(tabPage27);
491                          AddTrackbarTest(tabPage28);                          AddTrackbarTest(tabPage28);
492                            AddDataGrid(tabPage29);
493    
494                          // Add the events here after the controls have been added                          // Add the events here after the controls have been added
495                          // to the pages, otherwise the events will not be raised                          // to the pages, otherwise the events will not be raised
# Line 3933  Console.WriteLine("DSizeGrip bounds: " + Line 3941  Console.WriteLine("DSizeGrip bounds: " +
3941                          TabPage tabPage = (sender as TabControl).SelectedTab;                          TabPage tabPage = (sender as TabControl).SelectedTab;
3942                          statusBar.Text = tabPage.Text;                          statusBar.Text = tabPage.Text;
3943                  }                  }
3944    
3945                    private void AddDataGrid(Control c)
3946                    {
3947                            dataGrid = new DataGrid();
3948                            dataGrid.Location = new Point(50, 20);
3949                            dataGrid.Size = new System.Drawing.Size(400, 500);
3950                            dataGrid.Text = "Data Grid";
3951                            c.Controls.Add(dataGrid);
3952                    }
3953          }          }
3954  }  }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26