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); } }
private SymbolEditorForm CreateNewSymbolForm() { SymbolEditorForm childForm = new SymbolEditorForm(); childForm.Text = "Symbol " + ++m_SymbolNumber; childForm.FormClosed += new FormClosedEventHandler(childForm_FormClosed); return(childForm); }