Example #1
0
 /// <summary>
 /// Close and dispose components and client when exiting program
 /// </summary>
 public void Closing()
 {
     _client.Dispose();
     _client = null;
     _rest.Dispose();
     _rest         = null;
     _inviteWindow = null;
 }
Example #2
0
 /// <summary>
 /// Method for the button that invites a user
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void InviteButton_Click(object sender, RoutedEventArgs e)
 {
     if (_inviteWindow == null)
     {
         _inviteWindow = new InviteWindow();
     }
     _inviteWindow.Show();
 }