internal MessageBoxResponderSetup( DialogServiceMethod method, CustomDialogResult result = CustomDialogResult.None ) : base(method) { DialogResult = result; }
private CustomDialogResult ProcessMessageBoxInvocation(DialogServiceMethod type, string message, string caption) { var invocation = new DialogServiceInvocation(type); invocation.Message.SetValue(message); invocation.Caption.SetValue(caption); return(DequeueResponder().ProcessMessageBoxInvocation(invocation)); }
public DialogServiceInvocation(DialogServiceMethod method) { Method = method; _parameter.Add(Parent = new ArgumentValue("parent")); _parameter.Add(Message = new StringArgumentValue("message")); _parameter.Add(Caption = new StringArgumentValue("caption")); _parameter.Add(Filter = new StringArgumentValue("filter")); _parameter.Add(InitialDirectory = new StringArgumentValue("initialDirectory")); }
private MessageBoxResponderSetup EnqueueMessageBoxResponder( DialogServiceMethod type, CustomDialogResult result = CustomDialogResult.None ) { MessageBoxResponderSetup responder = new MessageBoxResponderSetup(type, result); _responders.Enqueue(responder); return(responder); }
internal FileDialogResponderSetup( DialogServiceMethod method, string fileName, bool result ) : base(method) { _fileName = fileName; DialogResult = result; }
internal ResponderBase(DialogServiceMethod method) { ExpectedInvocation = new DialogServiceInvocation(method); }
internal ShowDialogResponderResultSetup(DialogServiceMethod method, DialogScreenResult dialogResult) : base(method) { _dialogResult = dialogResult; }
internal ShowDialogResponderSetup(DialogServiceMethod method) : base(method) { }