Esempio n. 1
0
        private void BtnUser_Click(object sender, RoutedEventArgs e)
        {
            UserManagementWindow window = new UserManagementWindow()
            {
                Owner = Window.GetWindow(this)
            };

            window.ShowDialog();
        }
Esempio n. 2
0
        private void OpenUserManagementWindow()
        {
            userDatabase.DeleteCache();
            var userManagementViewModel = new UserManagementViewModel(dataApiClient, userDatabase);
            var userManagementWindow    = new UserManagementWindow
            {
                ViewModel = userManagementViewModel
            };

            userManagementWindow.ShowDialog();
        }