Ejemplo n.º 1
0
        public void Run(FormMain mainForm)
        {
            _FormMain = mainForm;
            Application.EnableVisualStyles();
            _FireEditPluginManager.LoadFromXml(PluginFile);

            foreach (FireEditPlugin plugin in _FireEditPluginManager.PluginsLoaded)
            {
                plugin.Execute(this);
            }

            Application.Run(mainForm);
        }
Ejemplo n.º 2
0
        static void Main(string[] files)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            FormMain mainForm = new FormMain();

            try
            {
                if (files.Length > 0)
                    mainForm.OpenFile(files[0]);
            }
            catch
            {
                MessageBox.Show("Invalid File on arguments!");
            }

            CodeEditorControl.defaultLineMarginRender = new FireEditLineMarginRender();

            FireEditApplication.RunMain(mainForm);
        }
Ejemplo n.º 3
0
        ///// <summary>
        ///// Static Istance of FireEdit Application
        ///// </summary>
        //public static FireEditApplication Istance
        //{
        //    get
        //    {
        //        if (_FireEditApplication == null)
        //            _FireEditApplication = new FireEditApplication();

        //        return _FireEditApplication;
        //    }
        //}

        /// <summary>
        /// Static Shortcut to FireEditApplication Run method
        /// </summary>
        /// <param name="mainForm"></param>
        public static void RunMain(FormMain mainForm)
        {
            ((FireEditApplication)FireEditApplication.Istance).Run(mainForm);
        }