コード例 #1
0
        public MenuItemControl(DAL.MenuItem menuItem, bool readOnly = true)
        {
            InitializeComponent();
            AddEvent();

            this.MenuItem = menuItem;
            this.ReadOnly = readOnly;
        }
コード例 #2
0
 public SelectMenuItemControl(DAL.MenuItem menuItem, int quantity, DAL.OrderDetail orderDetail = null)
 {
     InitializeComponent();
     AddEvent();
     this.Quantity    = quantity;
     this.MenuItem    = menuItem;
     this.OrderDetail = orderDetail;
 }