Пример #1
0
        private void toolStripButton_Click(object sender, EventArgs e)
        {
            foreach (ToolStripButton b in toolStrip1.Items)
            {
                b.Checked = false;
            }
            ToolStripButton click = (ToolStripButton)sender;

            if (click.Checked)
            {
                m_act = Act.None;
            }
            ShowMessage("act:" + m_act);
            click.Checked = !click.Checked;
            //MT.ClearEvent();
            if (m_act == Act.DefinePoint || m_act == Act.DefineId || m_act == Act.DefineName ||
                m_act == Act.DefineChoose || m_act == Act.DefineUnChoose ||
                m_act == Act.SeclectionToDark || m_act == Act.SeclectionToWhite)
            {
                MT.StartDraw(true);
                //MT.completevent += CompleteSelection;
            }
        }