private void setTag_LEDShow(ListViewItem lvItem) { if (lvItem == null) { return; } TagLocationPointBean tagPointBeab = locaModel.getTagLocationPointBean(lvItem.SubItems[1].Text); if (tagPointBeab != null && mFormMian != null) { mFormMian.Tag_LEDShow(tagPointBeab); } }
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(); }
public void panpalTag_Click(object sender, EventArgs e) //開始接受數據 { if (!(sender is Panel)) { return; } Panel tagPel = (Panel)sender; if (!(tagPel.Tag is TagLocationPointBean)) { return; } TagLocationPointBean tagPointBeab = (TagLocationPointBean)tagPel.Tag; Tag_LEDShow(tagPointBeab); }