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