Пример #1
0
 private void TbModPath_TextChanged(object sender, EventArgs e)
 {
     MdSetting.setting.modPath = (sender as TextBox).Text;
     MdSetting.SaveSettings();
     if (Directory.Exists(MdSetting.setting.modPath))
     {
         LbModPool.Items.Clear();
         LbMods.Items.Clear();
         LbModPool.Items.AddRange(Directory.GetDirectories(MdSetting.setting.modPath).ToList <string>().Select(str => Path.GetFileNameWithoutExtension(str)).ToArray());
     }
 }
Пример #2
0
 private void TbOutputPath_TextChanged(object sender, EventArgs e)
 {
     MdSetting.setting.outputPath = (sender as TextBox).Text;
     MdSetting.SaveSettings();
 }