private NotifyIcon notifyIcon; // the icon that sits in the system tray

        #endregion Fields

        #region Constructors

        /// <summary>
        /// This class should be created and passed into Application.Run( ... )
        /// </summary>
        public CustomApplicationContext()
        {
            InitializeContext();
            hostManager = new HostManager(notifyIcon);
            hostManager.BuildServerAssociations();
            if (!hostManager.IsDecorated) { ShowDetailsForm(); }
        }
示例#2
0
 /// <summary>
 /// This class should be created and passed into Application.Run( ... )
 /// </summary>
 public CustomApplicationContext()
 {
     InitializeContext();
     hostManager = new HostManager(notifyIcon);
     hostManager.BuildServerAssociations();
     if (!hostManager.IsDecorated)
     {
         ShowDetailsForm();
     }
 }