private void btnCreate_Click(object sender, EventArgs e)
 {
   try
   {
     var main = new Main();
     var connSelect = new ConnectionSelection();
     connSelect.MultiSelect = false;
     connSelect.GoNextAction = () => main.GoToStep(new ExportSelect());
     main.GoToStep(connSelect);
     main.Show();
   }
   catch (Exception ex)
   {
     Utils.HandleError(ex);
   }
 }
示例#2
0
 private void btnCompare_Click(object sender, EventArgs e)
 {
   try
   {
     var main = new Main();
     var compareSel = new CompareSelect();
     main.GoToStep(compareSel);
     main.Show();
   }
   catch (Exception ex)
   {
     Utils.HandleError(ex);
   }
 }
 private void btnInstall_Click(object sender, EventArgs e)
 {
   try
   {
     var main = new Main();
     main.GoToStep(new InstallSource());
     main.Show();
   }
   catch (Exception ex)
   {
     Utils.HandleError(ex);
   }
 }
示例#4
0
 private void lnkGitMergeHelper_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
   try
   {
     using (var dialog = new Dialog.ConfigDialog<MergeSettings>())
     {
       var settings = new MergeSettings();
       settings.ContinueLast = true;
       dialog.DataSource = settings;
       if (dialog.ShowDialog() == DialogResult.OK)
       {
         var mergeOp = new GitRepo(settings.RepoPath).GetMerge(settings.LocalBranch, settings.RemoteBranch);
         var main = new Main();
         var step = new MergeInterface();
         step.ContinueLastMerge = settings.ContinueLast;
         main.GoToStep(step.Initialize(mergeOp));
         main.Show();
       }
     }
   }
   catch (Exception ex)
   {
     Utils.HandleError(ex);
   }
 }