コード例 #1
0
        private void FrmMain_Load(object sender, EventArgs e)
        {
            Text = Helpers.BuildTitle();

            Engine = new ScriptEngine();

            ScriptEngineHelpers.AddSpecialFoldersToPlaceholders();

            RefreshScripts();
        }
コード例 #2
0
        private void FrmMain_Load(object sender, EventArgs e)
        {
            Text = BuildTitle();

            Engine = new ScriptEngine();

            ScriptEngineHelpers.AddSpecialFoldersToPlaceholders();

            Engine.LoadAndParseScripts();

            cmbSoftware.Items.AddRange(Engine.GetSoftwareNames());

            if (cmbSoftware.Items.Count > 0)
            {
                cmbSoftware.SelectedIndex = 0;
            }
            else
            {
                SetLogVisible(Engine.IsLoadingError, Engine.IsLoadingError);
            }
        }