private void BtnSave_Click(object sender, EventArgs e) { UpdateProfile(); SaveFileDialog dialog = new SaveFileDialog(); dialog.Filter = "Build Profile | " + MdConstant.eProfiles; dialog.Title = "Save Build Profile"; dialog.InitialDirectory = MdConstant.profiles; dialog.ShowDialog(); if (dialog.FileName != "") { MdCore.Serialize <ClBuildProfile>(MdGlobal.profile, dialog.FileName); } }
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"); }
public static void SaveSettings() { MdCore.Serialize <MdSetting>(setting, MdConstant.settings); }