public TwoSideVerbCard(Verb verb, bool isWordInFront) : this() { switch (verb.wordType) { case WordType.Vt: TextBlock_FrontLine0.Text = "Vt."; break; case WordType.Vi: TextBlock_FrontLine0.Text = "Vi."; break; case WordType.VtOrVi: TextBlock_FrontLine0.Text = "Vt./Vi."; break; } if (isWordInFront) { TextBlock_FrontLine1.Text = verb.word; TextBlock_BackLine1.Text = verb.translation; } else { TextBlock_FrontLine1.Text = verb.translation; TextBlock_BackLine1.Text = verb.word; } nowword = verb.word; TextBlock_BackLine2.Text = verb.presentForm; if (verb.presentForm.Equals(string.Empty) == false && verb.pastForm.Equals(string.Empty) == false) TextBlock_BackLine2.Text += ","; TextBlock_BackLine2.Text += verb.pastForm; switch (verb.perfectAuxiliaryVerb) { case PerfectAuxiliaryVerb.Haben: TextBlock_BackLine3.Text = "hat "; break; case PerfectAuxiliaryVerb.Sein: TextBlock_BackLine3.Text = "ist "; break; case PerfectAuxiliaryVerb.HabenOrSein: TextBlock_BackLine3.Text = "hat/ist "; break; } TextBlock_BackLine3.Text += verb.perfectForm; UIHelper.ReduceFontSizeByWidth(TextBlock_FrontLine1, 420); UIHelper.ReduceFontSizeByWidth(TextBlock_BackLine1, 420); UIHelper.ReduceFontSizeByWidth(TextBlock_BackLine2, 420); UIHelper.ReduceFontSizeByWidth(TextBlock_BackLine3, 420); }
public OneSideVerbCard(Verb verb) : this() { TextBlock_Line0.Text = Word.WordTypeToString(verb.wordType); TextBlock_Line1.Text = verb.word; nowword = verb.word; TextBlock_Line2.Text = verb.presentForm; if (verb.presentForm.Equals(string.Empty) == false && verb.pastForm.Equals(string.Empty) == false) TextBlock_Line2.Text += ","; TextBlock_Line2.Text += verb.pastForm; TextBlock_Line3.Text = Verb.PerfectAuxiliaryVerbToString(verb.perfectAuxiliaryVerb); TextBlock_Line3.Text += verb.perfectForm; TextBlock_Line4.Text = verb.translation; UIHelper.ReduceFontSizeByWidth(TextBlock_Line1, 420); UIHelper.ReduceFontSizeByWidth(TextBlock_Line2, 420); UIHelper.ReduceFontSizeByWidth(TextBlock_Line3, 420); UIHelper.ReduceFontSizeByWidth(TextBlock_Line4, 420); }
public LiveTileVerbPicture(Verb verb) : this() { TextBlock_Line1.Text = verb.word; TextBlock_Line2.Text = verb.presentForm; if (verb.presentForm.Equals(string.Empty) == false && verb.pastForm.Equals(string.Empty) == false) TextBlock_Line2.Text += ","; TextBlock_Line2.Text += verb.pastForm; TextBlock_Line3.Text = Verb.PerfectAuxiliaryVerbToString(verb.perfectAuxiliaryVerb); TextBlock_Line3.Text += verb.perfectForm; TextBlock_Line4.Text = verb.translation; UIHelper.ReduceFontSizeByWidth(TextBlock_Line1, 300); UIHelper.ReduceFontSizeByWidth(TextBlock_Line2, 300); UIHelper.ReduceFontSizeByWidth(TextBlock_Line3, 300); UIHelper.ReduceFontSizeByWidth(TextBlock_Line4, 300); UIHelper.SetTextBlockVerticalCenterOfCanvas(TextBlock_Line1); UIHelper.SetTextBlockVerticalCenterOfCanvas(TextBlock_Line2); UIHelper.SetTextBlockVerticalCenterOfCanvas(TextBlock_Line3); UIHelper.SetTextBlockVerticalCenterOfCanvas(TextBlock_Line4); }