private void checkBoxObjRect_CheckedChanged(object sender, EventArgs e)
 {
     if (checkBoxObjRect.Checked)
     {
         ucSingleDrawImageWnd c = ucSingleDrawImageWnd1;
         c.SetDrawType(DrawGraphType.GlobaRegion);
     }
 }
        private void InOutSideBtn_Click(object sender, EventArgs e)
        {
            ucSingleDrawImageWnd c = DrawHandle as ucSingleDrawImageWnd;

            if (c == null || WorldSC == null)
            {
                return;
            }
            c.SetDrawType(DrawGraphType.PassRegion);
        }
        private void btnNear_Click(object sender, EventArgs e)
        {
            ucSingleDrawImageWnd c = DrawHandle as ucSingleDrawImageWnd;

            if (c == null || WorldSC == null)
            {
                return;
            }
            c.SetDrawType(DrawGraphType.NearArea);
        }
        private void btnAnalyseRegion_Click(object sender, EventArgs e)
        {
            ucSingleDrawImageWnd c = DrawHandle as ucSingleDrawImageWnd;

            if (c == null || WorldSC == null)
            {
                return;
            }

            c.SetDrawType(DrawGraphType.AnalyseAreaEx);
        }
        private void checkButton2_Click(object sender, EventArgs e)
        {
            ucSingleDrawImageWnd c = DrawHandle as ucSingleDrawImageWnd;

            if (c == null)
            {
                return;
            }
            ButtonX barCheckItem = sender as ButtonX;

            c.SetDrawType((DrawGraphType)barCheckItem.Tag);
        }
        private void checkBoxX1_CheckedChanged(object sender, EventArgs e)
        {
            ucSingleDrawImageWnd c = DrawHandle as ucSingleDrawImageWnd;

            if (c == null)
            {
                return;
            }

            CheckBoxX barCheckItem = sender as CheckBoxX;

            if (!barCheckItem.Checked)
            {
                c.DriveWays[Convert.ToInt32(barCheckItem.Tag) - 11] = false;
            }
            else
            {
                c.SetDrawType((DrawGraphType)barCheckItem.Tag);
                c.DriveWays[Convert.ToInt32(barCheckItem.Tag) - 11] = true;
            }
        }
Esempio n. 7
0
        private void buttonX1_Click(object sender, EventArgs e)
        {
            ucSingleDrawImageWnd c = DrawHandle as ucSingleDrawImageWnd;

            c.SetDrawType(DataModel.DrawGraphType.AnalyseAreaEx);
        }