Beispiel #1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            employeeMaster.Name     = txtEmpName.Text;
            employeeMaster.MobileNo = txtEmpMobile.Text;
            employeeMaster.Address  = txtEmpAddress.Text;
            employeeMaster.Salary   = Convert.ToDouble(txtEmpSalary.Text);

            BunifuFlatButton btn = (BunifuFlatButton)sender;

            employeeMaster.cmd = btn.Text;
            string msgText = employeeMaster.insertEmployee(employeeMaster);

            MessageBox.Show(msgText, "Success Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }