예제 #1
0
 private void DgvHead_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex < 0) return;
     if (DgvHead.Rows[e.RowIndex].Cells["ChStatus_"].Value.ToString() == "ยกเลิก")
     {
         MessageBox.Show("รายการยกเลิกไม่สามารถแก้ไขได้");
         return;
     }
     string id = DgvHead.Rows[e.RowIndex].Cells["ChId"].Value.ToString();
     string base_ = DgvHead.Rows[e.RowIndex].Cells["Base"].Value.ToString();
     CashierSave frm = new CashierSave(id,base_);
     frm.ShowDialog();
     try
     {
         if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
             LoadFirst("");
     }
     catch { }
 }
예제 #2
0
 private void toolStripLabelRepair_Click(object sender, EventArgs e)
 {
     CashierSave s = new CashierSave();
     //s.Visible = true;
     s.ShowDialog();
     try
     {
         if (s.DialogResult == System.Windows.Forms.DialogResult.OK)
             LoadFirst("");
     }catch{}
 }