Exemple #1
0
        /// <summary>
        /// Close column
        /// </summary>
        /// <param name="colIndex">column index</param>
        public static void CloseColumn(int colIndex)
        {
            var col = _columns[colIndex];

            col.Tabs.ForEach(ti =>
            {
                ti.IsActivated = false;
                _closedTabsStack.Push(ti);
            });
            _columns.RemoveAt(colIndex);
            Save();
        }
Exemple #2
0
        public static void RegisterEvent(BackstageEventBase ev)
        {
            System.Diagnostics.Debug.WriteLine("EVENT: " + ev.Title + " - " + ev.Detail);
            EventRegistered.SafeInvoke(ev);
            var tev = ev as TwitterEventBase;

            if (tev == null)
            {
                return;
            }
            lock (_twitterEvents.SyncRoot)
            {
                _twitterEvents.Insert(0, tev);
                if (_twitterEvents.Count > TwitterEventMaxHoldCount)
                {
                    _twitterEvents.RemoveAt(_twitterEvents.Count - 1);
                }
            }
        }