Example #1
0
 public frmPrintPreview(PrintJob prj, frmStudioMain mainForm)
 {
     this.PrintJob     = prj;
     this.GLCONTROL    = frmStudioMain.SceneControl;
     this._plWorkspace = mainForm.plWorkSpace;
     GenerateThumbnails(null, null);
     UpdatePrintTimeStamp();
 }
Example #2
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);
        }
Example #3
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);
        }