コード例 #1
0
 public ServiceToolForm()
 {
     conf = ConfigClass.GetConfig();
     InitializeComponent();
     if (conf.AutoRun)
     {
         ServiceRun();
     }
 }
コード例 #2
0
 private void ServiceToolForm_Load(object sender, EventArgs e)
 {
     try
     {
         conf = ConfigClass.GetConfig();
         if (conf.AutoRun)
         {
             ServiceRun();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }