Beispiel #1
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();
        }
Beispiel #2
0
        public ElementControlService()
        {
            DBAutomobilesData = new AutomobilesData();
            DBClients         = new Clients();
            DBOffices         = new Offices();
            DBSelledCars      = new SelledCars();
            DBWorkers         = new Workers();

            DBBodyTypes     = new BodyTypes();
            DBClasses       = new Classes();
            DBColors        = new Colors();
            DBCountries     = new Countries();
            DBGearTypes     = new GearTypes();
            DBLanguages     = new Languages();
            DBManafacturers = new Manafacturers();
            DBWorkplaces    = new Workplaces();
        }
Beispiel #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();
        }