Пример #1
0
        public OrderRow(Order passedOrder)
        {
            InitializeComponent();
            order = passedOrder;

            //FillControls();
        }
Пример #2
0
 public OrderRow(Order passedOrder, HraView passedOwningView)
     : this(passedOrder)
 {
     owningView = passedOwningView;
     // Initial group setting must be obtained here.
     if (((OrdersView)owningView).Controls["groupComboBox"] != null)
     {
         group = ((OrdersView)owningView).Controls["groupComboBox"].Text;
     }
 }
Пример #3
0
 public void SetOrder(Order a)
 {
     order = a;
     FillControls();
 }
Пример #4
0
        private void addNewOrderButton_Click(object sender, EventArgs e)
        {
            tabControl1.SelectedTab = todaysOrdersTabPage;
            Order order = new Order();

            HraModelChangedEventArgs args = new HraModelChangedEventArgs(null);
            args.Persist = false;
            orders.AddToList(order, args);
        }