private void AddEmpBtn_Click(object sender, EventArgs e) { EmployeeInfoForm form = new EmployeeInfoForm(true); form.ShowDialog(); RefreshItem(); }
private void ContainerPnl_Click(object sender, EventArgs e) { EmployeeInfoForm form = new EmployeeInfoForm(false); form.Data = data; form.ShowDialog(); ((EmployeePanel)this.Parent.Parent).RefreshItem(); ((AccountPanel)this.Parent.Parent.Parent.Controls["accPnl"]).RefreshItem(); }