private void kryptonCommandSetting_Execute(object sender, EventArgs e) { var formSettings = new FormSettings(); if (formSettings.ShowDialog() == DialogResult.Cancel) { return; } dataGridViewText.StateCommon.DataCell.Content.Font = Properties.Settings.Default.ListFont; textBoxOrgText.Font = Properties.Settings.Default.TextBoxFontOrg; textBoxNewText.Font = Properties.Settings.Default.TextBoxFontNew; dataGridViewText.StateCommon.DataCell.Content.Color1 = Properties.Settings.Default.ListColor; textBoxOrgText.ForeColor = Properties.Settings.Default.TextBoxColor; try { BackgroundImage = new Bitmap(Properties.Settings.Default.BackgroundImage); textBoxNewText.SetBackImage(); textBoxOrgText.SetBackImage(); } catch { KryptonMessageBox.Show("背景图无效。"); } }
private void kryptonCommandSetting_Execute(object sender, EventArgs e) { var formSettings = new FormSettings(); if (formSettings.ShowDialog() == DialogResult.Cancel) return; dataGridViewText.StateCommon.DataCell.Content.Font = Properties.Settings.Default.ListFont; textBoxOrgText.Font = Properties.Settings.Default.TextBoxFontOrg; textBoxNewText.Font = Properties.Settings.Default.TextBoxFontNew; dataGridViewText.StateCommon.DataCell.Content.Color1 = Properties.Settings.Default.ListColor; textBoxOrgText.ForeColor = Properties.Settings.Default.TextBoxColor; try { BackgroundImage = new Bitmap(Properties.Settings.Default.BackgroundImage); textBoxNewText.SetBackImage(); textBoxOrgText.SetBackImage(); } catch { KryptonMessageBox.Show("����ͼ��Ч��"); } }