private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { if (!IsClose) { e.Cancel = true; this.Hide(); LoginCanceled?.Invoke(); } }
/// <summary> /// Raises LoginCanceled event</summary> /// <param name="e">Event arguments</param> protected virtual void OnLoginCanceled(EventArgs e) { LoginCanceled.Raise(this, e); }