public static bool Execute(IModalTask Task, string InTitle, string InMessage, out string ErrorMessage)
		{
			ModalTaskWindow Window = new ModalTaskWindow(Task, InTitle, InMessage);
			Window.ShowDialog();
			ErrorMessage = Window.ErrorMessage;
			return Window.bSucceeded;
		}
예제 #2
0
        public static bool Execute(IModalTask Task, string InTitle, string InMessage, out string ErrorMessage)
        {
            ModalTaskWindow Window = new ModalTaskWindow(Task, InTitle, InMessage);

            Window.ShowDialog();
            ErrorMessage = Window.ErrorMessage;
            return(Window.bSucceeded);
        }
예제 #3
0
        public static ModalTaskResult Execute(IWin32Window Owner, IModalTask Task, string InTitle, string InMessage, out string ErrorMessage)
        {
            ModalTaskWindow Window = new ModalTaskWindow(Task, InTitle, InMessage, (Owner == null)? FormStartPosition.CenterScreen : FormStartPosition.CenterParent);

            Window.Complete += () => Window.Close();
            Window.ShowDialog(Owner);
            ErrorMessage = Window.ErrorMessage;
            return(Window.Result);
        }