Пример #1
0
            public AlertBuilder(AlertType type, string title = null, int?width = null)
            {
                _type     = type;
                _alert    = _alertLookup[_type];
                _title    = title ?? _alert.DefaultTitle;
                _width    = width ?? Config.ConsoleWidth;
                _contents = new List <string>(3);

                _contents.Add(_title);
            }
Пример #2
0
            protected virtual void Dispose(bool disposing)
            {
                if (!_disposed)
                {
                    return;
                }

                if (disposing)
                {
                    _contents.Clear();
                    _alertLookup.Clear();
                }

                _alert    = null;
                _contents = null;
                _title    = null;

                _disposed = true;
            }