Ejemplo n.º 1
0
        void UpdateSizeLabel()
        {
            var text = (MessageTextBox.MaxLength - MessageTextBox.Text.Length).ToString();

            ControlsHelper.SetText(SizeLabel, text);
            ControlsHelper.SetVisible(SizeLabel, MessageTextBox.MaxLength > 0);
        }
Ejemplo n.º 2
0
 public void UpdateProgress(string topText = "", string SubText = "", bool?resetBars = null)
 {
     ControlsHelper.SetText(ProgressLevelTopLabel, topText);
     ControlsHelper.SetText(ProgressLevelSubLabel, SubText);
     if (resetBars.GetValueOrDefault())
     {
         ProgressLevelTopBar.Maximum = 100;
         ProgressLevelTopBar.Value   = 0;
         ProgressLevelSubBar.Maximum = 100;
         ProgressLevelSubBar.Value   = 0;
     }
     ControlsHelper.SetVisible(ScanProgressPanel, !string.IsNullOrEmpty(topText));
 }