private TabbedThumbnailEventArgs GetTabbedThumbnailEventArgs()
        {
            TabbedThumbnailEventArgs eventArgs = null;

            if (this.WindowHandle != IntPtr.Zero)
            {
                eventArgs = new TabbedThumbnailEventArgs(this.WindowHandle);
            }
            else if (this.WindowsControl != null)
            {
                eventArgs = new TabbedThumbnailEventArgs(this.WindowsControl);
            }

            return(eventArgs);
        }
Exemplo n.º 2
0
 private void Thumbnail_Activated(object sender, TabbedThumbnailEventArgs e)
 {
     // i can't track down why exactly, but this is being fired twice.
     if (_thumbActivated) {
         _thumbActivated = false;
     }
     else {
         _thumbActivated = true;
         OpenEmail();
     }
 }
Exemplo n.º 3
0
        private void Thumbnail_Activated(object sender, TabbedThumbnailEventArgs e)
        {
            // i can't track down why exactly, but this is being fired twice.
            if(_thumbActivated) {
                _thumbActivated = false;
            }
            else {
                _thumbActivated = true;

                if(ConnectionStatus == NotifierStatus.AuthenticationFailed) {
                    Program.MainForm.Jumplist_ShowPreferences(new string[] { "account", this.Account.FullAddress });
                }
                else {
                    if(ConnectionStatus != NotifierStatus.Offline) {
                        OpenEmail();
                    }
                }
            }
        }
Exemplo n.º 4
0
		private void _Preview_TabbedThumbnailClosed(object sender, TabbedThumbnailEventArgs e) {
			(Control.FromHandle(e.WindowHandle) as Form).Close();
		}
        private TabbedThumbnailEventArgs GetTabbedThumbnailEventArgs()
        {
            TabbedThumbnailEventArgs eventArgs = null;

            if (this.WindowHandle != IntPtr.Zero)
            {
                eventArgs = new TabbedThumbnailEventArgs(this.WindowHandle);
            }
            else if (this.WindowsControl != null)
            {
                eventArgs = new TabbedThumbnailEventArgs(this.WindowsControl);
            }

            return eventArgs;
        }