Пример #1
0
        private void Attendance_Click(object sender, RoutedEventArgs e)
        {
            var window = Application.Current.Windows.OfType <Window>().SingleOrDefault(w => w.IsActive);

            ListViewStaff listViewStaff = new ListViewStaff();

            listViewStaff.Show();

            window.Close();
        }
        private void ListViewTotalStaff_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            Activestaff.Setactivestaff((Staff)listViewTotalStaff.SelectedItem);
            ListViewStaff staffview = new ListViewStaff();


            staffview.Show();

            this.Close();
        }
        public async void UpdatedMessage()
        {
            lblUpdated.Visibility = Visibility.Visible;
            await Task.Delay(3500);

            lblUpdated.Visibility = Visibility.Hidden;

            ListViewStaff listViewStaff = new ListViewStaff();

            var window = Application.Current.Windows.OfType <Window>().SingleOrDefault(w => w.IsActive);

            listViewStaff.Show();

            window.Close();
        }