コード例 #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
ファイル: MdSetting.cs プロジェクト: skempf/animus-family
 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();
 }