private void CutHandler(object sender, RoutedEventArgs e) { SetItem(sender); ObservableList <RepositoryItemBase> list = new ObservableList <RepositoryItemBase>(); list.Add(mVariable); ClipboardOperationsHandler.SetCutItems(ListView, list); }
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); }
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); }