Example #1
0
        private void Init(System.Guid guid, bool visible, int width, int height,
                          int xPos, int yPos, bool showSidebar, PersonCardSize personCardSize,
                          string personGroupId)
        {
            this.guid       = guid;
            searchTimeoutID = 0;

            CreateWidgets();

            SetDefaultSize(width, height);
            Icon        = Utilities.GetIcon("banter-22", 22);
            AllowShrink = true;

            initialPersonCardSize = personCardSize;
            initiallyShowSidebar  = showSidebar;
            initialGroupId        = personGroupId;

            Move(xPos, yPos);

            groupTreeModel = PersonManager.Groups;
            groupButtonMap = new Dictionary <int, GroupButton> ();

            saveStateTimeout          = new InterruptableTimeout();
            saveStateTimeout.Timeout += SaveStateTimeout;

            Realized += OnRealizeWidget;
        }
Example #2
0
        private void Init(System.Guid guid, bool visible, int width, int height,
				int xPos, int yPos, bool showSidebar, PersonCardSize personCardSize,
				string personGroupId)
        {
            this.guid = guid;
            searchTimeoutID = 0;

            CreateWidgets ();

            SetDefaultSize (width, height);
            Icon = Utilities.GetIcon ("banter-22", 22);
            AllowShrink = true;

            initialPersonCardSize = personCardSize;
            initiallyShowSidebar = showSidebar;
            initialGroupId = personGroupId;

            Move (xPos, yPos);

            groupTreeModel = PersonManager.Groups;
            groupButtonMap = new Dictionary<int, GroupButton> ();

            saveStateTimeout = new InterruptableTimeout ();
            saveStateTimeout.Timeout += SaveStateTimeout;

            Realized += OnRealizeWidget;
        }