private void Form1_FormClosed(object sender, FormClosedEventArgs e) { #region Settings StiSettings.Load(); StiFormSettings.Save(this); StiSettings.Save(); #endregion }
static StiReportHelper() { ReportDir = Application.StartupPath + "\\Report\\"; if (!Directory.Exists(ReportDir)) { Directory.CreateDirectory(ReportDir); } StiOptions.Configuration.SearchLocalizationFromRegistry = false; string stiPath = Application.StartupPath + "\\Report\\Localization"; StiLocalization.DirectoryLocalization = stiPath; StiLocalization.Localization = "zh-CHS.xml"; StiSettings.Set("Localization", "FileName", "zh-CHS.xml");//设置中文菜单 StiSettings.Save(); }
protected override void OnClosed(EventArgs e) { base.OnClosed(e); Stimulsoft.Report.Helpers.StiFormHelper.SaveStateForm(this, "DemoWindow"); StiSettings.Save(); }
private void checkBoxDisplayWelcomeScreenAgain_CheckedChanged(object sender, EventArgs e) { StiSettings.Set(this.Name, "DisplayWelcomeScreenAgain", welcomeScreen.checkBoxDisplayWelcomeScreenAgain.Checked); StiSettings.Save(); }