예제 #1
0
        private void ToolStripMenuItem_modify_Click(object sender, EventArgs e)
        {
            var row = dataGridView1.SelectedRows[0];
            string order_id = row.Cells[0].Value.ToString();

            CheckinForm checkinForm = new CheckinForm(BLL.Interface.QueryOrderById(order_id));
            checkinForm.MyEvent += new CheckinForm.MyDelegate(RefreshDataGridAndSetSelection);
            checkinForm.ShowDialog();
        }
예제 #2
0
 private void toolStripButton_Checkin_Click(object sender, EventArgs e)
 {
     CheckinForm checkinForm = new CheckinForm();
     checkinForm.MyEvent += new CheckinForm.MyDelegate(RefreshDataGridAndSetSelection);
     checkinForm.ShowDialog();
 }