private void Edit(object sender, EventArgs e)
        {
            Hide();
            var editWindow = new CreateEditProject(_selectedProject);

            editWindow.Closed += (s, args) => Close();
            editWindow.ShowDialog();
        }
Пример #2
0
        private void Create(object sender, EventArgs e)
        {
            switch (_option)
            {
            case "0":
                Hide();
                var createEmployeeWindow = new CreateEditEmployee();
                createEmployeeWindow.Closed += (s, args) => Show();
                createEmployeeWindow.ShowDialog();
                break;

            default:
                Hide();
                var createProjectWindow = new CreateEditProject();
                createProjectWindow.Closed += (s, args) => Show();
                createProjectWindow.ShowDialog();
                break;
            }

            RefreshList();
            SearchAutoComplete();
        }