/// <summary> /// 修改通道 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UpdategroupToolStripMenuItem_Click(object sender, EventArgs e) { if (transmissionvideo?.Rquipment == null) { return; } UpdateEquipment write = new UpdateEquipment(transmissionvideo.Rquipment); write.MyRefreshEvent += new UpdateEquipment.MyDelegate(PostVideos); write.MySaveEvent += new UpdateEquipment.MyDelegate(RefEquipment); write.Show(); }
private void updateToolStripMenuItem_Click(object sender, EventArgs e) { if (treeList1.FocusedNode == null) { return; } int id = int.Parse(treeList1.FocusedNode.Tag.ToString()); EquipmentInfo info = EquipmentData.GetEquipmentById(id); UpdateEquipment write = new UpdateEquipment(info); write.MyRefreshEvent += new UpdateEquipment.MyDelegate(InitializeComboBox); write.Show(); }