Esempio n. 1
0
        private void Main2_Load(object sender, EventArgs e)
        {
            db.DBConnect();
            Color color = System.Drawing.ColorTranslator.FromHtml("#FFA542");

            //   Color result = Color.FromArgb(color.R, color.G, color.B);
            this.BackColor  = color;
            lblBVerion.Text = "2.0"; // Adding form for reading order file and generate data
            deliveryDate    = dateTime;
        }
Esempio n. 2
0
        private void DisplayBranch()
        {
            db.DBConnect();
            DataTable dt = new DataTable();

            db.GetBranch(dt);
            foreach (DataRow row in dt.Rows)
            {
                cmbBranch.Items.Add(row[0]);
            }
            cmbBranch.SelectedIndex = 0;
        }