Пример #1
0
        void da_Completed(object sender, EventArgs e)
        {
            Window window = Window.GetWindow(this);

            IModalService modalService = window as IModalService;

            if (DialogResult == Miscellaneous.ModalDialogResult.OK)
            {
                modalService.GoBackward(true);
            }

            if (DialogResult == Miscellaneous.ModalDialogResult.Cancel)
            {
                modalService.GoBackward(false);
            }
        }