Exemple #1
0
 private void dataGridViewO1_SelectionChanged(object sender, EventArgs e)
 {
     if (loadOrders)
     {
         var mySql = new mySql();
         mySql.updateOrderInspecor(dataGridViewO1, dataGridViewO2, bindingSourceOrders2, lblDateCreated, lblDateModified, lblAmountBuckets, lblAmountPrice, lblAmountStems, lblAmountBoxes);
     }
 }
Exemple #2
0
        private void AddOr_FormClosing(object sender, FormClosingEventArgs e)
        {
            var mySql = new mySql();

            string Sql1 = " select distinct orders.order_number as 'Order number', departure as 'Departure', arrival as 'Arrival', datecode as 'Datecode' from orders";

            dataGridViewO1.DataSource = bindingSourceOrders;
            mySql.GetData(Sql1, bindingSourceOrders);
            mySql.updateOrderInspecor(dataGridViewO1, dataGridViewO2, bindingSourceOrders2, lblDateCreated, lblDateModified, lblAmountBuckets, lblAmountPrice, lblAmountStems, lblAmountBoxes);
        }
Exemple #3
0
        private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (tabControl1.SelectedIndex == 1)
            {
                var mySql = new mySql();

                string Sql1 = " select distinct orders.order_number as 'Order number', departure as 'Departure', arrival as 'Arrival', datecode as 'Datecode' from orders";
                dataGridViewO1.DataSource = bindingSourceOrders;
                mySql.GetData(Sql1, bindingSourceOrders);
                mySql.updateOrderInspecor(dataGridViewO1, dataGridViewO2, bindingSourceOrders2, lblDateCreated, lblDateModified, lblAmountBuckets, lblAmountPrice, lblAmountStems, lblAmountBoxes);

                dataGridViewO1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
                dataGridViewO2.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
                //dataGridViewO1.Rows[0].Selected = () ? false : true;
                setWidth(dataGridViewO1);
                loadOrders = true;
            }
        }