private void HandleCloseWindowMessage(CloseWindowMessage message)
 {
     if (message.Name.Equals("ConnectionPropertiesDialog"))
     {
         DialogResult = message.DialogResult;
         Messenger.Default.Unregister(this);
     }
 }
Exemplo n.º 2
0
 private void Close(CloseWindowMessage message)
 {
     if (message.Window == GetType())
     {
         Messenger.Unregister <CloseWindowMessage>(this);
         Dispatch(Close);
     }
 }
Exemplo n.º 3
0
        private void CloseWindowMessage_Received(CloseWindowMessage message)
        {
            if (message.Sender != DataContext)
            {
                return;
            }

            Close();
        }
Exemplo n.º 4
0
        private void CloseWindowMessage_Received(CloseWindowMessage message)
        {
            if (message.Sender != DataContext)
            {
                return;
            }

            DialogResult = message.Result;
            this.Close();
        }
Exemplo n.º 5
0
 private void CloseWindow(object recipient, CloseWindowMessage message)
 {
     Close();
 }
Exemplo n.º 6
0
		private void OnMessageCloseWind(CloseWindowMessage obj)
		{
			this.Close();
		}