Exemple #1
0
        private void btn_tambah_Click(object sender, RoutedEventArgs e)
        {
            PopUpTerapi poppasien = new PopUpTerapi();

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

            if (dgTerapi.SelectedCells.Count > 0)
            {
                PopUpTerapi popTerapi = new PopUpTerapi(GetIndexpasien(row));
                popTerapi.AddItemCallback = new AddItemDelegateTerapi(this.AddItemCallbackPopUpTerapi);
                popTerapi.ShowDialog();
            }
        }
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            var button = (FrameworkElement)sender;
            var row = (DataGridRow)button.Tag;

            if (dgTerapi.SelectedCells.Count > 0)
            {
                PopUpTerapi popTerapi = new PopUpTerapi(GetIndexpasien(row));
                popTerapi.AddItemCallback = new AddItemDelegateTerapi(this.AddItemCallbackPopUpTerapi);
                popTerapi.ShowDialog();

            }
        }
 private void btn_tambah_Click(object sender, RoutedEventArgs e)
 {
     PopUpTerapi poppasien = new PopUpTerapi();
     poppasien.AddItemCallback = new AddItemDelegateTerapi(this.AddItemCallbackPopUpTerapi);
     poppasien.ShowDialog();
 }