private void btn_addTab_Click(object sender, RoutedEventArgs e) { GrayedOutWindow gw = new GrayedOutWindow(); AddTab a = new AddTab(ms, this); gw.Show(); a.ShowDialog(); gw.Close(); }
private void btn_addTab_Click(object sender, RoutedEventArgs e) { lbl_submitQueue.IsEnabled = false; if (allTabs.GetTabs().Count < 8) { if (!focusedTab.OrderTrayEmpty()) { GrayedOutWindow gw = new GrayedOutWindow(); LeavingTabScreen warningScreen = new LeavingTabScreen(this); gw.Show(); warningScreen.ShowDialog(); gw.Close(); } if (wantToLeave || focusedTab.OrderTrayEmpty()) { GrayedOutWindow gw = new GrayedOutWindow(); focusedTab.ClearTray(); focusedTab.LoadTray(); AddTab at = new AddTab(this, null); gw.Show(); at.ShowDialog(); gw.Close(); } btn_payNow.IsEnabled = false; } else { GrayedOutWindow gw = new GrayedOutWindow(); Max8TabsWarning mxWarning = new Max8TabsWarning(); gw.Show(); mxWarning.ShowDialog(); gw.Close(); } }