private void SetPercentDonebyEvent(object sender, DatabaseReorgEventArgs e)
        {
            GUIDialogProgress pDlgProgress =
                (GUIDialogProgress)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_PROGRESS);

            if (null == pDlgProgress)
            {
                return;
            }
            pDlgProgress.SetPercentage(e.progress);
            pDlgProgress.SetLine(1, e.phase);
            pDlgProgress.Progress();
        }
예제 #2
0
        /// <summary>
        /// When the Reorg is run from inside the GUI Settings, we are notified here and prevent shutdown, while the import is running
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ReorgStatusChange(object sender, DatabaseReorgEventArgs e)
        {
            switch (e.progress)
            {
            case 2:
                _reorgRunning = true;
                break;

            case 100:
                _reorgRunning = false;
                break;

            default:
                break;
            }
        }
 private void SetStatus(object sender, DatabaseReorgEventArgs e)
 {
     GUIPropertyManager.SetProperty("#scanstatus", e.phase);
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 ///
 private void SetStatus(object sender, DatabaseReorgEventArgs e)
 {
     fileLabel.Text = e.phase;
     Application.DoEvents();
 }
예제 #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 ///
 private void SetStatus(object sender, DatabaseReorgEventArgs e)
 {
     _scanThread.ReportProgress(e.progress, e.phase);
 }