Ejemplo n.º 1
0
        public AddProduct(RestClient newClient, Loan_Stand stand, MainApplication main)
        {
            InitializeComponent();

            newStand = stand;
            client   = newClient;
            mainApp  = main;

            typeCb.Items.Add(Type.ELECTRONICS);
            typeCb.Items.Add(Type.OTHER);
        }
Ejemplo n.º 2
0
 public UpdateItem(RestClient newClient, Loan_Stand stand, MainApplication app)
 {
     InitializeComponent();
     client         = newClient;
     newStand       = stand;
     mainApp        = app;
     newStand.Items = client.RequestItems();
     foreach (Item item in stand.Items)
     {
         IdNameCb.Items.Add(item.ID + " " + item.Name);
     }
 }