Example #1
0
 public EatThread(ConfigHelper.ConfigHelper configHelper, Action SetMap, System.Windows.Forms.NotifyIcon notifyIcon1)
 {
     this.configHelper   = configHelper;
     EatFileAllowType    = configHelper.GetConfig("EatFileAllowType").ToString().Split(',');
     EatFileNotAllowType = configHelper.GetConfig("EatFileNotAllowType").ToString().Split(',');
     EatPath             = new DirectoryInfo(configHelper.GetConfig("EatPath").ToString());
     EatBetween          = int.Parse(configHelper.GetConfig("EatBetween").ToString());
     this.SetMap         = SetMap;
     ni = notifyIcon1;
 }
Example #2
0
 private void ChangeConfig_Load(object sender, EventArgs e)
 {
     this.Config = Form1.Config;
     if (Config.GetConfig("EatFileEnable").ToString().Equals("true"))
     {
         comboBox1.SelectedIndex = 0;
     }
     else
     {
         comboBox1.SelectedIndex = 1;
     }
     textBox1.Text = Config.GetConfig("EatFileAllowType").ToString();
     textBox2.Text = Config.GetConfig("EatFileNotAllowType").ToString();
     textBox3.Text = Config.GetConfig("EatBetween").ToString();
     EatfileAllow  = Config.GetConfig("EatPath").ToString();
 }
Example #3
0
        private void ChangeConfig_Load(object sender, EventArgs e)
        {
            this.Config = Form1.Config;
            if (Config.GetConfig("EatFileEnable").ToString().Equals("true"))
            {
                comboBox1.SelectedIndex = 0;
            }
            else
            {
                comboBox1.SelectedIndex = 1;
            }
            textBox1.Text = Config.GetConfig("EatFileAllowType").ToString();
            textBox2.Text = Config.GetConfig("EatFileNotAllowType").ToString();
            textBox3.Text = Config.GetConfig("EatBetween").ToString();
            textBox4.Text = Config.GetConfig("ListenPort").ToString();
            textBox5.Text = Config.GetConfig("DefDownloadSavePath") == null?Environment.GetFolderPath(Environment.SpecialFolder.Programs) : Config.GetConfig("DefDownloadSavePath").ToString();

            EatfileAllow = Config.GetConfig("EatPath").ToString();
        }