private void CutHandler(object sender, RoutedEventArgs e) { SetItem(sender); ObservableList <RepositoryItemBase> list = new ObservableList <RepositoryItemBase>(); list.Add(mVariable); ClipboardOperationsHandler.SetCutItems(ListView, list); }
private void CopyHandler(object sender, RoutedEventArgs e) { SetItem(sender); ObservableList <RepositoryItemBase> list = new ObservableList <RepositoryItemBase>(); list.Add(mAction); ClipboardOperationsHandler.SetCopyItems(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 CopyAllListHandler(object sender, RoutedEventArgs e) { ObservableList <RepositoryItemBase> list = new ObservableList <RepositoryItemBase>(); foreach (VariableBase var in Variables) { list.Add(var); } ClipboardOperationsHandler.SetCopyItems(list); }
private void CopySelectedHandler(object sender, RoutedEventArgs e) { ObservableList <RepositoryItemBase> list = new ObservableList <RepositoryItemBase>(); foreach (Act act in ListView.List.SelectedItems) { list.Add(act); } ClipboardOperationsHandler.SetCopyItems(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); }
private void PasteAfterCurrentHandler(object sender, RoutedEventArgs e) { SetItem(sender); ClipboardOperationsHandler.PasteItems(ListView, currentIndex: Variables.IndexOf(mVariable)); }
private void PasteInListHandler(object sender, RoutedEventArgs e) { ClipboardOperationsHandler.PasteItems(ListView); }
private void PasteAfterCurrentHandler(object sender, RoutedEventArgs e) { SetItem(sender); ClipboardOperationsHandler.PasteItems(ListView, currentIndex: mContext.Activity.Acts.IndexOf(mAction)); }