private void button_OK_Click(object sender, EventArgs e) { if (treeList1.FocusedNode == null || PostIds.Count == 0) { return; } if (!EquipmentData.AddVideoInEquipment(int.Parse(treeList1.FocusedNode.Tag.ToString()), PostIds)) { MessageBox.Show("添加视频到通道失败"); Program.log.Error($"添加视频到通道失败,video_ids:{string.Join(",",PostIds)}"); return; } OnRefresh(); OnSave(); this.Hide(); }