示例#1
0
        void OnLedViewDisposed(object sender, EventArgs e)
        {
            if (!(sender is LEDCONTROLForm))
            {
                return;
            }
            LEDCONTROLForm ledForm = (LEDCONTROLForm)sender;

            ledForm.LEDmodel.close();
            fromMainModel.LedData           -= ledForm.LEDmodel.reveMainModelData;
            ledForm.LEDmodel.sendDataHandle -= fromMainModel.sendDataModel;
            //closeFromBaseModel(ledForm.LEDmodel);
        }
示例#2
0
        public void Tag_LEDShow(TagLocationPointBean tagPointBeab) //開始接受數據
        {
            LEDCONTROLForm LEDForm = new LEDCONTROLForm();

            fromMainModel.LedData           += LEDForm.LEDmodel.reveMainModelData;
            LEDForm.LEDmodel.sendDataHandle += fromMainModel.sendDataModel;
            //addFromBaseModel(LEDForm.LEDmodel);
            LEDForm.FormClosing += OnLedViewDisposed;
            LEDForm.CardID       = tagPointBeab.CardID;
            LEDForm.SleepTime    = tagPointBeab.SleepTime;
            LEDForm.LedNmae      = tagPointBeab.Name;
            LEDForm.MType        = tagPointBeab.MType;
            LEDForm.SleepTime    = tagPointBeab.SleepTime;
            LEDForm.GongLv       = tagPointBeab.Gonglv;
            LEDForm.ShowDialog();
        }