コード例 #1
0
/********************************************************************
* Edge finder
* _probing_form
********************************************************************/
        private void edgeFinderopen(object sender, EventArgs e)
        {
            if (_probing_form == null)
            {
                _probing_form                      = new ControlProbing();
                _probing_form.FormClosed          += formClosed_ProbingForm;
                _probing_form.RaiseCmdEvent       += OnRaiseProbingEvent;
                _probing_form.btnGetAngleEF.Click += btnGetAngleEF_Click;
            }
            else
            {
                _probing_form.Visible = false;
            }
            _probing_form.Show(this);
            _probing_form.WindowState = FormWindowState.Normal;
        }
コード例 #2
0
 private void formClosed_ProbingForm(object sender, FormClosedEventArgs e)
 {
     _probing_form = null;
 }