public OfficeControl() { InitializeComponent(); DragPanel dragPanel = new DragPanel(panelEdit, buttonClosePanelEdit, buttonEditShow); SearchTextBox search = new SearchTextBox(dataGridViewMain, textBoxSearch, comboBoxSearch); panelAddOffice.SignOnEventControlsToShowHint(); dataGridViewMain.AddClearRange(context.Offices.ToList()); }
public EmployeesControl() { InitializeComponent(); DragPanel dragPanel2 = new DragPanel(panelEdit, buttonClosePanelEdit, buttonEditShow); DragPanel dragPanel = new DragPanel(panelAddJobPosition, buttonClosePanelAddJobPosition, buttonAddNewJobPosition); SearchTextBox search = new SearchTextBox(dataGridViewMain, textBoxSearch, comboBoxSearch); panelAddEmployee.SignOnEventControlsToShowHint(); comboBoxOffices.AddClearEntities <Office>(context, "Name"); comboBoxEditOffices.AddClearEntities <Office>(context, "Name"); comboBoxJobPosition.AddClearEntities <JobPosition>(context, "Name"); comboBoxEditJobPosition.AddClearEntities <JobPosition>(context, "Name"); dataGridViewMain.AddClearRange(context.Employees.ToList()); dataGridJobPosition.AddClearRange(context.JobPositions.ToList()); }
public OrdersControl() { InitializeComponent(); DragPanel dragPanel2 = new DragPanel(panelEdit, buttonClosePanelEdit, buttonEditShow); DragPanel dragPanel = new DragPanel(panelAddClient, buttonClosePanelAddClient, buttonAddNewClient); SearchTextBox search = new SearchTextBox(dataGridViewMain, textBoxSearch, comboBoxSearch); textBoxCost.OnlyForDecimal(); textBoxEditCost.OnlyForDecimal(); panelAddOrder.SignOnEventControlsToShowHint(); comboBoxEditEmployee.AddClearEntities <Employee>(context, "Surname"); comboBoxEditServers.AddClearEntities <Server>(context, "Name"); comboBoxServers.AddClearEntities <Server>(context, "Name"); comboBoxClients.AddClearEntities <Client>(context, "FullName"); comboBoxEditClients.AddClearEntities <Client>(context, "FullName"); UpdateTable(context.Orders.ToList()); dataGridClients.AddClearRange(context.Clients.ToList()); }