Пример #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
        public FmMain()
        {
            InitializeComponent();
            FlpPool.DragEnter  += PanelDragEnter;
            FlpHPins.DragEnter += PanelDragEnter;
            FlpVPins.DragEnter += PanelDragEnter;


            FlpPool.DragDrop  += PanelDragDrop;
            FlpHPins.DragDrop += PanelDragDrop;
            FlpVPins.DragDrop += PanelDragDrop;

            MdSetting.LoadSettings();
            TbAnimusPath.Text = MdSetting.setting.animusPath;
            TbModPath.Text    = MdSetting.setting.modPath;
            TbOutputPath.Text = MdSetting.setting.outputPath;

            //MdCore.Serialize<ClController>(ClController.ProMicro(), MdConstant.controllers + MdConstant.pseparator + "pro-micro.ukbct");
            MdCore.Serialize <ClBuildList>(ClBuildList.BuildAll(), MdConstant.root + MdConstant.pseparator + "build-all.ukbl");
        }
Пример #3
0
 public static void LoadSettings()
 {
     setting = MdCore.Deserialize <MdSetting>(MdConstant.settings);
 }
Пример #4
0
 private void TbOutputPath_TextChanged(object sender, EventArgs e)
 {
     MdSetting.setting.outputPath = (sender as TextBox).Text;
     MdSetting.SaveSettings();
 }