Exemple #1
0
        private void Login()
        {
            var email = Properties.Settings.Default.Email;
            var password = Properties.Settings.Default.Password;

            if (email == string.Empty || password == string.Empty)
            {
                return;
            }

            this.account = new Account(email, password);
            try
            {
                this.account.Login();

                PopulateRecentCalls();
                PopulateRecentSMS();
                PopulateContacts();

                mCallMenuItem.Enabled = true;
                mSmsMenuItem.Enabled = true;
                mInboxMenuItem.Enabled = true;

                System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainScreen));
                mTrayIcon.Icon = global::GVDialer.Properties.Resources.ActiveIcon;
            }
            catch (Exception ex)
            {
                ReportException(ex, "There was an error logging into your Google voice account." +
                                    "  Please make sure that you have entered the correct email" +
                                    " address and password.");
                this.account = null;
            }
        }
Exemple #2
0
        public MainScreen()
        {
            InitializeComponent();
            mPictureBox.Size = mPictureBox.Image.Size;

            var cue = "Enter number";
            SendMessage(mCallBox.Control.Handle, EM_SETCUEBANNER, 0, cue);
            SendMessage(mSmsBox.Control.Handle, EM_SETCUEBANNER, 0, cue);

            this.account = null;
        }