Beispiel #1
0
        private void btnCancel_Click(object sender, EventArgs e)
        {
            new Main().Show();
            second_weight second = _second;

            second.Dis();
            second.Hide();
            this.Hide();
        }
        private void btnSecondWeight_Click(object sender, EventArgs e)
        {
            // prevWieght prevWieght = new prevWieght(new second_weight());
            //prevWieght.Show();
            serial.Disconnect();
            second_weight second_Weight = new second_weight();

            second_Weight.Show();
            second_Weight.loadDataById(Convert.ToInt32(label12.Text));
            this.Hide();
        }
        public first_weight(second_weight _second_Weight, string driverName, string prodect, string carType, string Wieght, string carNumber)
        {
            InitializeComponent();
            second_Weight = _second_Weight;

            cbDriverName.Text  = driverName;
            cbProduct.Text     = prodect;
            cbCarType.Text     = carType;
            lblCarWeight1.Text = Wieght;
            tbCarNumber.Text   = carNumber;

            lblDate1.Text = DateTime.Now.ToString("dd/MM/yyyy");
            lblTime1.Text = DateTime.Now.ToString("hh:mm tt");

            cbCustomerName.Select();

            cbCustomerName.SelectedIndexChanged += (sebder, e) =>
            {
                btnSave.Enabled = true;
            };

            btnRecordWeight.Enabled = false;
        }
Beispiel #4
0
 public prevWieght(second_weight second)
 {
     InitializeComponent();
     _second = second;
 }