コード例 #1
0
ファイル: FormEditAB.cs プロジェクト: gaslypierre/Drive
        private void btnCancel_Click(object sender, EventArgs e)
        {
            mf.ABLine.isEditing = false;
            int last = mf.ABLine.numABLineSelected;

            mf.FileLoadABLines();

            mf.ABLine.numABLineSelected = last;
            mf.ABLine.refPoint1         = mf.ABLine.lineArr[mf.ABLine.numABLineSelected - 1].origin;
            mf.ABLine.abHeading         = mf.ABLine.lineArr[mf.ABLine.numABLineSelected - 1].heading;
            mf.ABLine.SetABLineByHeading();
            mf.ABLine.isABLineSet    = true;
            mf.ABLine.isABLineLoaded = true;
            mf.ABLine.moveDistance   = 0;

            mf.layoutPanelRight.Enabled = true;
            Close();
        }