예제 #1
0
        private void AddButton_Click(object sender, RoutedEventArgs e)
        {
            BUSY_INDICATOR.IsBusy = false;
            var wind = new StaffInfo {
                Owner = Window.GetWindow(this)
            };

            wind.ShowDialog();
            UpdateData();
        }
예제 #2
0
        private void DepStaffList_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            var staff = sender as ListBox;

            if (staff?.SelectedValue == null)
            {
                return;
            }

            var wind = new StaffInfo(staff.SelectedValue.ToString())
            {
                Owner = Window.GetWindow(this),
            };

            wind.ShowDialog();
            UpdateData();
        }