private void removeCurrentItem_Click(object sender, RoutedEventArgs e) { var script = this.DataContext as Script; var newRemoveCurrentItem = new RemoveThisItem(); script.AddBeforeSelected(newRemoveCurrentItem); this.Close(); }
public RemoveThisItemWrapper(RemoveThisItem ri) { line = ri; }