public Inline ToInline(libflist.FChat.Channel _chan) { var time = Time; string timeString = null; if (time.Date == DateTime.Now.Date) timeString = time.ToShortTimeString(); else timeString = time.ToShortDateString(); return new Run($"[{timeString}]") { FontStyle = FontStyles.Italic }; }
public static Int32Rect? CharacterSymbolRect(this libflist.FChat.Character ch, libflist.FChat.Channel chan) { if (ch.IsChatOp) return new Int32Rect(216, 72, 24, 24); if (chan != null) { if (chan.Owner == ch) return new Int32Rect(288, 74, 24, 24); if (ch.IsOPInChannel(chan)) return new Int32Rect(264, 72, 24, 24); } return null; }
public static void SendCommand(libflist.FChat.Command command) { _Chat.SendCommand(command); }