Esempio n. 1
0
        /// <summary>
        /// Создание нового сотрудника
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonNewEmp_Click(object sender, EventArgs e)
        {
            FormEmployee from = new FormEmployee(Controller, true)
            {
                DepNameList = DepartementNames
            };

            from.Show();
        }
Esempio n. 2
0
        /// <summary>
        /// Отображение свойств сотрудника
        /// </summary>
        /// <param name="model"></param>
        /// <param name="e"></param>
        public void EmployeeEItem(IModel model, EmployeeEventArgs e)
        {
            FormEmployee form = new FormEmployee(Controller)
            {
                EmployeeEvent = e,
                ParentDep     = this.OrgTree.SelectedNode.Parent.Text,
                DepNameList   = DepartementNames,
            };

            form.Show();
        }