private void Hide_Click(object sender, RoutedEventArgs e) { _hideuser = new Popups.UIHideUser(_user); _hideuser.Save.Click += HideSave_Click; _hideuser.Cancel.Click += HideCancel_Click; WHidden wHide = UIController.Proxy.GetUserHideSettings(UIController.MyProfile.Username, UIController.Password, _user.Id); if (wHide.Suggestions) _hideuser.SuggestionsCheck.IsChecked = true; if (wHide.Dynamic) _hideuser.IterationCheck.IsChecked = true; if (wHide.Interactive) _hideuser.InteractiveCheck.IsChecked = true; UIController.ShowPanel(_hideuser); }
private void HideCancel_Click(object sender, RoutedEventArgs e) { UIController.HidePanel(_hideuser); _hideuser = null; }