コード例 #1
0
        public MainModel()
        {
            ModelName = "MainModel";

            SerialportWatcher.UsbPortChanged(null);

            EModel = new EmergencyModel(this);
            MModel = new MultiModel(this);
            DModel = new DumpModel(this);
            NModel = new NormalModel(this); // jwoh add Micom Download only

            this._currentTabIndex = Properties.Settings.Default.TabIndex;
            this.AllErase         = Properties.Settings.Default.AllErase;
            this.LogLevel         = Properties.Settings.Default.LogLevel;
            this.SelBoard         = Properties.Settings.Default.SelBoard;    // jwoh add User/Factory mode
            this.SelFirehose      = Properties.Settings.Default.SelFirehose; // jwoh add GM Signing
            this.SelBaudrate      = Properties.Settings.Default.SelBaudrate; // jwoh add baudrate
            this.SelModel         = Properties.Settings.Default.SelModel;    // jwoh add model
            this.MCP2K            = (Properties.Settings.Default.MCP2K_4K == "2K") ? true : false;
            this.MCP4K            = (Properties.Settings.Default.MCP2K_4K == "4K") ? true : false;
            ModelActivateChange(-1, this.CurrentTabIndex);
        }
コード例 #2
0
ファイル: DumpModel.cs プロジェクト: binh-chu/Download-Gen11
 public PortSelect(DumpModel aModel, SerialportWatcher.PortInfo aPort)
 {
     _model = aModel;
     Port   = aPort;
 }