//public Cocktail Cocktail { get; set; } = null; /// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> public App() { this.InitializeComponent(); this.Suspending += OnSuspending; //Cocktail = new Cocktail(); Cocktail.InitAsync(); }
private void NavView_Navigate(NavigationViewItem item) { switch (item.Name) { case "pageHome": ContentFrame.Navigate(typeof(HomePage), null, new SuppressNavigationTransitionInfo()); break; case "eStop": Cocktail.DisableMotorDrivers(); break; case "pageBottles": ContentFrame.Navigate(typeof(PumpsPage), null, new SuppressNavigationTransitionInfo()); break; } }
private async void Button_Click(object sender, RoutedEventArgs e) { Cocktail.ProgressBar = progress; await Cocktail.ExecuteRecipe(Item); }