コード例 #1
0
        private void btnEditChoroba_Click(object sender, RoutedEventArgs e)
        {
            NewChoroba nce = new NewChoroba(grdChoroby.SelectedItem as Choroby);

            nce.Activate();
            nce.ShowDialog();
        }
コード例 #2
0
        private void btnNowaChoroba_Click(object sender, RoutedEventArgs e)
        {
            NewChoroba nc = new NewChoroba();

            nc.Activate();
            bool?result = nc.ShowDialog();

            if (result == true)
            {
                populateChorobyGrid();
            }
        }