Example #1
0
        private void Form1_FormClosed(object sender, FormClosedEventArgs e)
        {
            #region Settings
            StiSettings.Load();
            StiFormSettings.Save(this);

            StiSettings.Save();
            #endregion
        }
Example #2
0
        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();
        }
Example #3
0
 protected override void OnClosed(EventArgs e)
 {
     base.OnClosed(e);
     Stimulsoft.Report.Helpers.StiFormHelper.SaveStateForm(this, "DemoWindow");
     StiSettings.Save();
 }
Example #4
0
 private void checkBoxDisplayWelcomeScreenAgain_CheckedChanged(object sender, EventArgs e)
 {
     StiSettings.Set(this.Name, "DisplayWelcomeScreenAgain", welcomeScreen.checkBoxDisplayWelcomeScreenAgain.Checked);
     StiSettings.Save();
 }