Beispiel #1
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);
                }
            }
        }
Beispiel #2
0
 /// <summary>
 ///     Create column
 /// </summary>
 /// <param name="index">insertion index</param>
 /// <param name="info">initial created tab</param>
 public static void CreateColumn(int index, params TabModel[] info)
 {
     _columns.Insert(index, new ColumnModel(info));
     CurrentFocusColumnIndex = index;
     Save();
 }