using System; namespace IStation.WinFrmUI { public partial class WaitFormStyle1 : DevExpress.XtraWaitForm.WaitForm { public WaitFormStyle1() { InitializeComponent(); this.progressPanel1.AutoHeight = true; //if (IStation.WinFrmUI.Localization.Current == Eventech.Model.eLocalizationType.ru) //{ // progressPanel1.Caption = "подожди... "; //} //else if (IStation.WinFrmUI.Localization.Current == Eventech.Model.eLocalizationType.enUS) //{ // progressPanel1.Caption = "please waiting......"; //} //this.pictureBox2.Image = IStation.WinFrmUI.CorpSettingHelper.GetWaitingFormImage(); //this.progressPanel1.AppearanceCaption.ForeColor = IStation.WinFrmUI.CorpSkinStyleHelper.SkinMainColor; //DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this, typeof(WaitForm), true, true, true); //IStation.WinFrmUI.WaitFrmHelper.HideWaitForm(); //DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("正在创建销售项目"); //DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormDescription("请稍等待"); } #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(Enum cmd, object arg) { if (arg != null) SetCaption(arg.ToString()); base.ProcessCommand(cmd, arg); } #endregion } }