private void btnNew_Click(object sender, EventArgs e) { FrmTask frm = new FrmTask(); this.Hide(); frm.ShowDialog(); this.Visible = true; }
private void btnNew_Click(object sender, EventArgs e) { FrmTask frm = new FrmTask(); this.Hide(); frm.ShowDialog(); this.Visible = true; fillAllData(); CleanFilters(); }
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(); } }
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(); } }