Expand|Select|Wrap|Line Numbers
- [PrincipalPermission(SecurityAction.Demand, Role = "Admin")]
- public partial class UserRegistrationView : Window, IView
- {
- public UserRegistrationView()
- {
- InitializeComponent();
- }
- private void btnCancel_Click(object sender, RoutedEventArgs e)
- {
- this.Close();
- }
- private void btnUpdate_Click(object sender, RoutedEventArgs e)
- {
- this.Close();
- }
- public IViewModel ViewModel
- {
- get
- {
- return DataContext as IViewModel;
- }
- set
- {
- DataContext = value;
- }
- }
- }