Example #1
0
 private Bitmap GetTabIcon(ConnectionTag tag)
 {
     if (_tabIconDefault == null)
     {
         _tabIconDefault = (Bitmap)IconList.LoadIcon(IconList.ICON_NEWCONNECTION);
         _tabIconSerial  = (Bitmap)IconList.LoadIcon(IconList.ICON_SERIAL);
         _tabIconCygwin  = (Bitmap)IconList.LoadIcon(IconList.ICON_CYGWIN);
         _tabIconSFU     = (Bitmap)IconList.LoadIcon(IconList.ICON_SFU);
     }
     if (tag.Connection.Param is SFUTerminalParam)
     {
         return(_tabIconSFU);
     }
     else if (tag.Connection.Param is CygwinTerminalParam)
     {
         return(_tabIconCygwin);
     }
     else if (tag.Connection.Param is SerialTerminalParam)
     {
         return(_tabIconSerial);
     }
     else
     {
         return(_tabIconDefault);
     }
 }
Example #2
0
 private void LoadImages()
 {
     this._openShortcut.Image        = IconList.LoadIcon(IconList.ICON_OPEN);
     this._newConnection.Image       = IconList.LoadIcon(IconList.ICON_NEWCONNECTION);
     this._newSerialConnection.Image = IconList.LoadIcon(IconList.ICON_SERIAL);
     this._newCygwinConnection.Image = IconList.LoadIcon(IconList.ICON_CYGWIN);
     this._newSFUConnection.Image    = IconList.LoadIcon(IconList.ICON_SFU);
     this._saveShortcut.Image        = IconList.LoadIcon(IconList.ICON_SAVE);
     this._singleStyle.Image         = IconList.LoadIcon(IconList.ICON_SINGLE);
     this._divHorizontalStyle.Image  = IconList.LoadIcon(IconList.ICON_DIVHORIZONTAL);
     this._divVerticalStyle.Image    = IconList.LoadIcon(IconList.ICON_DIVVERTICAL);
     this._divHorizontal3Style.Image = IconList.LoadIcon(IconList.ICON_DIVHORIZONTAL3);
     this._divVertical3Style.Image   = IconList.LoadIcon(IconList.ICON_DIVVERTICAL3);
     this._localEcho.Image           = IconList.LoadIcon(IconList.ICON_LOCALECHO);
     this._lineFeedRule.Image        = IconList.LoadIcon(IconList.ICON_LINEFEED);
     this._logSuspend.Image          = IconList.LoadIcon(IconList.ICON_SUSPENDLOG);
     this._commentLog.Image          = IconList.LoadIcon(IconList.ICON_COMMENTLOG);
     this._serverInfo.Image          = IconList.LoadIcon(IconList.ICON_INFO);
 }