Ejemplo n.º 1
0
 private void NCRemovePictureBox(IConnector connector, ArgPictureBoxID arg)
 {
     if (arg == null)
     {
         return;
     }
     _canvas.AddRemovePBIndex(arg.PictureBoxID);
 }
Ejemplo n.º 2
0
 private void NCApplyPictureBox(IConnector connector, ArgPictureBoxID arg)
 {
     if (arg == null)
     {
         return;
     }
     _canvas.AddAppliedPBIndex(arg.PictureBoxID);
 }
Ejemplo n.º 3
0
        private void SendRemovePictureBox(long pictureBoxID)
        {
            ArgPictureBoxID arg = new ArgPictureBoxID(NComRemovePictureBox.uniqueID, _netClient.ClientID);

            arg.PictureBoxID = pictureBoxID;
            if (_netClient.Connector != null)
            {
                _netClient.Connector.SendCommand(arg);
            }
        }
Ejemplo n.º 4
0
 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);
         }
     }
 }
Ejemplo n.º 5
0
        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);
        }