Example #1
0
 public FormAddRepairs()
 {
     InitializeComponent();
     db = new ClassDB();
     db.SearchPosition(cbPosition);
     db.SearchCategories(cbCategory);
 }
Example #2
0
        public FormAddRepair(ClassDB db)
        {
            InitializeComponent();

            this.db = db;
            db.SearchPosition(cbPosition);
            db.SearchCategoriesRepairs(cbCategory);
            tbIDRepair.Text = (db.LastRepair() + 1).ToString();
        }
        public FormAddEmployee(ClassDB db, string idEmployee, string surname, string name, string patronimyc,
                               string phoneNumber, string position, string rating)
        {
            InitializeComponent();
            this.db = db;
            edit    = true;
            db.SearchPosition(cbPosition);
            tbRating.Enabled = true;

            this.idEmployee   = idEmployee;
            tbSurname.Text    = surname;
            tbName.Text       = name;
            tbPatronimyc.Text = patronimyc;
            tbPhone.Text      = phoneNumber;
            cbPosition.Text   = position;
        }
Example #4
0
        public FormAddRepair(ClassDB db, string idRepair, string name, string category,
                             string cost, string position)
        {
            InitializeComponent();

            this.db = db;
            edit    = true;

            db.SearchPosition(cbPosition);
            db.SearchCategoriesRepairs(cbCategory);

            tbIDRepair.Enabled = false;

            tbIDRepair.Text = idRepair;
            tbName.Text     = name;
            cbCategory.Text = category;
            tbCost.Text     = cost;
            cbPosition.Text = position;
        }
 public FormAddEmployee(ClassDB db)
 {
     InitializeComponent();
     this.db = db;
     db.SearchPosition(cbPosition);
 }