private void SchedularCallback(object e) { try { AirPollutionMain AP = new AirPollutionMain(); AP.MainActivity(); this.ScheduleService(); } catch (Exception ex) { string message = ex.Message; } }
static void ActionForDebug() { try { AirPollutionMain AP = new AirPollutionMain(); AP.MainActivity(); ServiceSchedule serviceSchedule = new ServiceSchedule(); serviceSchedule.ScheduleService(); } catch (Exception ex) { string message = ex.Message; } }
protected override void OnStart(string[] args) { try { AirPollutionMain AP = new AirPollutionMain(); AP.MainActivity(); ServiceSchedule serviceSchedule = new ServiceSchedule(); serviceSchedule.ScheduleService(); } catch (Exception ex) { string message = ex.Message; } }