public StartupBasic(IConfiguration configuration) { Configuration = configuration; CurConfig = Configuration.GetSetting <T>(); JsonSerializerSettings = SetJsonSerializerSettings(); Printor.PrintText(CurConfig.ToJson()); Printor.PrintLine(); }
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(); } }