public ServersControl()
        {
            InitializeComponent();

            DragPanel dragPanel3 = new DragPanel(panelMonitoring, buttonCloseMonitoring, dataGridViewMain);
            DragPanel dragPanel2 = new DragPanel(panelEdit, buttonClosePanelEdit, buttonEditShow);
            DragPanel dragPanel  = new DragPanel(panelAddTypеOfServer, buttonClosePanelAddTypeOfServer, buttonAddNewTypeOfServer);

            SearchTextBox search = new SearchTextBox(dataGridViewMain, textBoxSearch, comboBoxSearch);

            panelAddServer.SignOnEventControlsToShowHint();
            comboBoxOffices.AddClearEntities <Office>(context, "Name");
            comboBoxEditOffices.AddClearEntities <Office>(context, "Name");
            comboBoxTypeOfServer.AddClearEntities <TypeOfServer>(context, "Name");
            comboBoxEditTypeOfServer.AddClearEntities <TypeOfServer>(context, "Name");

            dataGridViewMain.AddClearRange(context.Servers.ToList());
            dataGridTypeOfServer.AddClearRange(context.TypeOfServers.ToList());

            bunifuDataVizGPU1.colorSet.Add(Color.Blue);
            bunifuDataVizGPU2.colorSet.Add(Color.Blue);
            bunifuDataVizGPU3.colorSet.Add(Color.Blue);
            bunifuDataVizGPU4.colorSet.Add(Color.Blue);

            bunifuDataVizMemory.colorSet.Add(Color.Purple);
            bunifuDataVizDisk.colorSet.Add(Color.Green);
            bunifuDataVizInternet.colorSet.Add(Color.Orange);
        }
        public OfficeControl()
        {
            InitializeComponent();

            DragPanel dragPanel = new DragPanel(panelEdit, buttonClosePanelEdit, buttonEditShow);

            SearchTextBox search = new SearchTextBox(dataGridViewMain, textBoxSearch, comboBoxSearch);

            panelAddOffice.SignOnEventControlsToShowHint();

            dataGridViewMain.AddClearRange(context.Offices.ToList());
        }
Example #3
0
        public UsersControl()
        {
            InitializeComponent();

            DragPanel dragPanel = new DragPanel(panelEdit, buttonClosePanelEdit, buttonEditShow);

            panelAddUser.SignOnEventControlsToShowHint();

            comboBoxEmployees.AddClearEntities <Employee>(context, "Surname");
            comboBoxEditEmployees.AddClearEntities <Employee>(context, "Surname");

            dataGridViewMain.AddClearRange(context.Users.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());
        }