Пример #1
0
        public displayWindow(string email, IMAPclient imap) : this()
        {
            username  = email;
            this.imap = imap;
            List <EmailInfo> info = new List <EmailInfo>();

            loadEmails(ref info);
            emails.ItemsSource = info;
        }
Пример #2
0
        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();
        }