Пример #1
0
        private void AddButon_Click(object sender, RoutedEventArgs e)
        {
            _BUSY_INDICATOR.IsBusy = false;
            var wind = new AddStaff(Guid.Empty)
            {
                Owner = Window.GetWindow(this)
            };

            wind.ShowDialog();
            UpdateData();
        }
Пример #2
0
        private void Modifier_OnClick(object sender, RoutedEventArgs e)
        {
            var menuItem = (MenuItem)e.Source;
            var menu     = (ContextMenu)menuItem.Parent;
            var list     = (ListBox)menu.PlacementTarget;

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

            _BUSY_INDICATOR.IsBusy = false;
            var wind = new AddStaff((Guid)list.SelectedValue)
            {
                Owner = Window.GetWindow(this)
            };

            wind.ShowDialog();
            UpdateData();
        }