public static fMain initEditor() { if (fmain == null) { fmain = new fMain(); } return(fmain); }
public static fMain initEditor() { cRegionalCfg.init(); if (fmain == null) { fmain = new fMain(); fmain.init(); } return fmain; }
public static fMain initEditor() { cRegionalCfg.init(); if (fmain == null) { fmain = new fMain(); fmain.init(); } return(fmain); }
public cEditor(fMain fmain, Panel editor, PictureBox rule, PictureBox report, TabPage editorTab) { m_fmain = fmain; m_editor = editor; m_editor.AutoScroll = true; m_picRule = rule; m_picRule.SetBounds(cUtil.mp(1), cUtil.mp(1), cUtil.mp(50), cUtil.mp(297)); m_picRule.BackColor = Color.PeachPuff; m_picReport = report; m_picReport.SetBounds(cUtil.mp(50) + cUtil.mp(1), cUtil.mp(1), cUtil.mp(210), cUtil.mp(297)); m_picReport.BackColor = Color.Beige; m_editorTab = editorTab; }
public cEditor(fMain fmain, Panel editor, PictureBox rule, PictureBox report, TabPage editorTab) { m_fmain = fmain; m_editor = editor; m_editor.AutoScroll = true; m_picRule = rule; m_picRule.SetBounds(cUtil.mp(1), cUtil.mp(1), cUtil.mp(50), cUtil.mp(297)); m_picRule.BackColor = Color.PeachPuff; m_picReport = report; m_picReport.SetBounds(cUtil.mp(50) + cUtil.mp(1), cUtil.mp(1), cUtil.mp(210), cUtil.mp(297)); m_picReport.BackColor = Color.Beige; m_picReport.Paint += new PaintEventHandler(m_picReport_Paint); m_picRule.Paint += new PaintEventHandler(m_picRule_Paint); // mouse events // m_picReport.MouseDown += new MouseEventHandler(m_picReport_MouseDown); m_picReport.MouseUp += new MouseEventHandler(m_picReport_MouseUp); m_picReport.MouseMove += new MouseEventHandler(m_picReport_MouseMove); // mouse well // // se me cae un lagrimon :( // m_picReport.Click += (s, e) => { editor.Focus(); }; // tab // m_editorTab = editorTab; m_editorTab.Enter += (s, e) => { cMainEditor.setDocActive(this); }; m_editorTab.Tag = this; }
public static fMain initEditor() { if (fmain == null) { fmain = new fMain(); } return fmain; }