示例#1
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            btnLeftRight.Enabled          = false;
            btnOuter.Enabled              = true;
            btnLoadBoundaryFromGE.Enabled = true;
            btnOpenGoogleEarth.Enabled    = true;
            btnSerialOK.Enabled           = false;
            btnDelete.Enabled             = false;

            mf.boundz.ResetBoundary();
            mf.FileSaveOuterBoundary();

            btnLeftRight.Image = mf.boundz.isDrawRightSide ? Properties.Resources.BoundaryRight : Properties.Resources.BoundaryLeft;
        }
示例#2
0
        private void btnStop_Click(object sender, EventArgs e)
        {
            mf.boundz.isOkToAddPoints = false;

            if (mf.boundz.ptList.Count > 5)
            {
                mf.boundz.PreCalcBoundaryLines();
                mf.boundz.isSet = true;
                mf.FileSaveOuterBoundary();
            }
            else
            {
                mf.boundz.calcList.Clear();
                mf.boundz.ptList.Clear();
                mf.boundz.area  = 0;
                mf.boundz.isSet = false;
                mf.FileSaveOuterBoundary();
            }
            //close window
            Close();
        }