Exemplo n.º 1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     EnableLogListeners();
     //MyWebMind.Debug.IconListCreator.GenerateIconXML();
     MainCtrl mainCtrl = new MainCtrl();
     MainForm form = new MainForm(mainCtrl);
     mainCtrl.InitMindMate(form);
     var ribbonHandler = new View.Ribbon.Ribbon(form.Ribbon, mainCtrl, form);
     form.RibbonCtrl = ribbonHandler;
     form.Load += (sender, args) => ribbonHandler.OnRibbonLoaded();
     Application.ThreadException += Application_ThreadException;
     Application.Run(form);
     CloseLogListeners();
 }
Exemplo n.º 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            EnableLogListeners();
            //MyWebMind.Debug.IconListCreator.GenerateIconXML();
            MainCtrl mainCtrl = new MainCtrl();
            MainForm form     = new MainForm(mainCtrl);

            mainCtrl.InitMindMate(form, new DialogManager());
            var ribbonHandler = new View.Ribbon.Ribbon(form.Ribbon, mainCtrl, form);

            form.RibbonCtrl              = ribbonHandler;
            form.Load                   += (sender, args) => ribbonHandler.OnRibbonLoaded();
            Application.ThreadException += Application_ThreadException;
            Application.Run(form);
            CloseLogListeners();
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ProgramMainHelper.EnableLogListeners();
            //MyWebMind.Debug.IconListCreator.GenerateIconXML();
            MainCtrl mainCtrl = new MainCtrl();
            MainForm form     = new MainForm(mainCtrl);

            ProgramMainHelper.SetFileToOpenFromAppArguments(args, form);
            mainCtrl.InitMindMate(form, new DialogManager());

            // specific to win7
            var ribbonHandler = new View.Ribbon.Ribbon(form.Ribbon, mainCtrl, form);

            form.RibbonCtrl = ribbonHandler;
            form.Load      += (sender, arguments) => ribbonHandler.OnRibbonLoaded();
            // specific to win7

            Application.ThreadException += ProgramMainHelper.Application_ThreadException;
            Application.Run(form);
            ProgramMainHelper.CloseLogListeners();
        }