public AddTab(MainScreen ms, HomeScreen hs) { InitializeComponent(); // this.Height = SystemParameters.PrimaryScreenHeight / 2; // Important to keep height to the same as designed this.Width = SystemParameters.PrimaryScreenWidth / 2; this.ms = ms; this.homeScreen = hs; this.txtbox_name.Focus(); }
private void btn_submitQueue_Click(object sender, RoutedEventArgs e) { lbl_submitQueue.IsEnabled = false; MainScreen ms = Switcher.pageSwitcher; ms.focusedTab.PlaceOrder(); ms.focusedTab.ClearTray(); lbl_queueTotal.Content = "Total: $0.00"; GrayedOutWindow gw = new GrayedOutWindow(); gw.Show(); OrderPlacedScreen ops = new OrderPlacedScreen(1000); gw.Close(); showQueue(false); btn_payNow.IsEnabled = true; }
public HomeScreen(MainScreen ms) { this.ms = ms; InitializeComponent(); }