private void OpenIsoSuccess(PaneViewModelBase pane, string path, LoadCommand cmdParam) { IsBusy = false; var isoContentViewModel = (IsoContentViewModel)pane; switch (cmdParam) { case LoadCommand.Load: EventAggregator.GetEvent <OpenNestedPaneEvent>().Publish(new OpenNestedPaneEventArgs(this, pane)); break; case LoadCommand.Extract: var targetPath = WindowManager.ShowFolderBrowserDialog(path, Resx.FolderBrowserDescriptionIsoExtract); if (string.IsNullOrWhiteSpace(targetPath)) { return; } SilentTargetPath = targetPath; isoContentViewModel.SelectAllCommand.Execute(null); EventAggregator.GetEvent <ExecuteFileOperationEvent>().Publish(new ExecuteFileOperationEventArgs(FileOperation.Copy, isoContentViewModel, this, null)); break; case LoadCommand.Convert: isoContentViewModel.ConvertToGod(Path.GetDirectoryName(path)); break; } }
private void PaneLoaded(PaneViewModelBase pane) { if (!LeftPane.IsLoaded || !RightPane.IsLoaded) { return; } EventAggregator.GetEvent <ShellInitializedEvent>().Publish(new ShellInitializedEventArgs()); }
private void FtpConnectError(PaneViewModelBase pane, Exception exception) { IsBusy = false; var connectionName = ((FtpContentViewModel)pane).Connection.Name; if (exception is SomethingWentWrongException) { WindowManager.ShowErrorMessage(exception); } else { WindowManager.ShowMessage(Resx.ConnectionFailed, string.Format(Resx.CantConnectToFtp, connectionName, exception.Message)); } ConnectedFtp = null; }
private void FtpConnectSuccess(PaneViewModelBase pane) { IsBusy = false; EventAggregator.GetEvent <OpenNestedPaneEvent>().Publish(new OpenNestedPaneEventArgs(this, pane)); }
private void OpenIsoError(PaneViewModelBase pane, Exception exception) { IsBusy = false; WindowManager.ShowMessage(Resx.OpenFailed, string.Format("{0}: {1}", string.Format(Resx.CantOpenFile, CurrentRow.ComputedName), exception.Message)); }