private void OnToolStripButtonMergeClick(object sender, EventArgs e) { SvnExplorer svnExplorer = new SvnExplorer(); svnExplorer.TrunkSubTagOrSubBranchOnly = true; if (svnExplorer.ShowDialog(this) == DialogResult.OK) { IUICommand command = new MergeBranchCommand(svnExplorer.GetSvnExplorerSelection()); RunSynchronousCommand(command); } }
private void OnToolStripMenuItemNewProjectClick(object sender, EventArgs e) { // Access CheckOutdirectory to ensure there is a value. NAntConsoleConfigurationSection.GetCheckOutDirectory(); SvnExplorer svnExplorer = new SvnExplorer(); svnExplorer.ReadOnly = false; svnExplorer.TrunkSubTagOrSubBranchOnly = true; if (svnExplorer.ShowDialog(this) == DialogResult.OK) { IUICommand command = null; if (sender == toolStripMenuItemNewVbProject) { command = new GenerateVB6ProjectCommand(svnExplorer.GetSvnExplorerSelection()); } if (sender == toolStripMenuItemNewEmptyProject) { command = new GenerateEmptyProjectCommand(svnExplorer.GetSvnExplorerSelection()); } if (command != null) { RunASyncCommand(command); } } }
private void OnToolStripButtonCheckOutClick(object sender, EventArgs e) { // Access CheckOutdirectory to ensure there is a value. NAntConsoleConfigurationSection.GetCheckOutDirectory(); SvnExplorer svnExplorer = new SvnExplorer(); if (svnExplorer.ShowDialog(this) == DialogResult.OK) { CheckOutUICommand checkOutUICommand = new CheckOutUICommand(svnExplorer.GetSvnExplorerSelection()); RunASyncCommand(checkOutUICommand); } }