示例#1
0
 void OffsetTool_OnMouseClick(object sender, MouseEventArgs e)
 {
     if (ActiveMdiChild is SymbolEditorForm)
     {
         SymbolEditorForm sef = (ActiveMdiChild as SymbolEditorForm);
         sef.SymbolEditor.Offset = sef.SymbolEditor.ReverseTranslate(e.Location, false);
     }
 }
示例#2
0
        private SymbolEditorForm CreateNewSymbolForm()
        {
            SymbolEditorForm childForm = new SymbolEditorForm();

            childForm.Text        = "Symbol " + ++m_SymbolNumber;
            childForm.FormClosed += new FormClosedEventHandler(childForm_FormClosed);
            return(childForm);
        }