public MyShownObjectLineItem(MyShownObject myShownObject, CustomPrintDimension printDimensions) { if (myShownObject == null) { throw new ArgumentNullException("myShownObject"); } _myshownObject = myShownObject; _printDimensions = printDimensions; }
private void MenuItemClick(object sender, RoutedEventArgs e) { MenuItem mi = sender as MenuItem; if (mi == null) { return; } MyShownObject mso = mi.Tag as MyShownObject; if (mso == null) { return; } _mcv.CollectionToPrint.Remove(mso); }