private void cstSaveBtn_Click(object sender, RoutedEventArgs e)
        {
            if (!cstNameTB.Text.Equals(string.Empty) &&
                !cstAdrsTB.Text.Equals(string.Empty) &&
                !cstCntctTB.Text.Equals(string.Empty))
                {
                    PSMSData.TrainingInfo newtraining = new PSMSData.TrainingInfo();

                    newtraining.id = GenerateId();

                    newtraining.name = cstNameTB.Text;
                    newtraining.address = cstAdrsTB.Text;
                    newtraining.contact = cstCntctTB.Text;
                    newtraining.remark = cstRmrkTB.Text;

                    PSMSDatabase.DbInteraction.DoRegisterNewtraining(newtraining);

                    //addCustmrEpndr.Visibility = Visibility.Collapsed;
                    //loginExpndr.Visibility = Visibility.Visible;
                    //loginExpndr.IsExpanded = true;
                    //dNBSNUserIDTB.Clear();
                    //dNBSNpassPB.Clear();
                    custErorMsgLbl.Content = "Successfully Added";
                    cstNameTB.Clear();
                    cstCntctTB.Clear();
                    cstAdrsTB.Clear();
                    cstRmrkTB.Clear();
                    fetchtrainingData();

                }
            else
            {
                custErorMsgLbl.Content = "Correctly Enter Info ";

            }
        }
        private void serchCustBtn_Click(object sender, RoutedEventArgs e)
        {
            if (srchNameTB.Text == "")
                fetchtrainingData();
            else
            {
                TrainingInfo custinfo = new TrainingInfo();
                custinfo.name = srchNameTB.Text;

                List<TrainingInfo> trainings = DbInteraction.searchtrainingList(custinfo);

                _trainingCollection.Clear();

                foreach (TrainingInfo training in trainings)
                {
                    _trainingCollection.Add(training);
                }
            }
        }
 public static void Edittraining(TrainingInfo trainingToEdit)
 {
     throw new NotImplementedException();
 }
 public static void DoRegisterNewtraining(TrainingInfo newtraining)
 {
     throw new NotImplementedException();
 }
 public static List<TrainingInfo> searchtrainingList(TrainingInfo custinfo)
 {
     throw new NotImplementedException();
 }