Пример #1
0
        private void ButtonSelect_Click(object sender, RoutedEventArgs e)
        {
            WindowUserSearch userSearch = new WindowUserSearch(mySqlClient)
            {
                Owner = this
            };

            if (userSearch.ShowDialog() != true)
            {
                return;
            }

            SelectedEmployee = userSearch.SelectedEmployee;
            UpdateWorkPeriods();
        }
Пример #2
0
        private void ButtonEmployeeAddToReport_Click(object sender, RoutedEventArgs e)
        {
            WindowUserSearch userSearch = new WindowUserSearch(mySqlClient)
            {
                Owner = this
            };

            if (userSearch.ShowDialog() != true)
            {
                return;
            }

            ItemEmployee employee = userSearch.SelectedEmployee;

            if (!ReportEmployees.Contains(employee))
            {
                ReportEmployees.Add(employee);
            }
        }