예제 #1
0
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            var button = (FrameworkElement)sender;
            var row = (DataGridRow)button.Tag;

            if (dgObat.SelectedCells.Count > 0)
            {
                PopUpObat popObat = new PopUpObat(GetIndexObat(row));
                popObat.AddItemCallback = new AddItemDelegateObat(this.AddItemCallbackPopUpObat);
                popObat.ShowDialog();

            }
        }
예제 #2
0
 private void btn_tambah_Click(object sender, RoutedEventArgs e)
 {
     PopUpObat popobat = new PopUpObat();
     popobat.AddItemCallback = new AddItemDelegateObat(this.AddItemCallbackPopUpObat);
     popobat.ShowDialog();
 }