Ejemplo n.º 1
0
Archivo: PaMode.cs Proyecto: x893/WDS
 public PaMode(string name, byte value, NewWDS.ChipFamily.PRO2.PaBias paBias, NewWDS.ChipFamily.PRO2.PaLevel paLevel)
 {
     this.Name = name;
     this.Value = value;
     this.PaBias = paBias;
     this.PaLevel = paLevel;
 }
Ejemplo n.º 2
0
 public Recipient(string address, string displayName, NewWDS.MapiMailMessage.RecipientType recipientType)
 {
     this.RecipientType = NewWDS.MapiMailMessage.RecipientType.To;
     this.Address = address;
     this.DisplayName = displayName;
     this.RecipientType = recipientType;
 }
Ejemplo n.º 3
0
Archivo: Chip.cs Proyecto: x893/WDS
 public Chip(string chipType, string chipRev, string chipVersion, NewWDS.Applications.App_Si4460.RfOperation rfOperation)
 {
     this.ChipType = chipType;
     this.ChipRevision = chipRev;
     this.ChipVersion = chipVersion;
     this.RfOperation = rfOperation;
 }
Ejemplo n.º 4
0
        public void initData(bool enableAssoc, DateTime dateTime, int productID, DateMode dateMode, double price, NewWDS.Demo_applications.ShelfLabelDemo.Currency currency, DisplayMode displayMode)
        {
            this.chbEnableAssociation.Checked = enableAssoc;
            this.dtpDate.Value = dateTime;
            this.dtpTime.Value = dateTime;
            this.nudProductID.Value = productID;
            switch (dateMode)
            {
                case DateMode.Time:
                    this.rdbTime.Checked = true;
                    break;

                case DateMode.ProductId:
                    this.rdbProductID.Checked = true;
                    break;

                default:
                    this.rdbTime.Checked = true;
                    break;
            }
            this.nudPrice.Value = (decimal) price;
            this.cbbCurrency.SelectedIndex = (int) currency;
            switch (displayMode)
            {
                case DisplayMode.RSSI:
                    this.rdbRSSI.Checked = true;
                    return;

                case DisplayMode.VBAT:
                    this.rdbBattertyVoltage.Checked = true;
                    return;

                case DisplayMode.Humidity:
                    this.rdbHumidity.Checked = true;
                    return;

                case DisplayMode.Temperature:
                    this.rdbTemperature.Checked = true;
                    return;
            }
            this.rdbPrice.Checked = true;
        }
Ejemplo n.º 5
0
 private void lbcShelfLabel3_DataChanged(bool enableAssoc, DateTime dateTime, int productID, DateMode dateMode, double price, NewWDS.Demo_applications.ShelfLabelDemo.Currency currency, DisplayMode displayMode, bool identifyTag)
 {
     this._shelfLabelDescriptorSet[2].setValues(enableAssoc, dateTime, productID, dateMode, price, currency, displayMode, identifyTag);
     if (identifyTag)
     {
         this.slpPanel.identifyLabel(3);
     }
 }
Ejemplo n.º 6
0
 public void setValues(bool enableAssoc, System.DateTime dateTime, int productID, NewWDS.Demo_applications.ShelfLabelDemo.DateMode dateMode, double price, NewWDS.Demo_applications.ShelfLabelDemo.Currency currency, NewWDS.Demo_applications.ShelfLabelDemo.DisplayMode displayMode, bool identifyTag)
 {
     lock (this._lockObj)
     {
         this._enableAssoc = enableAssoc;
         this._dateTime = dateTime;
         this._productID = productID;
         if (this._dateMode != dateMode)
         {
             this._dateModeChanged = true;
         }
         this._dateMode = dateMode;
         this._price = price;
         this._currency = currency;
         if (this._displayMode != displayMode)
         {
             this._displayModeChanged = true;
         }
         this._displayMode = displayMode;
         this._identifyTag = identifyTag;
     }
 }
Ejemplo n.º 7
0
        public void initEvaluation(string chipType, string chipRev, string projectName, string[] evaluationOptions, NewWDS.Applications.App_Si4460.RfOperation rfOperation)
        {
            this.ChipType = chipType;
            this.ChipRevision = chipRev;
            this.ProjectName = projectName;
            this.EvaluationOptions = evaluationOptions;
            this.RfOperation = rfOperation;
            this.Text = string.Join(" ", new string[] { "Evaluation", chipType, this.ChipRevision, "-", this.ProjectName });
            if (this.flpOptionControls.Controls.Contains(this._frr))
            {
                this.flpOptionControls.Controls.Remove(this._frr);
                this._frr = null;
            }
            if (this.flpOptionControls.Controls.Contains(this._chs))
            {
                this.flpOptionControls.Controls.Remove(this._chs);
                this._chs = null;
            }
            if (this.flpOptionControls.Controls.Contains(this._ist))
            {
                this.flpOptionControls.Controls.Remove(this._ist);
                this._ist = null;
            }
            if (this.flpOptionControls.Controls.Contains(this._rxf))
            {
                this.flpOptionControls.Controls.Remove(this._rxf);
                this._rxf = null;
            }
            if (this.flpOptionControls.Controls.Contains(this._rxo))
            {
                this.flpOptionControls.Controls.Remove(this._rxo);
                this._rxo = null;
            }
            if (this.flpOptionControls.Controls.Contains(this._txf))
            {
                this.flpOptionControls.Controls.Remove(this._txf);
                this._txf = null;
            }
            if (this.flpOptionControls.Controls.Contains(this._per))
            {
                this.flpOptionControls.Controls.Remove(this._per);
                this._per = null;
            }
            int num = 0;
            int num2 = 10;
            string[] strArray2 = this.EvaluationOptions;
            for (int i = 0; i < strArray2.Length; i++)
            {
                switch (strArray2[i])
                {
                    case "Info":
                        this._inf = new Info();
                        this._inf.readInfo += new EventHandler(this.inf_readInfo);
                        num += this._inf.Height + num2;
                        this.flpOptionControls.Controls.Add(this._inf);
                        break;

                    case "FRR":
                        this._frr = new FRR();
                        this._frr.readFRR += new EventHandler(this.frr_readFRR);
                        num += this._frr.Height + num2;
                        this.flpOptionControls.Controls.Add(this._frr);
                        break;

                    case "ChangeState":
                        this._chs = new ChangeState();
                        num += this._chs.Height + num2;
                        this._chs.initChangeState(this.RfOperation);
                        this._chs.changeState += new ChangeState.ChangeStateEventHandler(this.chs_changeState);
                        this.flpOptionControls.Controls.Add(this._chs);
                        break;

                    case "InterruptStatus":
                        this._ist = new InterruptStatus();
                        this._ist.readInterruptStatus += new EventHandler(this.ist_readInterruptStatus);
                        this._ist.readInterruptStatusHelp += new EventHandler(this.ist_readInterruptStatusHelp);
                        num += this._ist.Height + num2;
                        this.flpOptionControls.Controls.Add(this._ist);
                        break;

                    case "RxFifo":
                        this._rxf = new RxFifo();
                        this._rxf.restartRx += new EventHandler(this.rx_restartRx);
                        this._rxf.restartRxHelpClicked += new EventHandler(this.rxf_restartRxHelpClicked);
                        this._rxf.readRx += new RxFifo.ReadRxEventHandler(this.rxf_readRx);
                        num += this._rxf.Height + num2;
                        this.flpOptionControls.Controls.Add(this._rxf);
                        break;

                    case "RxOption":
                        this._rxo = new RxOption();
                        this._rxo.restartRx += new EventHandler(this.rx_restartRx);
                        this._rxo.restartRxHelpClicked += new EventHandler(this.rx_restartRxOptionHelpClicked);
                        num += this._rxo.Height + num2;
                        this.flpOptionControls.Controls.Add(this._rxo);
                        break;

                    case "TxFifo":
                        this._txf = new TxFifo();
                        this._txf.writeTxData += new TxFifo.WriteTxEventHandler(this.txf_writeTxData);
                        num += this._txf.Height + num2;
                        this.flpOptionControls.Controls.Add(this._txf);
                        break;

                    case "PER":
                        this._per = new PER();
                        this._per.initPER += new PER.InitPerEventHandler(this.per_initPER);
                        this._per.startPER += new EventHandler(this.per_startPER);
                        this._per.stopPER += new EventHandler(this.per_stopPER);
                        this._per.resetPER += new EventHandler(this.per_resetPER);
                        this._per.queryPER += new EventHandler(this.per_queryPER);
                        num += this._per.Height + num2;
                        this.flpOptionControls.Controls.Add(this._per);
                        break;
                }
            }
            base.Size = new Size(base.Width, num + 30);
        }
Ejemplo n.º 8
0
 public Recipient(string address, NewWDS.MapiMailMessage.RecipientType recipientType)
 {
     this.RecipientType = NewWDS.MapiMailMessage.RecipientType.To;
     this.Address = address;
     this.RecipientType = recipientType;
 }
Ejemplo n.º 9
0
        public void setStatus(NewWDS.Demo_applications.Network_demo.UserControls.AlarmStatus a_stat)
        {
            switch (a_stat)
            {
                case NewWDS.Demo_applications.Network_demo.UserControls.AlarmStatus.UnArmed:
                    this._status = NewWDS.Demo_applications.Network_demo.UserControls.AlarmStatus.UnArmed;
                    this.txtLCD.Text = this._UnarmText + this._IndentText;
                    this.txtLCD.BackColor = Color.DarkGreen;
                    this._entryText = "";
                    this.setSound(false);
                    return;

                case NewWDS.Demo_applications.Network_demo.UserControls.AlarmStatus.Arming:
                    this._status = NewWDS.Demo_applications.Network_demo.UserControls.AlarmStatus.Arming;
                    this.txtLCD.Text = this._ArmingText + this._IndentText;
                    this.txtLCD.BackColor = Color.DarkGreen;
                    this._entryText = "";
                    this.setSound(false);
                    return;

                case NewWDS.Demo_applications.Network_demo.UserControls.AlarmStatus.Armed:
                    this._status = NewWDS.Demo_applications.Network_demo.UserControls.AlarmStatus.Armed;
                    this.txtLCD.Text = this._ArmedText + this._IndentText;
                    this.txtLCD.BackColor = Color.DarkGreen;
                    this._entryText = "";
                    this.setSound(false);
                    return;

                case NewWDS.Demo_applications.Network_demo.UserControls.AlarmStatus.Alarm:
                    this._status = NewWDS.Demo_applications.Network_demo.UserControls.AlarmStatus.Alarm;
                    this.txtLCD.Text = this._AlarmText + this._IndentText;
                    this.txtLCD.BackColor = Color.DarkGreen;
                    this._entryText = "";
                    if (!this._muteStatus)
                    {
                        this.setSound(true);
                    }
                    return;
            }
        }
Ejemplo n.º 10
0
        public void setPrice(double price, NewWDS.Demo_applications.ShelfLabelDemo.Currency currency)
        {
            try
            {
                Bitmap bitmap;
                if (price > this._maxNumberPrice)
                {
                    price = this._maxNumberPrice;
                }
                if (price < 0.0)
                {
                    price = 0.0;
                }
                this.lblDescriptionText.Text = "Price";
                switch (currency)
                {
                    case NewWDS.Demo_applications.ShelfLabelDemo.Currency.Euro:
                        bitmap = (Bitmap) this._sldResources.GetObject("cur_euros");
                        break;

                    case NewWDS.Demo_applications.ShelfLabelDemo.Currency.Pound:
                        bitmap = (Bitmap) this._sldResources.GetObject("cur_bps");
                        break;

                    case NewWDS.Demo_applications.ShelfLabelDemo.Currency.Korona:
                        bitmap = (Bitmap) this._sldResources.GetObject("cur_krs");
                        break;

                    default:
                        bitmap = (Bitmap) this._sldResources.GetObject("cur_dollars");
                        break;
                }
                this.pcbLogo.Image = bitmap;
                this.printNumber(price, 2);
            }
            catch
            {
            }
        }