Ejemplo n.º 1
0
 public void DeployGraph()
 {
     WaitingResult = WaitingDialogResult.Flawless;
     ZoomAndPanCanvasModel.Clear();
     ((Action)DoDeployGraph).BeginInvoke(OnDeployedGraph, null);
     Program.GetInstance().ShowWaitingDialog();
 }
Ejemplo n.º 2
0
 public void EndWaitingDialog(WaitingDialogResult r)
 {
     WaitingDialog.Close();
     if (r == WaitingDialogResult.OutOfMemory)
     {
         MessageBox.Show("The repository is too large or there is not enough space in device.", "", MessageBoxButton.OK, MessageBoxImage.Error);
     }
     else if (r == WaitingDialogResult.TooMuchCommits)
     {
         MessageBox.Show("The repository has too much commits.\nLimit is 10 000 commits.", "", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
Ejemplo n.º 3
0
 void DoDeployGraph()
 {
     WaitingResult = WaitingDialogResult.Flawless;
     try
     {
         DeployCommitNodes();
         DeployBranchNodes();
         UpdateCheckouted();
         ZoomAndPanCanvasModel.CreateEdgePairs();
     }
     catch (OutOfMemoryException e)
     {
         WaitingResult = WaitingDialogResult.OutOfMemory;
     }
     catch (TooMuchCommitsException e)
     {
         WaitingResult = WaitingDialogResult.TooMuchCommits;
     }
 }