示例#1
0
        private void sendReport()
        {
            Idal dal     = FactoryDal.GetDal();
            bool success = dal.AddReport(report);

            if (success)
            {
                Signal.SuccessfullyAdded = false;
                Signal.SuccessfullyAdded = true;
                Report.ReporterID        = 0;
                Report.ReportID          = 0;
                Report.NumberOfBooms     = 0;
                Report.LatLongLocation   = "0,0";
                Report.Address           = "";
                Report.FallingTime       = DateTime.Now;
            }
            else
            {
                Signal.UnsuccessfullyAdded = false;
                Signal.UnsuccessfullyAdded = true;
            }
        }