using DevExpress.XtraWaitForm; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Kingo.PlatformPlugin { public partial class WaitForm1 : WaitForm { public WaitForm1() { InitializeComponent(); this.progressPanel1.AutoHeight = true; Timer timer = new Timer(); timer.Interval = 2000; timer.Tick += (sender, e) => { ShowOnTopMode = ShowFormOnTopMode.AboveAll; //this.TopMost = true; }; timer.Start(); } #region Overrides public override void SetCaption(string caption) { base.SetCaption(caption); this.progressPanel1.Caption = caption; } public override void SetDescription(string description) { base.SetDescription(description); this.progressPanel1.Description = description; } public override void ProcessCommand(System.Enum cmd, object arg) { base.ProcessCommand(cmd, arg); } #endregion public enum WaitFormCommand { } } }