Beispiel #1
0
 private void btnSearch_Click(object sender, RoutedEventArgs e)
 {
     if (FabCategoryCombo.SelectedValue != null)
     {
         SearchResultChild.Show();
         SearchResultChild.IsSearchingToDye = false;
         SearchResultChild.SearchFabricAttrs(FabAttrsViewModelObj);
     }
     else
     {
         MessageBox.Show("Not enough data for search!, you should at least chose (Fabric Category)", "Product Development Manager", MessageBoxButton.OK);
     }
 }
Beispiel #2
0
 private void btnLoadFabricForDying_Click(object sender, RoutedEventArgs e)
 {
     FabAttrsViewModelObj = new FabricSetupsViewModel
     {
         FabricCategoryID = (int)FabCategoryCombo.SelectedValue == 4
             ? 2
             : (int)FabCategoryCombo.SelectedValue == 5
                 ? 3
                 : 0
     };
     SearchResultChild.Show();
     SearchResultChild.IsSearchingToDye = true;
     SearchResultChild.SearchFabricAttrs(FabAttrsViewModelObj);
 }