private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { if (shoe != null) { shoe.Leave(txtAlias.Text.ToUpper()); } }
private void closeBtn_Click(object sender, RoutedEventArgs e) { if (shoe != null) { shoe.Leave(nameTxtBox.Text); } this.Close(); }