Exemplo n.º 1
0
        CourseObj[] additionalHighlights; // additional highlights to show also.

        public AddControlMode(Controller controller, SelectionMgr selectionMgr, UndoMgr undoMgr, EventDB eventDB, SymbolDB symbolDB, bool allControls, ControlPointKind controlKind, bool exchangeAtControl, MapIssueKind mapIssueKind)
        {
            this.controller        = controller;
            this.selectionMgr      = selectionMgr;
            this.undoMgr           = undoMgr;
            this.eventDB           = eventDB;
            this.symbolDB          = symbolDB;
            this.allControls       = allControls;
            this.controlKind       = controlKind;
            this.exchangeAtControl = exchangeAtControl;
            this.mapIssueKind      = mapIssueKind;
            this.appearance        = controller.GetCourseAppearance();
            this.courseObjRatio    = selectionMgr.ActiveCourseView.CourseObjRatio(appearance);
        }
Exemplo n.º 2
0
 private void startTriangleButton_Click(object sender, EventArgs e)
 {
     mapIssueKind = MapIssueKind.End;
     DialogResult = DialogResult.OK;
 }
Exemplo n.º 3
0
 private void middleButton_Click(object sender, EventArgs e)
 {
     mapIssueKind = MapIssueKind.Middle;
     DialogResult = DialogResult.OK;
 }
Exemplo n.º 4
0
 private void startButton_Click(object sender, EventArgs e)
 {
     mapIssueKind = MapIssueKind.Beginning;
     DialogResult = DialogResult.OK;
 }