private void AddButton_Click(object sender, RoutedEventArgs e) { BUSY_INDICATOR.IsBusy = false; var wind = new StaffInfo { Owner = Window.GetWindow(this) }; wind.ShowDialog(); UpdateData(); }
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(); }