Example #1
0
 private void btn_start_Click(object sender, EventArgs e)
 {
     // if (service.ConnectToServerStatus(Txt_IpServer.Text.Trim()))
     try
     {
         saveConfigApp();
         //if (service.ValidateMapPaths())
         //{
         onChangeStatusRunning(true);
         service.SubscribeWatcher(watchers, watcher_Changed,
                                  watcher_Deleted, watcher_Renamed);
         //}
         //else
         //{
         //    MessageDialogs.ValidateMapFail();
         //}
     }
     catch (Exception ex)
     {
         log.Error(ex);
         MessageDialogs.CannotConectToServer();
     }
 }