private void NCRemovePictureBox(IConnector connector, ArgPictureBoxID arg) { if (arg == null) { return; } _canvas.AddRemovePBIndex(arg.PictureBoxID); }
private void NCApplyPictureBox(IConnector connector, ArgPictureBoxID arg) { if (arg == null) { return; } _canvas.AddAppliedPBIndex(arg.PictureBoxID); }
private void SendRemovePictureBox(long pictureBoxID) { ArgPictureBoxID arg = new ArgPictureBoxID(NComRemovePictureBox.uniqueID, _netClient.ClientID); arg.PictureBoxID = pictureBoxID; if (_netClient.Connector != null) { _netClient.Connector.SendCommand(arg); } }
private void RemoveDisconnectedClientRec(long clientID) { PictureBoxObj[] pics = _canvas.GetAllPictureBoxes(); for (int i = 0; i < pics.Length; i++) { if (pics[i].ClientID == clientID) { ArgPictureBoxID arg = new ArgPictureBoxID(NComRemovePictureBox.uniqueID, clientID); arg.PictureBoxID = pics[i].UniqueID; _canvas.AddRemovePBIndex(arg.PictureBoxID); AddCommandToSendClients(arg); } } }
private void NCRemovePictureBox(IConnector connection, ArgPictureBoxID arg) { if (arg.PictureBoxID == 0) { return; } long assocID = GetPictureBoxAssociationID(arg.PictureBoxID); if (assocID == 0) { return; } arg.PictureBoxID = assocID; _canvas.AddRemovePBIndex(arg.PictureBoxID); AddCommandToSendClients(arg); }