content: REM : **** This class contains some utilities methods which are to be used throughout the application for showing Progress & Error Dialogs ****
  
  REM : **** This method is used to initialize the common variables ****
  sub init()
         m.top.setFocus(false)
  end sub 
  
  REM : **** This method presents Progress Dialog ****
  sub onProgressDialogEnabled()
      if m.top.isProgressDialogVisible <> true
           pdialogAuth = CreateObject("roSGNode", "ProgressDialog")
           pdialogAuth.title = "Please wait..."
           pdialogAuth.setFocus(false)
           m.top.isProgressDialogVisible = true
           m.top.getScene().dialog = pdialogAuth
      end if      
  end sub
  
  REM : **** This method hides Progress Dialog ****
  sub onProgressDialogDisabled()
      m.top.isProgressDialogVisible = false
      if m.top.getScene().dialog <> invalid
              m.top.getScene().dialog.close = true
      end if
  end sub
  
  REM : **** This method presents Error Dialog ****
  sub onErrorDialogEnabled()
         if m.top.isErrorDialogVisible <> true
                m.top.isErrorDialogVisible = true
                errorDialog = createObject("roSGNode", "Dialog")
                errorDialog.title = m.top.errorTitle
                errorDialog.optionsDialog = true
                errorDialog.iconUri = ""
                errorDialog.message = m.top.errorMessage
                errorDialog.width = 1200
                errorDialog.buttons = ["OK"]
                errorDialog.optionsDialog = true
                errorDialog.observeField("buttonSelected", "removeErrorDialog")
                m.top.getScene().dialog = errorDialog
         end if
  end sub
  
  REM : **** This method hides Error Dialog ****
  sub removeErrorDialog()
         m.top.isErrorDialogVisible = false
         m.top.getScene().hideErrorDialog = true
  end sub
  