Exemple #1
0
        private void OnClickCreateItemButton(object sender, RoutedEventArgs e)
        {
            var window = new CreateNewItemWindow(databaseController);

            window.Owner = this;
            window.ShowDialog();
        }
Exemple #2
0
        private void OnEditButtonClick(object sender, RoutedEventArgs e)
        {
            var uid    = (int)((Button)sender).Tag;
            var window = new CreateNewItemWindow(databaseController, true, uid);

            window.Owner = this;
            window.ShowDialog();
        }