private async Task ChangeWindow() { if (_selectedRepository == null) { return; } await Task.Run(() => { Application.Current.Dispatcher.Invoke((Action) delegate { CommitWindow commitWindow = new CommitWindow(_selectedRepository.Id); _mainWindow.Close(); commitWindow.Show(); }); }); }
public override void Execute(object parameter) { var selectedItems = GetSelectedItems(); if (selectedItems.Count == 0) { return; } var items = GetProjectItems(selectedItems); var dialog = new CommitWindow(); dialog.Initialize(items); AppHost.Shell.ShowDialog(dialog); }
private static void pmlCommit() { NotepadPPGateway notepadPPGateway = new NotepadPPGateway(); //Save the file to original location string path = notepadPPGateway.GetCurrentFilePath(); //check the file is committed file or not. if (path.Contains("temp")) { MessageBox.Show("This file can not be committed. Revert to this version before committing."); return; } //Open Commit form to enter commit message CommitWindow commitFrm = new CommitWindow(); commitFrm.Show(); }