Пример #1
0
        private void messageButton_Click(object sender, EventArgs e)
        {
            FontSelectDialog fontSelectDialog = new FontSelectDialog();

            fontSelectDialog.SelectedFont = MessageFont;
            if (fontSelectDialog.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            MessageFont = fontSelectDialog.SelectedFont;
        }
Пример #2
0
        private void numberButton_Click(object sender, EventArgs e)
        {
            FontSelectDialog fontSelectDialog = new FontSelectDialog();

            fontSelectDialog.SelectedFont = IndicatorFont;
            if (fontSelectDialog.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            IndicatorFont = fontSelectDialog.SelectedFont;
        }