Ejemplo n.º 1
0
 /// <summary>
 /// Event handler for the OperationProgres, used to store the last status message
 /// </summary>
 private void Interface_OperationProgress(Interface caller, XervBackupOperation operation, XervBackupOperationMode specificoperation, int progress, int subprogress, string message, string submessage)
 {
     m_lastProgressMessage = message;
 }
Ejemplo n.º 2
0
 public BackupStatistics(XervBackupOperationMode operationMode)
     : base(operationMode)
 {
     m_beginTime = m_endTime = DateTime.Now;
 }
Ejemplo n.º 3
0
        void XervBackup_OperationProgress(Interface caller, XervBackupOperation operation, XervBackupOperationMode specificmode, int progress, int subprogress, string message, string submessage)
        {
            m_lastPGOperation = operation;
            m_lastPGMode = specificmode;
            m_lastPGProgress = progress;
            m_lastPGSubprogress = subprogress;
            m_lastPGmessage = message;
            m_lastPGSubmessage = submessage;

            //If there are extra operations, reserve some space for it by reducing the displayed progress
            if (m_extraOperations > 0 && progress > 0)
                progress = (int)((m_lastPGProgress / 100.0) * (100 - (m_extraOperations * PERCENT_PR_EXTRA_OPERATION)));

            if (ProgressEvent != null)
                try { ProgressEvent(operation, RunnerState.Running, message, submessage, progress, subprogress); }
                catch { }
        }
 public CommunicationStatistics(XervBackupOperationMode operationMode)
 {
     m_operationMode = operationMode;
 }