Exemplo n.º 1
0
    public void CloseView(bool? dialogResult, object parameter)
    {
      Tag = parameter;

      DialogResult = dialogResult;
      Close();

      var message = new WindowMessage(this)
      {
        Action = WindowAction.Close,
        WindowName = Name,
        Parameter = parameter,
        DialogResult = dialogResult
      };
      Messenger.Current.PublishAsync(message);
    }
Exemplo n.º 2
0
    public void ShowView(object parameter)
    {
      Tag = parameter;
      Show();

      var message = new WindowMessage(this)
      {
        Action = WindowAction.Open,
        WindowName = Name,
        Parameter = parameter
      };
      Messenger.Current.PublishAsync(message);
    }