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