Ejemplo n.º 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());
     }
 }
Ejemplo n.º 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");
        }
Ejemplo n.º 3
0
 public static void LoadSettings()
 {
     setting = MdCore.Deserialize <MdSetting>(MdConstant.settings);
 }
Ejemplo n.º 4
0
 private void TbOutputPath_TextChanged(object sender, EventArgs e)
 {
     MdSetting.setting.outputPath = (sender as TextBox).Text;
     MdSetting.SaveSettings();
 }