示例#1
0
        private void btn_tambah_Click(object sender, RoutedEventArgs e)
        {
            PopUpPasien poppasien = new PopUpPasien();

            poppasien.AddItemCallback = new AddItemDelegatePasien(this.AddItemCallbackPopUpPasien);
            poppasien.ShowDialog();
        }
示例#2
0
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            var button = (FrameworkElement)sender;
            var row    = (DataGridRow)button.Tag;

            if (dgPasien.SelectedCells.Count > 0)
            {
                PopUpPasien popPasien = new PopUpPasien(GetIndexpasien(row));
                popPasien.AddItemCallback = new AddItemDelegatePasien(this.AddItemCallbackPopUpPasien);
                popPasien.ShowDialog();
            }
        }
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            var button = (FrameworkElement)sender;
            var row = (DataGridRow)button.Tag;

            if (dgPasien.SelectedCells.Count > 0)
            {
                PopUpPasien popPasien = new PopUpPasien(GetIndexpasien(row));
                popPasien.AddItemCallback = new AddItemDelegatePasien(this.AddItemCallbackPopUpPasien);
                popPasien.ShowDialog();

            }
        }
 private void btn_tambah_Click(object sender, RoutedEventArgs e)
 {
     PopUpPasien poppasien = new PopUpPasien();
     poppasien.AddItemCallback = new AddItemDelegatePasien(this.AddItemCallbackPopUpPasien);
     poppasien.ShowDialog();
 }