private void FacilititesTabBtnNew_Click(object sender, EventArgs e) { CreateFacility f2 = new CreateFacility(); f2.ShowDialog(); if (f2.DialogResult == DialogResult.OK) { //refresh(); LoadDataSearchFilter(); StatusFilter(); } }
public FacilitiesTab(MainScreen parent) { InitializeComponent(); this.Dock = DockStyle.Fill; createfacilityform = new CreateFacility(); createfacilityform.facilitiesTab = this; this.parent = parent; //Data Grid Columns FacilitiesdataGridView1.ColumnCount = 5; for (int i = 0; i < FacilitiesdataGridView1.ColumnCount; i++) { string[] FacilityGridColumns = new string[] { "Facility ID", "Facility Name", "Opening Hours", "No. of Slots", "Active" }; FacilitiesdataGridView1.Columns[i].Name = FacilityGridColumns[i]; FacilitiesdataGridView1.Columns[i].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; } LoadDataGridView(); }
public FacilityTypeManager(CreateFacility parent) { InitializeComponent(); ctx = new ElevenAlphaEntities(); this.parent = parent; }