Exemplo n.º 1
0
        public static void Handle(IClient c, object[] data)
        {
            ClipboardCommand command = (ClipboardCommand)data[1];

            if (command == ClipboardCommand.Text)
            {
                if (FormHandler.ContainsKey(c.ID))
                {
                    FormHandler[c.ID].SetClipboardText((string)data[2]);
                }
            }
        }
Exemplo n.º 2
0
        public static void Handle(object[] data)
        {
            ClipboardCommand command = (ClipboardCommand)data[1];

            if (command == ClipboardCommand.GetText)
            {
                SendClipboardText();
            }
            if (command == ClipboardCommand.SetText)
            {
                SetClipboardText((string)data[2]);
            }
        }
Exemplo n.º 3
0
 public ElementContainer(DiagramType sourceDiagramType, ClipboardCommand clipboardCommand)
 {
     this.SourceDiagramType = sourceDiagramType;
     this.ClipboardCommand  = clipboardCommand;
 }