Esempio n. 1
0
        private void LichSuXemBenhBtn_Click(object sender, RoutedEventArgs e)
        {
            Benh           b      = LuotKhamDAO.getLuotKham((LichSuKhamListView.SelectedItem as LuotKham).ID).Benh1;
            ThemBenhDialog dialog = new ThemBenhDialog(b, true);

            dialog.ShowDialog();
        }
Esempio n. 2
0
        private void ThemBenhBtn_Click(object sender, RoutedEventArgs e)
        {
            Benh           benh   = new Benh();
            ThemBenhDialog dialog = new ThemBenhDialog(benh, false);

            if (dialog.ShowDialog() == true)
            {
                int res = Bussiness.addOrUpdateBenh(benh.LoaiBenh, benh.TrieuChung);
                if (res == 1)
                {
                    benhs.Add(benh.LoaiBenh);
                }
            }
        }