Exemplo n.º 1
0
        private void CopyHandler(object sender, RoutedEventArgs e)
        {
            SetItem(sender);
            ObservableList <RepositoryItemBase> list = new ObservableList <RepositoryItemBase>();

            list.Add(mVariable);
            ClipboardOperationsHandler.SetCopyItems(list);
        }
Exemplo n.º 2
0
        private void CopySelectedHandler(object sender, RoutedEventArgs e)
        {
            ObservableList <RepositoryItemBase> list = new ObservableList <RepositoryItemBase>();

            foreach (VariableBase var in ListView.List.SelectedItems)
            {
                list.Add(var);
            }
            ClipboardOperationsHandler.SetCopyItems(list);
        }
        private void CopyAllListHandler(object sender, RoutedEventArgs e)
        {
            ObservableList <RepositoryItemBase> list = new ObservableList <RepositoryItemBase>();

            foreach (Act act in mContext.Activity.Acts)
            {
                list.Add(act);
            }
            ClipboardOperationsHandler.SetCopyItems(list);
        }