コード例 #1
0
        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);
            }
        }
コード例 #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 SaveSettings()
 {
     MdCore.Serialize <MdSetting>(setting, MdConstant.settings);
 }