private void SetPaperTypeButtonClickHandler(object sender, RoutedEventArgs e)
        {
            CheckDisposedState();

            if (ChangeOrderParams.ShowChoosePaperTypeDialog())
            {
                _orderInfoControl.Update();
                _orderParamsControl.Update();
                _listControl.List.Refresh();
            }
        }
Beispiel #2
0
        public static bool ShowChoosePaperTypeDialog()
        {
            ChangeOrderParams dialog = new ChangeOrderParams();

            ExecutionEngine.Instance.RegisterModalWidow(dialog);
            dialog.Resources.MergedDictionaries.Add(ExecutionEngine.Instance.Resource);
            dialog.WindowStartupLocation = WindowStartupLocation.CenterScreen;

            dialog.MouseMove += delegate(object mouseMoveSender, MouseEventArgs mouseMoveEventArg)
            {
                ExecutionEngine.Instance.RegisterUserAction();
            };

            return((bool)dialog.ShowDialog());
        }