Пример #1
0
        public PresenceCarsEditor()
        {
            InitializeComponent();

            DB = new PresenceCars();

            IndexesMassiveAuto = new List <int>();
        }
Пример #2
0
        public SellsEditor()
        {
            InitializeComponent();

            IndexMassiveAuto    = new List <int>();
            IndexMassiveClients = new List <int>();
            IndexMassiveWorkers = new List <int>();

            DB = new Sells();
            DBAutomobilesData = new AutomobilesData();
            DBPresenceCars    = new PresenceCars();
            DBSelledCars      = new SelledCars();
        }
Пример #3
0
        public MainForm()
        {
            InitializeComponent();

            // ConnectionWizard ConWiz = new ConnectionWizard();
            // ConWiz.StartPosition = FormStartPosition.CenterScreen;
            // ConWiz.ShowDialog();
            PageID = DatabaseControlService.LastPage;

            About = new AboutForm();

            //Editor Forms
            DBAutomobileEditor  = new AutomobilesEditor();
            DBClientEditor      = new ClientsEditor();
            DBOfficeEditor      = new OfficesEditor();
            DBOrderEditor       = new OrdersEditor();
            DBPresenceCarEditor = new PresenceCarsEditor();
            DBSellEditor        = new SellsEditor();
            DBWorkerEditor      = new WorkersEditor();

            //Tables
            DBAutomobilesData = new AutomobilesData();
            DBBodyTypes       = new BodyTypes();
            DBClients         = new Clients();
            DBColors          = new Colors();
            DBCountries       = new Countries();
            DBLanguages       = new Languages();
            DBManafacturers   = new Manafacturers();
            DBOffices         = new Offices();
            DBOrders          = new Orders();
            DBPresenceCars    = new PresenceCars();
            DBSelledCars      = new SelledCars();
            DBSells           = new Sells();
            DBWorkers         = new Workers();
            DBWorkplaces      = new Workplaces();

            dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
            dataGridView1.MultiSelect   = false;

            buttonInsert.Enabled = false;
            buttonUpdate.Enabled = false;
            buttonDelete.Enabled = false;

            ShowDialog();
        }