public void ShowSourceMessages(Source source) { _uiState.ActiveScreen = "Source"; _uiState.ActiveScreenValue = source.GetType().Name + "-" + source.Id; SaveUIState(); var c = new SourceTypeMessages(); c.SetSources(source); ShowMain(c); }
public void ShowSourceTypeMessages(Type sourceType, bool playAnimation) { var c = new SourceTypeMessages(); c.PlayAnimation = playAnimation; var repo = Repo.Foreground; var sources = repo.GetActiveSources(sourceType); _uiState.ActiveScreen = "SourceType"; _uiState.ActiveScreenValue = sourceType.Name; SaveUIState(); c.SetSources(sources); ShowMain(c); }
public MessageTable(SourceTypeMessages ms) : base() { P = ms; ShouldHighlight = o => !((MessageRef)o).IsRead; IsSelected = o => ((MessageRef)o).Id == P._activeItemId; DisCol = new Col { Title = "DIS", Print = o => { var m = (MessageRef)o; var s = m.GetSource(P.QuerySources); if (s == null) { return(""); } else { return(s.GetShortDistinguisher()); } }, MaxWidth = 132, Hidden = true }; Cols.Add(DisCol); Cols.Add(FromCol); Cols.Add(new Col { Title = "SUBJECT", Stretches = true, Print = o => { var m = (MessageRef)o; return(m.GetTextSummary()); } }); Cols.Add(new Col { Title = "DATE", Stretches = false, Print = o => { var m = (MessageRef)o; return(Theme.FormatTime(m.PublishTime.ToLocalTime())); } }); ShouldHighlight = o => { var m = (MessageRef)o; return(!m.IsRead); }; }
public TData(SourceTypeMessages c) { C = c; }
public TDel(SourceTypeMessages c) { C = c; }