Пример #1
0
 private static void ApplyOptions()
 {
     if (!Directory.Exists(Options.FilesFolderPath))
     {
         Directory.CreateDirectory(Options.FilesFolderPath);
     }
     if (!Directory.Exists(Options.TemplatesFolderPath))
     {
         Directory.CreateDirectory(Options.TemplatesFolderPath);
     }
     GLPageController.ApplyStyles(Options.SyntaxHighlightStyles);
     foreach (var sceneController in SceneControllers)
     {
         ApplyOptions(sceneController);
     }
 }
Пример #2
0
 internal GLProgramController(string caption)
 {
     Form = new GLProgramDialog()
     {
         Text = $"{caption} - GLSL Editor"
     };
     Form.ActiveControl = PrimaryTextBox;
     SetSplitSize(0);
     ShowDocumentMap = false;
     PageController  = new GLPageController(PrimaryTextBox);
     new GLPageController(SecondaryTextBox);
     Form.btnExportHTML.Click        += FileExportHTML_Click;
     Form.btnExportRTF.Click         += FileExportRTF_Click;
     Form.btnPrint.Click             += FilePrint_Click;
     Form.btnOptions.DropDownOpening += ViewMenu_DropDownOpening;
     Form.btnRuler.Click             += ViewRuler_Click;
     Form.btnLineNumbers.Click       += ViewLineNumbers_Click;
     Form.btnDocumentMap.Click       += ViewDocumentMap_Click;
     Form.btnSplit.Click             += BtnSplit_Click;
     Form.btnHelp.Click  += BtnHelp_Click;
     Form.btnApply.Click += BtnApply_Click;
 }