Ejemplo n.º 1
0
        public SettingsFolderForm(SettingsFolder plugin, Framework.Interfaces.ICore core)
            : this()
        {
            _core   = core;
            _plugin = plugin;

            this.Text           = Utils.LanguageSupport.Instance.GetTranslation(STR_TITLE);
            this.groupBox1.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_SETTINGSFOLDER);
            this.groupBox2.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_TARGETSETTINGSFOLDER);
            this.label1.Text    = Utils.LanguageSupport.Instance.GetTranslation(STR_CURRENT);
            this.label6.Text    = Utils.LanguageSupport.Instance.GetTranslation(STR_AVAILABLE);
            this.checkBox1.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_ENABLESTARTUP);
            this.label4.Text    = Utils.LanguageSupport.Instance.GetTranslation(STR_FOLDER);
            this.button3.Text   = Utils.LanguageSupport.Instance.GetTranslation(STR_COPYCURRENT);
            this.button4.Text   = Utils.LanguageSupport.Instance.GetTranslation(STR_COPYDEFAULT);
            this.button5.Text   = Utils.LanguageSupport.Instance.GetTranslation(STR_SWITCH);
            this.button8.Text   = Utils.LanguageSupport.Instance.GetTranslation(STR_OK);

            textBox1.Text = core.SettingsProvider.GetSettingsScope();
            listBox1.Items.AddRange(core.SettingsProvider.GetSettingsScopes().ToArray());
            checkBox1.Checked = core.EnablePluginDataPathAtStartup;
        }
Ejemplo n.º 2
0
        public SettingsFolderForm(SettingsFolder plugin, Framework.Interfaces.ICore core)
            : this()
        {
            _core = core;
            _plugin = plugin;

            this.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_TITLE);
            this.groupBox1.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_SETTINGSFOLDER);
            this.groupBox2.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_TARGETSETTINGSFOLDER);
            this.label1.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_CURRENT);
            this.label6.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_AVAILABLE);
            this.checkBox1.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_ENABLESTARTUP);
            this.label4.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_FOLDER);
            this.button3.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_COPYCURRENT);
            this.button4.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_COPYDEFAULT);
            this.button5.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_SWITCH);
            this.button8.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_OK);

            textBox1.Text = core.SettingsProvider.GetSettingsScope();
            listBox1.Items.AddRange(core.SettingsProvider.GetSettingsScopes().ToArray());
            checkBox1.Checked = core.EnablePluginDataPathAtStartup;
        }
Ejemplo n.º 3
0
        public SettingsFolderForm(SettingsFolder plugin, Framework.Interfaces.ICore core)
            : this()
        {
            _core = core;
            _plugin = plugin;

            this.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_TITLE);
            this.groupBox1.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_SETTINGSFOLDER);
            this.groupBox2.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_TARGETSETTINGSFOLDER);
            this.label1.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_CURRENT);
            this.label6.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_AVAILABLE);
            this.checkBox1.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_ENABLESTARTUP);
            this.label4.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_FOLDER);
            this.button3.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_COPYCURRENT);
            this.button4.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_COPYDEFAULT);
            this.button5.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_SWITCH);
            this.button8.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_OK);

            textBox1.Text = core.PluginDataPath;
            string[] lst = core.AvailablePluginDataPaths;
            listBox1.Items.AddRange((from a in lst where string.Compare(a, core.PluginDataPath, true) != 0 select a).ToArray());
            checkBox1.Checked = core.EnablePluginDataPathAtStartup;
        }