public override void WidgetChanged(Widget wdgt) { if (wdgt is MyListBox) { FontSampleText.changeTextFontFam((wdgt as MyListBox).listBoxWidget.SelectedItem.ToString()); FontTextBox.SetFontName((wdgt as MyListBox).listBoxWidget.SelectedItem.ToString()); } if (wdgt is FontSizeSelector) { FontSampleText.SetFontSize(int.Parse((wdgt as FontSizeSelector).DomSize.Text)); } if (wdgt is FontCondensedIndicator) { FontSampleText.SetFontStrikeOut((wdgt as FontCondensedIndicator).CondensedIndicator.Checked); } if (wdgt is FontItalicSwitch) { FontSampleText.SetFontItalic((wdgt as FontItalicSwitch).ItalicBtn.Checked); } if (wdgt is FontBoldSwitch) { FontSampleText.SetFontBold((wdgt as FontBoldSwitch).BoldBtn.Checked); } if (wdgt is FontBox) { FontListBox.FindFontFamily((wdgt as FontBox).textBoxWidget.Text); } }
private void FontMouseClick(object sender, MouseEventArgs e) { FontTextBox.SelectAll(); }