示例#1
0
        private void bt_accept_Click(object sender, EventArgs e)
        {
            CustomerFind cf = new CustomerFind();

            cf.selected_machine = Convert.ToInt16(hidden_machine_id.Text);
            cf.customer         = dtshowcustomer_find.Rows[dtshowcustomer_find.SelectedRows[0].Index].Cells["Mã Số"].Value.ToString();
            if (cf.ShowDialog() == DialogResult.OK)
            {
                load();
                loadState();
            }
        }
示例#2
0
        private void Lb_DoubleClick(object sender, EventArgs e)
        {
            Label lb = sender as Label;

            if (!wotkinglabel.Contains(lb))
            {
                CustomerFind cf = new CustomerFind();
                cf.selected_machine = Convert.ToInt16(lb.Name);
                if (cf.ShowDialog() == DialogResult.OK)
                {
                    loadState();
                }
            }
            else
            {
                FinishWork(lb);
            }
        }