public GCalcForm() { InitializeComponent(); m_input.MouseWheel += new MouseEventHandler(this.onMouseWheel); m_output.MouseWheel += new MouseEventHandler(this.onMouseWheel); GCalc.Properties.Settings settings = new GCalc.Properties.Settings(); m_input.Font = new Font(settings.FontFace, settings.FontHeight); FileName = settings.FileName; m_output.Font = m_input.Font; Text = string.Format("GCALC {0}", AppVersion.Get()); }
private void saveConfiguration() { GCalc.Properties.Settings settings = new GCalc.Properties.Settings(); settings.FontFace = m_input.Font.Name; settings.FontHeight = m_input.Font.SizeInPoints; settings.FileName = FileName; saveFile(FileName, true); settings.Save(); }