public object GetBookmarkStatusImage(object rowobject)
        {
            SessionPool session = _controller.Session;

            if (((Host)rowobject).Equals(session.getHost()))
            {
                if (session.getState().Equals(Session.State.open))
                {
                    return((Image)Images.StatusGreen.Size(16));
                }
                if (session.getState().Equals(Session.State.closing) ||
                    session.getState().Equals(Session.State.opening))
                {
                    return((Image)Images.StatusYellow.Size(16));
                }
            }
            return(null);
        }
Beispiel #2
0
        public object GetBookmarkStatusImage(object rowobject)
        {
            SessionPool session = _controller.Session;

            if (((Host)rowobject).Equals(session.getHost()))
            {
                if (session.getState().Equals(Session.State.open))
                {
                    return(IconCache.Instance.IconForName("statusGreen", 16));
                }
                if (session.getState().Equals(Session.State.closing) ||
                    session.getState().Equals(Session.State.opening))
                {
                    return(IconCache.Instance.IconForName("statusYellow", 16));
                }
            }
            return(null);
        }