public AddProductWindow(MESServiceClient client, int departmentId)
 {
     InitializeComponent();
     this.client                        = client;
     this.departmentId                  = departmentId;
     ProductsComboBox.ItemsSource       = client.GetProducts();
     ProductsComboBox.DisplayMemberPath = "Name";
     ProductsComboBox.SelectedValuePath = "Id";
     ProductsComboBox.SelectedIndex     = 0;
 }
Example #2
0
 public GiveProductWindow(MESServiceClient client, int[] productIds)
 {
     InitializeComponent();
     this.client                        = client;
     this.productIds                    = productIds;
     TeamsComboBox.ItemsSource          = client.GetTeams();
     TeamsComboBox.DisplayMemberPath    = "Name";
     TeamsComboBox.SelectedValuePath    = "Id";
     TeamsComboBox.SelectedIndex        = 0;
     ProductsComboBox.ItemsSource       = client.GetProducts();
     ProductsComboBox.DisplayMemberPath = "Name";
     ProductsComboBox.SelectedValuePath = "Id";
     ProductsComboBox.SelectedIndex     = 0;
 }