예제 #1
0
        void g(NotificationMessageWithCallback no)
        {
            WindowLoginAndAccess win = new WebDriveUM.WindowLoginAndAccess();
            win.LoginUrl = new Uri(no.Notification);
            win.ShowDialog();

            no.Execute(win.LastUrl.ToString());
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:GalaSoft.MvvmLight.Messaging.NotificationMessageWithCallback" /> class.
 /// </summary>
 /// <param name="sender">The message's sender.</param>
 /// <param name="target">The message's intended target. This parameter can be used
 /// to give an indication as to whom the message was intended for. Of course
 /// this is only an indication, amd may be null.</param>
 /// <param name="notification">An arbitrary string that will be
 /// carried by the message.</param>
 /// <param name="callback">The callback method that can be executed
 /// by the recipient to notify the sender that the message has been
 /// processed.</param>
 public NotificationMessageWithCallback(
     object sender,
     object target,
     string notification,
     Delegate callback)
     : base(sender, target, notification)
 {
     NotificationMessageWithCallback.CheckCallback(callback);
     this._callback = callback;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:GalaSoft.MvvmLight.Messaging.NotificationMessageWithCallback" /> class.
 /// </summary>
 /// <param name="notification">An arbitrary string that will be
 /// carried by the message.</param>
 /// <param name="callback">The callback method that can be executed
 /// by the recipient to notify the sender that the message has been
 /// processed.</param>
 public NotificationMessageWithCallback(string notification, Delegate callback)
     : base(notification)
 {
     NotificationMessageWithCallback.CheckCallback(callback);
     this._callback = callback;
 }