Ejemplo n.º 1
0
 public void ReportStatus(string Id, StatusType SType, string Desc = "")
 {
     new RuntimeCache().POST(
         Shared.ShRequest.Server
         , Shared.ShRequest.StatusReport(Id, (( int )SType).ToString(), Desc)
         , ReportSuccess
         , ReportFailed
         , false
         );
 }
Ejemplo n.º 2
0
        private async void ConfirmErrorReport(string Id, StatusType ErrorType)
        {
            StringResources stx    = StringResources.Load("Message", "Error");
            MessageDialog   MsgBox = new MessageDialog(
                string.Format(stx.Str("ReportError"), stx.Str(ErrorType.ToString(), "Error"))
                );

            bool Report = false;

            MsgBox.Commands.Add(new UICommand(stx.Str("Yes"), x => { Report = true; }));
            MsgBox.Commands.Add(new UICommand(stx.Str("No")));

            await Popups.ShowDialog(MsgBox);

            if (Report)
            {
                ReportStatus(Id, ErrorType);
            }
        }