public HomePage() { InitializeComponent(); ContentFrame = contentFrame; foldersList.ItemsSource = ImapService.GetFolders(); ClearRoom(); }
public MainWindow() { InitializeComponent(); MainFrame = mainFrame; // Chance are, its not logged in. MainFrame.Content = new LoginPage(); // Initialize the Imap ImapService.Initialize(); }
private void loginBtn_Click(object sender, RoutedEventArgs e) { MainWindow.LoggedIn = ImapService.Login(username.Text, password.Password); // Also navigate the user if (MainWindow.LoggedIn) { // Logged in MainWindow.MainFrame.Content = new HomePage(); } else { // Problem error.Text = "There was a problem logging you in to Google Mail."; } }
public FolderMessagesPage(string name) { InitializeComponent(); messagesList.ItemsSource = ImapService.GetMessagesForFolder(name); }