CalendarAggregator.CalendarRenderer.MakeEventTitle C# (CSharp) Метод

MakeEventTitle() публичный Метод

public MakeEventTitle ( string view ) : string
view string
Результат string
        public string MakeEventTitle(string view)
        {
            var _view = string.IsNullOrEmpty(view) ? " " : " " + view + " ";
            string _title;
            switch (this.calinfo.hub_enum)
            {
                case HubType.where:
                    _title = String.IsNullOrEmpty(this.calinfo.title) ? this.calinfo.where : this.calinfo.title;
                    break;
                case HubType.what:
                    _title = String.IsNullOrEmpty(this.calinfo.title) ? this.calinfo.what : this.calinfo.title;
                    break;
                case HubType.region:
                    _title = String.IsNullOrEmpty(this.calinfo.title) ? this.calinfo.where : this.calinfo.title;
                    break;
                default:
                    _title = "";
                    break;
            }
            return _title + _view + "events";
        }