public displayWindow(string email, IMAPclient imap) : this() { username = email; this.imap = imap; List <EmailInfo> info = new List <EmailInfo>(); loadEmails(ref info); emails.ItemsSource = info; }
private void loginButton_Click(object sender, RoutedEventArgs e) { newSession = new IMAPclient("imap.gmail.com", 993, emailTextBox.Text, passwordBox.Password); //newSession = new IMAPclient("imap.gmail.com", 993, "*****@*****.**", "pasgausiujeiatspesi"); newSession.LogIn(); OpenDisplayWindow(); }