public void BindIt(BPImg img) { HisImg = img; this.TB_Url.Text = img.WinURL; Glo.BindComboBoxWinOpenTarget(this.DDL_WinName, img.WinTarget); this.Show(); }
/// <summary> /// 绑定link. /// </summary> /// <param name="link"></param> public void BindIt(BPLink link) { HisLink = link; this.TB_Text.Text = link.Content.ToString().Replace("\n", "@"); string url = link.URL as string; if (string.IsNullOrEmpty(url)) { url = "http://ccflow.org"; } this.TB_URL.Text = url; Glo.BindComboBoxFontSize(this.DDL_FrontSize, link.FontSize); Glo.BindComboBoxWinOpenTarget(this.DDL_WinName, link.WinTarget); Glo.BindComboBoxFrontName(this.DDL_FrontName, link.FontFamily.Source); SolidColorBrush d = (SolidColorBrush)link.Foreground; this.Show(); }