Пример #1
0
        private void AddEmpBtn_Click(object sender, EventArgs e)
        {
            EmployeeInfoForm form = new EmployeeInfoForm(true);

            form.ShowDialog();
            RefreshItem();
        }
Пример #2
0
        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();
        }