Пример #1
0
        public StartupBasic(IConfiguration configuration)
        {
            Configuration          = configuration;
            CurConfig              = Configuration.GetSetting <T>();
            JsonSerializerSettings = SetJsonSerializerSettings();

            Printor.PrintText(CurConfig.ToJson());
            Printor.PrintLine();
        }
Пример #2
0
 private void preStep_Click(object sender, EventArgs e)
 {
     if (preStep.Text == ResetParaText)
     {
         CurConfig.BindData(true);
     }
     else
     {
         CurConfig.Visible = false;
         curPageIndex     -= 1;
         CurConfig.Visible = true;
         nextStep.Text     = NextText;
         base.Text         = this.Text;
         if (curPageIndex == 0)
         {
             preStep.Enabled = false;
         }
         this.Refresh();
     }
 }