public LiveTileAbbrPicture(Abbreviation abbr) : this() { TextBlock_Line1.Text = abbr.word; TextBlock_Line2.Text = abbr.fullWord; TextBlock_Line3.Text = abbr.translation; UIHelper.ReduceFontSizeByWidth(TextBlock_Line1, 300); UIHelper.ReduceFontSizeByWidth(TextBlock_Line2, 300); UIHelper.ReduceFontSizeByWidth(TextBlock_Line3, 300); }
public OneSideAbbrCard(Abbreviation abbr) : this() { TextBlock_Line0.Text = Word.WordTypeToString(abbr.wordType); TextBlock_Line1.Text = abbr.word; nowword = abbr.word; TextBlock_Line2.Text = abbr.fullWord; TextBlock_Line3.Text = abbr.translation; UIHelper.ReduceFontSizeByWidth(TextBlock_Line1, 420); UIHelper.ReduceFontSizeByWidth(TextBlock_Line2, 420); UIHelper.ReduceFontSizeByWidth(TextBlock_Line3, 420); }
public TwoSideAbbrCard(Abbreviation abbr, bool isWordInFront) : this() { if (isWordInFront) { TextBlock_FrontLine1.Text = abbr.word; TextBlock_BackLine1.Text = abbr.fullWord; TextBlock_BackLine2.Text = abbr.translation; } else { TextBlock_FrontLine1.Text = abbr.translation; TextBlock_BackLine1.Text = abbr.word; TextBlock_BackLine2.Text = abbr.fullWord; } nowword = abbr.fullWord; UIHelper.ReduceFontSizeByWidth(TextBlock_FrontLine1, 420); UIHelper.ReduceFontSizeByWidth(TextBlock_BackLine1, 420); UIHelper.ReduceFontSizeByWidth(TextBlock_BackLine2, 420); }