public void Open() { if (IsAvailable) { _panel.Show(); } }
static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ctrl = new MathInputControlClass(); ctrl.EnableExtendedButtons(true); ctrl.EnableAutoGrow(true); ctrl.Close += () => Application.ExitThread(); ctrl.Insert += new _IMathInputControlEvents_InsertEventHandler(ctrl_Insert); ctrl.SetCaptionText("Copy LaTeX Formular to Clipboard"); ctrl.Show(); Application.Run(); }
static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); _mipControl = new MathInputControlClass(); var centerOfScreen = Screen.AllScreens[0].WorkingArea.Center(); _mipControl.CenterOn(centerOfScreen); _mipControl.EnableExtendedButtons(true); _mipControl.EnableAutoGrow(true); _mipControl.Close += Application.ExitThread; _mipControl.Insert += OnInsert; _mipControl.SetCaptionText("Copy Formula to Clipboard"); _mipControl.Show(); Application.Run(); }