Beispiel #1
0
        private void ShowOptionsWindow(object ignore)
        {
            //TODO usun view z viewmodel:)
            OptionsWindowView about = new OptionsWindowView();

            about.Owner = Application.Current.MainWindow;
            about.ShowDialog();
        }
 private void EnterToOptions(IClosable win)
 {
     if (this._passwordService.ComperPassword(this.EnteredPasswrod))
     {
         this.OptionsWindow = new OptionsWindowView();
         this.OptionsWindow.Show();
         if (win != null)
         {
             win.Close();
         }
     }
     else
     {
         Messenger.Default.Send <NotifiMessage>(new NotifiMessage()
         {
             Title = ViewModelLocator.rm.GetString("loginTitle"), Msg = ViewModelLocator.rm.GetString("failedLogin"), IconType = Notifications.Wpf.NotificationType.Error, ExpTime = 4
         });
     }
 }