Exemple #1
0
        private static frmStudioMain InitializeMainForm()
        {
            var mainForm = new frmStudioMain();

            mainForm.FormClosed += MainForm_FormClosed;
            MainFormManager.Start(mainForm);
            MainFormManager.ProcesArguments(Environment.GetCommandLineArgs());

            var toolkitOptions = new ToolkitOptions();

            toolkitOptions.Backend = PlatformBackend.PreferNative;
            Toolkit.Init(toolkitOptions);

            return(mainForm);
        }
Exemple #2
0
        private static frmStudioMain InitializeMainForm(string[] fileNames = null)
        {
            var mainForm = new frmStudioMain();

            mainForm.FormClosed += MainForm_FormClosed;
            MainFormManager.Start(mainForm);
            if (fileNames != null && fileNames.Count() > 0)
            {
                MainFormManager.ProcesArguments(fileNames);
            }
            else
            {
                MainFormManager.ProcesArguments(Environment.GetCommandLineArgs());
            }

            var toolkitOptions = new ToolkitOptions();

            toolkitOptions.Backend = PlatformBackend.PreferNative;
            Toolkit.Init(toolkitOptions);

            return(mainForm);
        }