private void btnOrderList_Click(object sender, RoutedEventArgs e) { try { adminInterface = new TextAdminInterface(); skipPages.Content = adminInterface; } catch (Exception ex) { MessageBox.Show(ex.Message, this.Title, MessageBoxButton.OK); } }
public void OpenPageInitialize(int flag) { if (flag == 1) { TextMonitorList textMonitorList = new TextMonitorList(mainWindow); skipPages.Content = textMonitorList; } if (flag == 3) { deviceDetails = new DeviceDetails(mainWindow, txtPrinterSN.Text, FileTools.commandPath); skipPages.Content = deviceDetails; } if (flag == 4) { adminInterface = new TextAdminInterface(); skipPages.Content = adminInterface; } }