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(); }); }); }
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(); }