private void Unitentry_onclose(string obj) { DefaultClass df = new DefaultClass(); cmbHighestUnit.AddUnit(); cmbHighestUnit.Text = obj.ToString(); }
private void DataSave() { mdesignation = txtDesignation.Text.GetDBFormatString(); string query = "Insert Into EmployeeDesignation(DesignationName) values('" + mdesignation + "')"; if (SQLHelper.GetInstance().ExcuteQuery(query, out msg)) { DefaultClass cls = new DefaultClass(); this.Close(); } else { MessageBox.Show(msg, "Internal Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }