Exemplo n.º 1
0
 internal MessageBoxResponderSetup(
     DialogServiceMethod method,
     CustomDialogResult result = CustomDialogResult.None
     )
     : base(method)
 {
     DialogResult = result;
 }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
 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"));
 }
Exemplo n.º 4
0
        private MessageBoxResponderSetup EnqueueMessageBoxResponder(
            DialogServiceMethod type,
            CustomDialogResult result = CustomDialogResult.None
            )
        {
            MessageBoxResponderSetup responder = new MessageBoxResponderSetup(type, result);

            _responders.Enqueue(responder);
            return(responder);
        }
Exemplo n.º 5
0
 internal FileDialogResponderSetup(
     DialogServiceMethod method,
     string fileName,
     bool result
     )
     : base(method)
 {
     _fileName    = fileName;
     DialogResult = result;
 }
Exemplo n.º 6
0
 internal ResponderBase(DialogServiceMethod method)
 {
     ExpectedInvocation = new DialogServiceInvocation(method);
 }
Exemplo n.º 7
0
 internal ShowDialogResponderResultSetup(DialogServiceMethod method, DialogScreenResult dialogResult)
     : base(method)
 {
     _dialogResult = dialogResult;
 }
Exemplo n.º 8
0
 internal ShowDialogResponderSetup(DialogServiceMethod method)
     : base(method)
 {
 }