using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace JobReportMailService { public partial class fSetup : Form { public fSetup() { InitializeComponent(); this.propertyGrid1.SelectedObject = Pub.setting; } private void button1_Click(object sender, EventArgs e) { this.Validate(); Pub.setting.Save(); DialogResult = DialogResult.OK; } private void fSetup_Load(object sender, EventArgs e) { } } }