コード例 #1
0
ファイル: Operator.cs プロジェクト: kudrinyaroslav/ON-0110
        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));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        public void HideMessage()
        {
            Action deinitialize = new Action(() => { _messageForm = null; });

            CloseForm(_messageForm, deinitialize);
        }