Example #1
0
        /// <summary>
        /// Создание нового отдела
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonNewDep_MouseClick(object sender, MouseEventArgs e)
        {
            FormDepartment from = new FormDepartment(Controller, true)
            {
                DepNameList = DepartementNames,
            };

            from.Show();
        }
Example #2
0
        /// <summary>
        /// Отображение свойств отдела
        /// </summary>
        /// <param name="model"></param>
        /// <param name="e"></param>
        public void DepartmentItem(IModel model, DepartmentEventsArgs e)
        {
            FormDepartment form = new FormDepartment(Controller)
            {
                DepEvent    = e,
                ParentDep   = e.EnebleListBox ? this.OrgTree.SelectedNode.Parent.Text : "",
                DepNameList = DepartementNames
            };

            form.Show();
        }