Пример #1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            FrmTask frm = new FrmTask();

            this.Hide();
            frm.ShowDialog();
            this.Visible = true;
        }
Пример #2
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            FrmTask frm = new FrmTask();

            this.Hide();
            frm.ShowDialog();
            this.Visible = true;
            fillAllData();
            CleanFilters();
        }
Пример #3
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (detail.TaskID == 0)
     {
         MessageBox.Show("Please select a task on table");
     }
     else
     {
         FrmTask frm = new FrmTask();
         frm.isUpdate = true;
         frm.detail   = detail;
         this.Hide();
         frm.ShowDialog();
         this.Visible = true;
         fillAllData();
         CleanFilters();
     }
 }
Пример #4
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (detail.TaskID == 0)
     {
         MessageBox.Show("Select a task");
     }
     else
     {
         FrmTask frm = new FrmTask();
         frm.isUpdate = true;   //Variable to Update
         frm.DETAIL   = detail;
         this.Hide();
         frm.ShowDialog();
         this.Visible = true;
         FillData();
         CleanFilters();
     }
 }