using BPASmartClient.DosingSystemSingle.ViewModel; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace BPASmartClient.DosingSystemSingle.View { /// /// RecipeControlView.xaml 的交互逻辑 /// public partial class RecipeControlView : UserControl { public RecipeControlView() { InitializeComponent(); RadioButtonWait_Click(null, null); } private void RadioButtonCompelete_Click(object sender, RoutedEventArgs e) { //repiceList.ItemsSource = RecipeControlViewModel.UserTreeCompelete; //repiceList.Visibility = Visibility.Visible; //repiceListMaking.Visibility = Visibility.Hidden; this.Wait.ItemsSource = RecipeControlViewModel.UserTreeCompelete; CookingGrid.Visibility = Visibility.Collapsed; WaitOrCompleteGrid.Visibility = Visibility.Visible; this.Wait.Visibility = Visibility.Visible; } private void RadioButtonWait_Click(object sender, RoutedEventArgs e) { //repiceList.ItemsSource = RecipeControlViewModel.UserTreeWait; //repiceList.Visibility = Visibility.Visible; //repiceListMaking.Visibility = Visibility.Hidden; this.Wait.ItemsSource = RecipeControlViewModel.UserTreeWait; CookingGrid.Visibility = Visibility.Collapsed; WaitOrCompleteGrid.Visibility = Visibility.Visible; this.Wait.Visibility = Visibility.Visible; } private void RadioButtonMaking_Click(object sender, RoutedEventArgs e) { //repiceListMaking.Visibility = Visibility.Visible; //repiceList.Visibility = Visibility.Hidden; WaitOrCompleteGrid.Visibility = Visibility.Collapsed; this.Wait.Visibility = Visibility.Collapsed; CookingGrid.Visibility = Visibility.Visible; } } }