public BookingTab(MainScreen parent) { InitializeComponent(); this.Dock = DockStyle.Fill; context = new ElevenAlphaEntities(); this.parent = parent; // Load Facility Types LoadFacilityTypes(); // Initialize DatePickers LoadDatePickers(); }
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(); }