Пример #1
0
        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();
        }
Пример #2
0
        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();
        }
Пример #3
0
        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();
        }
Пример #4
0
        public MathInputPanelWrapper(String caption = null)
        {
            caption = caption ?? Messages.DrawExpression;

            try
            {
                _panel = new MathInputControl();
                _panel.SetCaptionText(caption);
                _panel.EnableExtendedButtons(true);
                _panel.Insert += Insert;
                _panel.Close  += Close;
                IsAvailable    = true;
            }
            catch (Exception ex)
            {
                Trace.WriteLine("MATH INPUT PANEL COULD NOT BE LOADED... See exception for details.");
                Trace.WriteLine(ex);
                IsAvailable = false;
            }
        }