public NewCustomerPage(ExistingCustomers m) { InitializeComponent(); mainMenu = m; versionGrid.Columns.Clear(); DataGridViewTextBoxColumn csPK = new DataGridViewTextBoxColumn(); DataGridViewTextBoxColumn csID = new DataGridViewTextBoxColumn(); DataGridViewTextBoxColumn csType = new DataGridViewTextBoxColumn(); DataGridViewTextBoxColumn csReleaseDate = new DataGridViewTextBoxColumn(); DataGridViewTextBoxColumn csBlue = new DataGridViewTextBoxColumn(); DataGridViewTextBoxColumn csRed = new DataGridViewTextBoxColumn(); DataGridViewTextBoxColumn csApp = new DataGridViewTextBoxColumn(); DataGridViewTextBoxColumn csService = new DataGridViewTextBoxColumn(); DataGridViewTextBoxColumn csDescription = new DataGridViewTextBoxColumn(); csID.DataPropertyName = "ID"; csID.HeaderText = "Version ID"; versionGrid.Columns.Add(csID); csType.DataPropertyName = "Type"; csType.HeaderText = "Type"; versionGrid.Columns.Add(csType); csReleaseDate.DataPropertyName = "ReleaseDate"; csReleaseDate.HeaderText = "Release Date"; versionGrid.Columns.Add(csReleaseDate); csPK.Name = "PK"; csPK.DataPropertyName = "PK"; csPK.HeaderText = "PK"; csPK.Visible = false; versionGrid.Columns.Add(csPK); csBlue.Name = "Blue"; csBlue.DataPropertyName = "Blue"; csBlue.Visible = false; versionGrid.Columns.Add(csBlue); csDescription.Name = "Description"; csDescription.DataPropertyName = "Description"; csDescription.Visible = false; versionGrid.Columns.Add(csDescription); csRed.Name = "Red"; csRed.DataPropertyName = "Red"; csRed.Visible = false; versionGrid.Columns.Add(csRed); csApp.Name = "App"; csApp.DataPropertyName = "App"; csApp.Visible = false; versionGrid.Columns.Add(csApp); csService.Name = "Service"; csService.DataPropertyName = "Service"; csService.Visible = false; versionGrid.Columns.Add(csService); }
public EditCustomer(ExistingCustomers ec) { InitializeComponent(); customersPage = ec; }
public InspectCustomer(ExistingCustomers ec) { InitializeComponent(); customersPage = ec; }