public WaitHandle ShowMessage(string message) { Func <Forms.BaseMessageForm> formInitializer = new Func <TestTool.GUI.Forms.BaseMessageForm>( () => { _messageForm = new TestTool.GUI.Forms.MessageForm(); _messageForm.Message = message; return(_messageForm); }); return(DisplayBaseMessageForm(formInitializer)); }
public WaitHandle ShowMessage(string message) { Func <Forms.BaseMessageForm> formInitializer = new Func <TestTool.GUI.Forms.BaseMessageForm>( () => { _messageForm = new TestTool.GUI.Forms.MessageForm(); message = string.Format("{0}{1}Note: Operation Delay in Management tab is used as a time-out for this action.", message, Environment.NewLine); _messageForm.Message = message; return(_messageForm); }); return(DisplayBaseMessageForm(formInitializer)); }
public void HideMessage() { Action deinitialize = new Action(() => { _messageForm = null; }); CloseForm(_messageForm, deinitialize); }