Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
        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);
                }
            }
        }
Ejemplo n.º 3
0
 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);
     }
 }