public ControlTreeDataGrid() { UpdatePageText(); DataGridAdjuster.InitializeGrid(this); this.AllowUserToAddRows = false;//don't allow down arrow to add tree //this.Font = new System.Drawing.Font("Courier New", 12F, System.Drawing.FontStyle.Bold); //initialize _BS_trees this._BS_trees = new System.Windows.Forms.BindingSource(); ((System.ComponentModel.ISupportInitialize)(this._BS_trees)).BeginInit(); this._BS_trees.DataSource = typeof(Tree); this._BS_trees.CurrentChanged += new EventHandler(_BS_trees_CurrentChanged); this.DataSource = this._BS_trees; ((System.ComponentModel.ISupportInitialize)(this._BS_trees)).EndInit(); }
public FormLogs() : base() { InitializeComponent(); KeyPreview = true; if (ViewController.PlatformType == PlatformType.WinCE) { this.WindowState = FormWindowState.Maximized; this._ceControlPanel.Visible = true; this.Menu = null; this.mainMenu1.Dispose(); this.mainMenu1 = null; } else if (ViewController.PlatformType == PlatformType.WM) { this._sip = new Microsoft.WindowsCE.Forms.InputPanel(); this._dataGrid.SIP = this._sip; } this._dataGrid.CellValidating += new EditableDataGridCellValidatingEventHandler(_dataGrid_CellValidating); DataGridAdjuster.InitializeGrid(this._dataGrid); }
public LayoutPlot() { InitializeComponent(); InitializePlotNavIcons(); //Setup Plot Nav Bar this._addPlotButton.Text = "+"; this._deletePlotButton.Text = "-"; this._plotInfoButton.Text = "i"; this._expandGridButton.ImageIndex = 0; this._expandGridButton.ButtonImageLayout = ImageLayout.Tile; this._nextPlotButton.ButtonImageLayout = ImageLayout.Zoom; this._gotoLastPlotButton.ButtonImageLayout = ImageLayout.Zoom; this._prevPlotButton.ButtonImageLayout = ImageLayout.Zoom; this._gotoFirstPlotButton.ButtonImageLayout = ImageLayout.Zoom; if (ViewController.PlatformType == PlatformType.WinCE) { this._expandGridButton.Font = new System.Drawing.Font("Arial", this._expandGridButton.Font.Size, this._expandGridButton.Font.Style); this._gotoFirstPlotButton.Font = new System.Drawing.Font("Arial", this._gotoFirstPlotButton.Font.Size, this._gotoFirstPlotButton.Font.Style); this._gotoLastPlotButton.Font = new System.Drawing.Font("Arial", this._gotoLastPlotButton.Font.Size, this._gotoLastPlotButton.Font.Style); this._nextPlotButton.Font = new System.Drawing.Font("Arial", this._nextPlotButton.Font.Size, this._nextPlotButton.Font.Style); this._prevPlotButton.Font = new System.Drawing.Font("Arial", this._prevPlotButton.Font.Size, this._prevPlotButton.Font.Style); } DataGridAdjuster.InitializeGrid(this._dataGrid); this._dataGrid.CellValidating += new EditableDataGridCellValidatingEventHandler(_dataGrid_CellValidating); this._dataGrid.CellValueChanged += new EditableDataGridCellValueChangedEventHandler(this._dataGrid_CellValueChanged); //this._dataGrid.DataSource = typeof(FSCruiserV2.Logic.TreeVM);//_BS_Trees; this._dataGrid.Click += new EventHandler(_dataGrid_Click); this._dataGrid.ReadOnly = true; this._dataGrid.AllowUserToAddRows = false; this.Dock = DockStyle.Fill; }