Example #1
0
        public InputView()
        {
            InitializeComponent();

            DataContext = inputViewModel = new InputViewModel();

            inputViewModel.ClosingRequest += new EventHandler <CloseableBindableBase.DialogEventArgs>((o, e) =>
            {
                if (e.DialogMode == CloseableBindableBase.DialogMode.CANCEL)
                {
                    DialogResult = false;
                }
                else
                {
                    DialogResult = true;
                }

                Close();
            });
        }
Example #2
0
        public InputView()
        {
            InitializeComponent();

            DataContext = inputViewModel = new InputViewModel();

            inputViewModel.ClosingRequest += new EventHandler<CloseableBindableBase.DialogEventArgs>((o, e) =>
            {
                if (e.DialogMode == CloseableBindableBase.DialogMode.CANCEL)
                {
                    DialogResult = false;                   
                }
                else
                {
                    DialogResult = true;               
                }

                Close();

            });
        }