private async void SetButt_Click(object sender, RoutedEventArgs e)
 {
     if (STipeNilai.SelectedIndex == 0)
     {
         if (SNama.SelectedValue != null && SSemester.SelectedValue != null)
         {
             NilaiDanAbsen NdaForm = new NilaiDanAbsen();
             NdaForm.SetData(SNama.SelectedValue.ToString(), SNama.Text, SSemester.Text, GetNamaPanggilan(SNama.SelectedValue.ToString()));
             NdaForm.ShowDialog();
             this.Close();
         }
         else
         {
             await this.ShowMessageAsync("Pilih Data", "Data belum lengkap!");
         }
     }
     else if (STipeNilai.SelectedIndex == 1)
     {
         if (SNama.SelectedValue != null && SSemester.SelectedValue != null && SMapel.SelectedValue != null)
         {
             PengetahuanDanKeterampilan PenForm = new PengetahuanDanKeterampilan();
             PenForm.SetData(SNama.SelectedValue.ToString(), SNama.Text, Convert.ToInt32(SMapel.SelectedValue), SMapel.Text, SSemester.Text, GetKelas(), GetNamaPanggilan(SNama.SelectedValue.ToString()), KKM);
             PenForm.ShowDialog();
             this.Close();
         }
         else
         {
             await this.ShowMessageAsync("Pilih Data", "Data belum lengkap!");
         }
     }
 }
        private void EditSikapDll_Click(object sender, RoutedEventArgs e)
        {
            DataRowView   rv            = (DataRowView)((Button)e.Source).DataContext;
            NilaiDanAbsen nilaiDanAbsen = new NilaiDanAbsen();

            nilaiDanAbsen.SetEdit(rv.Row[0].ToString(), rv.Row[1].ToString(), rv.Row[2].ToString(), rv.Row[13].ToString(), rv.Row[3].ToString(), rv.Row[6].ToString(), rv.Row[9].ToString());
            nilaiDanAbsen.Show();
            this.Close();
        }