Example #1
0
 public AppWin_Si4012_CP()
 {
     this.InitializeComponent();
     this.Text = this._appId + ": " + this.Text;
     this.spcMainContainer.IsSplitterFixed = true;
     if ((SystemInformation.PrimaryMonitorSize.Height - 120) < 0x30e)
     {
         base.Height = SystemInformation.PrimaryMonitorSize.Height - 140;
         Point point = new Point();
         this.vsb.Height = (base.ClientSize.Height - this.tsrMainToolStrip.Height) - this.Status.Height;
         this.vsb.SmallChange = this.spcMainContainer.Height / 20;
         this.vsb.LargeChange = this.spcMainContainer.Height / 10;
         this.vsb.Minimum = 0;
         this.vsb.Maximum = (((this.spcMainContainer.Height - base.ClientSize.Height) + this.vsb.LargeChange) + this.Status.Height) + this.tsrMainToolStrip.Height;
         this.vsb.ValueChanged += new EventHandler(this.vsb_ValueChanged);
         base.MouseWheel += new MouseEventHandler(this.mouseWheelRotated);
         base.Controls.Add(this.vsb);
         this._formwidth += this.vsb.Width;
         base.Width = this._formwidth;
         point.Y = this.tsrMainToolStrip.Height;
         point.X = (base.Width - this.vsb.Width) - 10;
         this.vsb.Location = point;
         this.vsb.Show();
         this.vsb.BringToFront();
         this.btnShowStatus.Visible = false;
         this.showLogWindow();
     }
     else
     {
         this.showStatus(!this.__isStatusShown);
     }
     this.showLogWindow();
     this._mtbCommandSet = new MaskedTextBox[] { this.mtbModeSelection, this.mtbTuneInterval, this.mtbModulationDeviation, this.mtbChipConfig, this.mtbCarrierFrequency, this.mtbDataRate, this.mtbExternalCrystal, this.mtbPAConfiguration, this.mtbFIFOTreshold, this.mtbLEDIntensity, this.mtbLEDControl, this.mtbFIFOInterrupts, this.mtbBatteryTreshold };
     this._XOCommandIdx = 6;
     if (!GlobalServices.isfeatureAllowed(GlobalServices.Features.Developer))
     {
         this.lblRID.Visible = this.lblRIDMaj.Visible = this.lblRIDMin.Visible = this.lblDot1.Visible = this.lblRevID.Visible = this.lblFW.Visible = this.lblFWMaj.Visible = this.lblFWMin.Visible = this.lblDot2.Visible = this.txbRomIDMajor.Visible = this.txbRomIDMinor.Visible = this.txbRevId.Visible = this.txbFirmwareMajor.Visible = this.txbFirmwareMinor.Visible = false;
         this.lblTrimId.Text = "Chip Data";
         this.lblTrimId.Location = new Point(this.lblTrimId.Location.X + 20, this.lblTrimId.Location.Y);
         this.txbTrimID.Size = new Size(this.txbTrimID.Size.Width + 60, this.txbTrimID.Size.Height);
     }
     this._teleProcessor = new TelegramSeriesLocalProcessor(this);
 }
Example #2
0
 public IIOPortHandler[] createPortHandlers(ADTRecord[] devices)
 {
     _adtRec = devices[0];
     if ((_adtRec.PortAddress.Nickname != null) && (_adtRec.PortAddress.Nickname != string.Empty))
     {
         tsrMainToolStrip.Nickname = _adtRec.PortAddress.Nickname;
     }
     else
     {
         tsrMainToolStrip.Nickname = "Device [" + _adtRec.UniqId + "]";
     }
     if (_adtRec.DeviceInfo.DeviceType.TypeID == DeviceTypeID.UDP001)
     {
         _ioph = new IOPH_DATA(_adtRec, this);
     }
     else
     {
         _ioph = new IOPH_DCP(_adtRec, this);
         _teleProcessor = new TelegramSeriesLocalProcessor(this);
     }
     return new IIOPortHandler[] { _ioph };
 }
Example #3
0
 public IIOPortHandler[] createPortHandlers(ADTRecord[] devices)
 {
     this._adtRec = devices[0];
     if ((this._adtRec.PortAddress.Nickname != null) && (this._adtRec.PortAddress.Nickname != string.Empty))
     {
         this.tsrMainToolStrip.Nickname = this._adtRec.PortAddress.Nickname;
     }
     else
     {
         this.tsrMainToolStrip.Nickname = "Device [" + this._adtRec.UniqId + "]";
     }
     if ((this._adtRec.DeviceInfo.DeviceType != null) && (this._adtRec.DeviceInfo.DeviceType.TypeID == DeviceTypeID.SRW002))
     {
         this._ioph = new IOPH_DCP(this._adtRec, this);
         this._teleProcessor = new TelegramSeriesLocalProcessor(this);
     }
     else
     {
         this._ioph = new IOPH_DATA(this._adtRec, this);
         try
         {
             this.tbcCommandTypeSelector.TabPages.Remove(this.tbpTclScriptCall);
         }
         catch
         {
             _log.Error("Removing tbpTclScriptCall tab failed!");
         }
     }
     return new IIOPortHandler[] { this._ioph };
 }