/// <summary> /// 向进度窗口发命令 /// </summary> /// <param name="Int"></param> /// <param name="Text"></param> private void SendSpalsh(int Int, string Text) { MyWaitInfo myWaitInfo = new MyWaitInfo(); myWaitInfo.ProgressInt = Int; myWaitInfo.ProgressText = Text; SplashScreenManager.Default.SendCommand(MyWait.SplashScreenCommand.Setinfo, myWaitInfo); }
public override void ProcessCommand(Enum cmd, object arg) { base.ProcessCommand(cmd, arg); if (((SplashScreenCommand)cmd).Equals(SplashScreenCommand.Setinfo)) { MyWaitInfo pos = (MyWaitInfo)arg; progressBarControl1.EditValue = EndValue; EndValue = pos.ProgressInt; labelControl1.Text = pos.ProgressText; } }