Xwt.Dialog.Run C# (CSharp) Method

Run() public method

public Run ( ) : Xwt.Command
return Xwt.Command
        public Command Run()
        {
            return Run (null);
        }

Same methods

Dialog::Run ( Xwt.WindowFrame parent ) : Xwt.Command

Usage Example

Ejemplo n.º 1
0
		public void TwoResponds ()
		{
			// When Respond is called twice before leaving an event handler, the last call is the good one

			using (var win = new Dialog ()) {
				Application.TimeoutInvoke (10, delegate {
					win.Respond (Command.Ok);
					win.Respond (Command.Apply);
					return false;
				});
				var cmd = win.Run ();
				Assert.AreEqual (Command.Apply, cmd);
			}
		}
All Usage Examples Of Xwt.Dialog::Run