public ServiceToolForm() { conf = ConfigClass.GetConfig(); InitializeComponent(); if (conf.AutoRun) { ServiceRun(); } }
private void ServiceToolForm_Load(object sender, EventArgs e) { try { conf = ConfigClass.GetConfig(); if (conf.AutoRun) { ServiceRun(); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }