Beispiel #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);
            }
        }
Beispiel #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");
        }
Beispiel #3
0
 public static void SaveSettings()
 {
     MdCore.Serialize <MdSetting>(setting, MdConstant.settings);
 }