예제 #1
0
        public GUI()
        {
            SetStyles();
            InitializeComponent();
            editorSplit.SplitterDistance = 400;

            editorNumeric.AllowSeveralTextStyleDrawing = true;
            editorVerbose.AllowSeveralTextStyleDrawing = true;
            if (File.Exists("DarkScript2.config"))
            {
                Config = new GUIConfig("DarkScript2.config");
            }
            else
            {
                Config = new GUIConfig();
            }
        }
예제 #2
0
 public ConfigEditor(GUIConfig config)
 {
     InitializeComponent();
     Config = config;
     if (Config.ExistingProjectAction == EPHV.Ask)
     {
         askBtn.Checked = true;
     }
     else if (Config.ExistingProjectAction == EPHV.Backup)
     {
         backupBtn.Checked = true;
     }
     else if (Config.ExistingProjectAction == EPHV.Load)
     {
         loadBtn.Checked = true;
     }
     else if (Config.ExistingProjectAction == EPHV.Overwrite)
     {
         overwriteBtn.Checked = true;
     }
 }