Пример #1
0
        private void Add_Indictment_Click(object sender, EventArgs e)
        {
            AddNewIndictment f = new AddNewIndictment(navyid, rtcDetails);

            f.Text          = "เพิ่มข้อหา";
            f.StartPosition = FormStartPosition.CenterParent;
            f.ShowDialog();
        }
Пример #2
0
 private void Edit_Indictment_Click(object sender, EventArgs e)
 {
     if (gv_Indictment.SelectedRows.Count > 0)
     {
         AddNewIndictment f = new AddNewIndictment(navyid, rtcDetails, gv_Indictment.SelectedRows[0].Cells["indictment"].Value.ToString(), gv_Indictment.SelectedRows[0].Cells["datecapture"].Value.ToString());
         f.Text          = "แก้ไขข้อหา";
         f.StartPosition = FormStartPosition.CenterParent;
         f.ShowDialog();
     }
 }