Exemplo n.º 1
0
        private void mnuEditRun_Click(object sender, EventArgs e)
        {
            String    splitFile     = (this.split == null) ? null : this.split.File;
            int       runsCompleted = (this.split == null) ? 0 : this.split.RunsCompleted;
            RunEditor runEditor     = new RunEditor(this.split);

            runEditor.ShowDialog();
            if (runEditor.DialogResult == DialogResult.OK)
            {
                String         runTitle      = runEditor.Split.RunTitle;
                String         runGoal       = runEditor.Split.RunGoal;
                int            attemptsCount = runEditor.Split.AttemptsCount;
                List <Segment> segments      = runEditor.Split.Segments;
                this.split               = new Split(runTitle, runGoal, attemptsCount, segments);
                this.split.File          = splitFile;
                this.split.RunsCompleted = runsCompleted;
                this.informations.Clear();
                FillInformations();
                CreateSegmentsRectangles();
                this.displayMode = DisplayMode.SEGMENTS;
            }
        }
Exemplo n.º 2
0
 private void mnuEditRun_Click(object sender, EventArgs e)
 {
     String splitFile = (this.split == null) ? null : this.split.File;
     int runsCompleted = (this.split == null) ? 0 : this.split.RunsCompleted;
     RunEditor runEditor = new RunEditor(this.split);
     runEditor.ShowDialog();
     if (runEditor.DialogResult == DialogResult.OK)
     {
         String runTitle = runEditor.Split.RunTitle;
         String runGoal = runEditor.Split.RunGoal;
         int attemptsCount = runEditor.Split.AttemptsCount;
         List<Segment> segments = runEditor.Split.Segments;
         this.split = new Split(runTitle, runGoal, attemptsCount, segments);
         this.split.File = splitFile;
         this.split.RunsCompleted = runsCompleted;
         this.informations.Clear();
         FillInformations();
         CreateSegmentsRectangles();
         this.displayMode = DisplayMode.SEGMENTS;
     }
 }