public MyShownObjectLineItem(MyShownObject myShownObject, CustomPrintDimension printDimensions)
 {
     if (myShownObject == null)
     {
         throw new ArgumentNullException("myShownObject");
     }
     _myshownObject = myShownObject;
     _printDimensions = printDimensions;
 }
예제 #2
0
 public MyShownObjectLineItem(MyShownObject myShownObject, CustomPrintDimension printDimensions)
 {
     if (myShownObject == null)
     {
         throw new ArgumentNullException("myShownObject");
     }
     _myshownObject   = myShownObject;
     _printDimensions = printDimensions;
 }
예제 #3
0
        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);
        }