Exemplo n.º 1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            FrmSalary frm = new FrmSalary();

            this.Hide();
            frm.ShowDialog();
            this.Visible = true;
        }
        private void btnNew_Click(object sender, EventArgs e)
        {
            FrmSalary frm = new FrmSalary();

            this.Hide();
            frm.ShowDialog();
            this.Visible = true;
            FillAllData();
            ClearFilters();
        }
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (detail.SalaryID == 0)
     {
         MessageBox.Show("Please select a salary from table!");
     }
     else
     {
         FrmSalary frm = new FrmSalary();
         frm.isUpdated = true;
         frm.detail    = detail;
         this.Hide();
         frm.ShowDialog();
         this.Visible = true;
         FillAllData();
         ClearFilters();
     }
 }