public void OnMouseDownAtSaveBlackoutBorder(object obj, RoutedEventArgs arg)
        {
            SaveAndQuitEventArgs quitArg = new SaveAndQuitEventArgs();

            quitArg.canClose = true;
            if (OnSaveAndQuit != null)
            {
                OnSaveAndQuit(this, quitArg);
            }

            if (quitArg.canClose)
            {
                DialogResult = true;
            }
        }
        public void OnMouseDownAtSaveBlackoutBorder(object obj, RoutedEventArgs arg)
        {
            SaveAndQuitEventArgs quitArg = new SaveAndQuitEventArgs();
            quitArg.canClose = true;
            if (OnSaveAndQuit != null)
            {
                OnSaveAndQuit(this, quitArg);
            }

            if (quitArg.canClose)
            {
                DialogResult = true;
            }
        }
 public void OnSaveAndQuit(object sender, SaveAndQuitEventArgs e)
 {
     e.canClose = _model.IsSavable();
 }