示例#1
0
        private void btnCreate_Click(object sender, EventArgs e)
        {
            fScheduleCU f = new fScheduleCU();

            f.lbTitle.Text    = "Tạo mới";
            f.btnControl.Text = "Tạo mới";
            f.ShowDialog();
        }
示例#2
0
 private void bunifuCustomDataGrid1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 5)
     {
         fScheduleCU f = new fScheduleCU();
         f.lbTitle.Text    = "Cập nhật";
         f.btnControl.Text = "Cập nhật";
         f.ShowDialog();
     }
     if (e.ColumnIndex == 6)
     {
         fDetailSchedules f          = new fDetailSchedules();
         string           scheduleid = bunifuCustomDataGrid1.CurrentRow.Cells[0].Value.ToString();
         f.input     = scheduleid;
         f.lbID.Text = $"Chi tiết mã lịch {scheduleid} - {bunifuCustomDataGrid1.CurrentRow.Cells[1].Value.ToString()}";
         f.loadData(scheduleid);
         f.ShowDialog();
     }
 }