Beispiel #1
0
 private void ShowSaveDialogEventHandler(object sender, OpenDialogEventArgs e)
 {
     if (_vm.IsSaveDialog)
     {
         var    s = ((OpenDialogViewModelBase)sender);
         string openedDialogPath = $@"{s.SelectedFolder.Path}\{s.SelectedFilePath}{s.SelectedFileFilterExtension}";
         OnSaveDialogOpened(this, new SaveFileEventArgs(openedDialogPath));
     }
     else
     {
         string openedDialogPath = ((OpenDialogViewModelBase)sender).SelectedFolder.Path;
         OnDirectoryDialogOpened(this, new SelectedDirectoryEventArgs(openedDialogPath));
     }
 }
Beispiel #2
0
 protected virtual void OnOpenDialog(OpenDialogEventArgs e)
 {
     OpenDialog?.Invoke(this, e);
 }
Beispiel #3
0
 private void HandleDialogOpen(object sender, OpenDialogEventArgs args)
 {
     AmbitionApp.SendMessage(GameMessages.DIALOG_OPENED, args.DialogID);
     AmbitionApp.SendMessage(AudioMessages.PLAY, OpenDialogSnd);
 }