コード例 #1
0
        private void CutHandler(object sender, RoutedEventArgs e)
        {
            SetItem(sender);
            ObservableList <RepositoryItemBase> list = new ObservableList <RepositoryItemBase>();

            list.Add(mVariable);
            ClipboardOperationsHandler.SetCutItems(ListView, list);
        }
コード例 #2
0
        private void CutSelectedHandler(object sender, RoutedEventArgs e)
        {
            ObservableList <RepositoryItemBase> list = new ObservableList <RepositoryItemBase>();

            foreach (VariableBase var in ListView.List.SelectedItems)
            {
                list.Add(var);
            }
            ClipboardOperationsHandler.SetCutItems(ListView, list);
        }
コード例 #3
0
        private void CutAllListHandler(object sender, RoutedEventArgs e)
        {
            ObservableList <RepositoryItemBase> list = new ObservableList <RepositoryItemBase>();

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