예제 #1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            this.comboBoxLicensePlates.DropDownStyle = ComboBoxStyle.DropDownList;
            this.comboBoxOffers.DropDownStyle        = ComboBoxStyle.DropDownList;

            /*
             * DataTable dbTable = this.library.GetCustomersFromDB();
             * if (dbTable.Rows.Count > 0)
             * {
             *  this.dataGridViewCustHistory.DataSource = dbTable;
             *  this.dataGridViewCustHistory.Refresh();
             * }
             */

            this.labelDateTime.Text       = DateTime.Now.ToLongDateString() + " " + DateTime.Now.ToLongTimeString();
            this.pictureBoxClock.Image    = library.getClockImage();
            this.pictureBoxBarcode.Image  = library.getBarcodeImage();
            this.pictureBoxCost.Image     = library.getCostImage();
            this.pictureBoxCustomer.Image = library.getCustImage();
            offers = this.library.GetAllOffers();
            if (offers == null)
            {
                MainLibrary.dummyFrm.MsgBoxError("Υπάρχει σημαντικό πρόβλημα με τον πίνακα προσφορών!");
                return;
            }
            foreach (OffersObject offerObj in offers)
            {
                this.comboBoxOffers.Items.Add(offerObj.Desc);
            }
            if (this.comboBoxOffers.Items.Count > 0)
            {
                this.comboBoxOffers.SelectedIndex = 0;
            }
            //this.buttonSaveCust.Image = library.getSaveImage();
        }
예제 #2
0
 private void WashForm_Load(object sender, EventArgs e)
 {
     this.comboBoxLicensePlates.DropDownStyle = ComboBoxStyle.DropDownList;
     this.labelDateTime.Text       = DateTime.Now.ToLongDateString() + " " + DateTime.Now.ToLongTimeString();
     this.pictureBoxClock.Image    = library.getClockImage();
     this.pictureBoxBarcode.Image  = library.getBarcodeImage();
     this.pictureBoxCustomer.Image = library.getCustImage();
     this.buttonWash.Visible       = !this.readOnly;
 }