private bool CreateSmile(SmilesDataDase Db, string SmileId, WrapPanel TextPanel) { if (Properties.Settings.Default.hideSmiles) { return(false); } else { //int nn = SmileId.LastIndexOf(':'); //SmileId = SmileId.Substring(2, nn + 1 - 2) + " "; FrameworkElement s = Db.GetSmile(SmileId); if (s != null) { TextPanel.Children.Add(s); return(true); } } return(false); }
public System.Windows.FrameworkElement CreateSmile(string id) { return(Smiles.GetSmile(id)); }