Пример #1
0
        /// <summary>
        ///     Редактировать пользователя
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void editButton_Click(object sender, RoutedEventArgs e)
        {
            var user       = (User)usersGrid.SelectedItem;
            var editWindow = new EditWindow(user);

            editWindow.Show();
        }
Пример #2
0
        /// <summary>
        ///     Создать пользователя
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void CreateButton_OnClickButton_Click(object sender, RoutedEventArgs e)
        {
            var editWindow = new EditWindow();

            editWindow.Show();
        }