/// <summary> /// Creates all screen components. /// </summary> public MainPage() { this.InitializeComponent(); this.pizzaMachine = new PizzaMachine(); this.ChangePizzaButtonState(false); Loaded += this.OnBegin; }
/// <summary> /// Creates all screen components. /// </summary> public MainWindow() { InitializeComponent(); this.pizzaMachine = new PizzaMachine(); this.ChangePizzaButtonState(false); Loaded += this.OnBegin; Closing += this.OnClosePizzeria; }