private void menuItem2_Click(object sender, EventArgs e)
        {
            if (comboBox1.SelectedItem != null)
            {

                Microsoft.WindowsMobile.PocketOutlook.EmailMessage m = new Microsoft.WindowsMobile.PocketOutlook.EmailMessage();
                m.BodyText = MessageText;
                string accName = (string)comboBox1.SelectedItem;
                Microsoft.WindowsMobile.PocketOutlook.MessagingApplication.DisplayComposeForm(accounts[accName], m);
                //Microsoft.WindowsMobile.PocketOutlook.MessagingApplication.Synchronize();
                this.DialogResult = DialogResult.OK;
            }
        }
示例#2
0
        private void menuItem2_Click(object sender, EventArgs e)
        {
            if (comboBox1.SelectedItem != null)
            {

                Microsoft.WindowsMobile.PocketOutlook.EmailMessage m = new Microsoft.WindowsMobile.PocketOutlook.EmailMessage();
                m.BodyText = ErrorText;
                m.To.Add(new Microsoft.WindowsMobile.PocketOutlook.Recipient("*****@*****.**"));
                m.Subject = "Crash Report: v" +UpgradeChecker.currentVersion.ToString();
                if (UpgradeChecker.devBuild)
                {
                    m.Subject = m.Subject + " dev build" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Revision;
                }
                if (ClientSettings.AccountsList.Count > 0)
                {
                    m.Subject += " from @" + ClientSettings.AccountsList[0].UserName;
                }
                string accName = (string)comboBox1.SelectedItem;
                accounts[accName].Send(m);
                Microsoft.WindowsMobile.PocketOutlook.MessagingApplication.Synchronize();
                this.Close();
            }
        }
示例#3
0
        private void EmailThisItem()
        {
            if ((statList.SelectedItem == null) || (statList.SelectedItem as StatusItem == null)) { return; }
            StatusItem selectedItem = statList.SelectedItem as StatusItem;
            Microsoft.WindowsMobile.PocketOutlook.OutlookSession sess = new Microsoft.WindowsMobile.PocketOutlook.OutlookSession();
            Microsoft.WindowsMobile.PocketOutlook.EmailAccountCollection accounts = sess.EmailAccounts;

            if (accounts.Count == 0)
            {
                PockeTwit.Localization.LocalizedMessageBox.Show("You don't have any email accounts set up on this phone.");
                return;
            }
            else if (accounts.Count>1)
            {
                using (EmailStatusForm f = new EmailStatusForm(selectedItem.Tweet.text))
                {
                    f.Owner = this;
                    f.ShowDialog();
                    f.Dispose();
                }
                return;
            }

            Microsoft.WindowsMobile.PocketOutlook.EmailMessage m = new Microsoft.WindowsMobile.PocketOutlook.EmailMessage();
            m.BodyText = selectedItem.Tweet.text;
            Microsoft.WindowsMobile.PocketOutlook.MessagingApplication.DisplayComposeForm(accounts[0], m);
        }