コード例 #1
0
ファイル: RadioFactory.cs プロジェクト: rmc47/CloudlogCAT
 public IRadio GetRadio(RadioModel model, RadioConnectionSettings connectionSettings)
 {
     switch (model)
     {
         case RadioModel.ElecraftK3:
             return new Elecraft.K3(connectionSettings);
         case RadioModel.FT950:
             return new Yaesu.FT950(connectionSettings);
         case RadioModel.IcomGeneric:
             return new Icom.GenericIcom(connectionSettings);
         default:
             throw new UnsupportedRadioException();
     }
 }
コード例 #2
0
 public MeterViewModel(RadioModel model, uint channel)
 {
     _model   = model;
     _channel = channel;
 }
コード例 #3
0
 public MasterViewModel(RadioModel model, ViewObject vo)
 {
     exciterView_ = new ExciterViewModel();
     // paxView_ = new PaxViewModel();
     // _userView = new UserViewModel(radioView_, exciterView_);
 }
コード例 #4
0
 public void ActivateRadio(RadioModel model)
 {
     _currentRadioModel = model;
 }