Ejemplo n.º 1
0
        private void btnSelectFont_Click(object sender, EventArgs e)
        {
            try
            {
                var fontDialog = new FontDialog();
                fontDialog.Font = _views.SelectCategoryFont;
                if (fontDialog.ShowDialog() == DialogResult.OK)
                {
                    _views.SelectCategoryFont = fontDialog.Font;
                    _views.SaveConfig();

                    gridCategories.Font = _views.SelectCategoryFont;

                    _cellRenderer.UpdateFonts(gridCategories);
                }
            }
            catch (Exception ex)
            {
                MainForm.ShowExceptionMessage(ex);
            }
        }