nHydrate.DslPackage.Forms.RunningProcesses.Update C# (CSharp) Method

Update() public method

public Update ( string text, bool topMost, int timeout ) : void
text string
topMost bool
timeout int
return void
        public void Update(string text, bool topMost, int timeout)
        {
            lblText.Text = text;
            this.TopMost = topMost;
            var tick = (timeout * 1000) / 100;
            if (tick <= 0) tick = 100;
            timer1.Interval = tick;
            this.Activate();
        }

Usage Example

Ejemplo n.º 1
0
 public static string ProgressingStarted(string text, bool topMost, int timeout)
 {
     var key = Guid.NewGuid().ToString();
     lock (_keys)
     {
         _keys.Add(key);
         if (_form == null)
         {
             _form = new RunningProcesses();
             _form.Update(text, topMost, timeout);
             _form.Show();
             System.Windows.Forms.Application.DoEvents();
         }
     }
     return key;
 }