public AddTrainee(DsRsrc dsrsrc) { InitializeComponent(); addDsrsrc = dsrsrc; this.txbPidNo.SetBinding(TextBox.TextProperty, new Binding("PidNo") { Source = addDsrsrc }); txbUserName.SetBinding(TextBox.TextProperty, new Binding("Name") { Source = addDsrsrc }); txbAddress.SetBinding(TextBox.TextProperty, new Binding("Address") { Source = addDsrsrc }); myImage.SetBinding(Image.SourceProperty, new Binding("Photo") { Source = addDsrsrc }); txbPidNo.Text = ""; txbUserName.Text = ""; txbPhoneNo.Text = ""; txbAddress.Text = ""; bindSource(); }
public BulkBooking(DsRsrc dsr) { dsrsrc = dsr; InitializeComponent(); if (dsrsrc.trainMangeDataSet.DrvSchoolDataTable.Rows.Count > 0) { cboxSerDrv.ItemsSource = dsrsrc.trainMangeDataSet.DrvSchoolDataTable.DefaultView; } if (dsrsrc.TrainLicenseType != null) { this.cboxSerCarType.ItemsSource = dsrsrc.TrainLicenseType; this.cboxSerCarType.SelectedIndex = 0; } cboxSubject.SelectedIndex = 0; if (dsrsrc.BillingMode != null) { cboxBillModeBook.ItemsSource = dsrsrc.BillingMode; if (dsrsrc.sBillingMode == "Tries") { cboxBillModeBook.SelectedIndex = 0; } else if (dsrsrc.sBillingMode == "Time") { cboxBillModeBook.SelectedIndex = 1; } else { cboxBillModeBook.SelectedIndex = 2; } sChargingMode = dsrsrc.sBillingMode; } cboxList.IsChecked = true; cboxBillModeBook.IsEditable = false; }
public carInfo(DsRsrc dsr) { InitializeComponent(); dsrsrc = dsr; dsrsrc.GetAllTrainer(); dsrsrc.getAllTraCar(); this.cboxCarType.ItemsSource = dsrsrc.TrainLicenseType; PopuTraCarPage(); }
public settleMent(DsRsrc dsr) { InitializeComponent(); dsrsrc = dsr; dsrsrc.getAllDrvSchool(); cbxDevName.ItemsSource = dsrsrc.trainMangeDataSet.DrvSchoolDataTable.DefaultView; tbxSerPidNo.SetBinding(TextBox.TextProperty, new Binding("PidNo") { Source = dsrsrc }); }
public stuManage(DsRsrc dsrsrcPara) { InitializeComponent(); dsrsrc = dsrsrcPara; txbPidNo.SetBinding(TextBox.TextProperty, new Binding("PidNo") { Source = dsrsrc }); dsrsrc.getAllDrvSchool(); cboxSerDrv.ItemsSource = dsrsrc.trainMangeDataSet.DrvSchoolDataTable.DefaultView; }
public serTraResult(DsRsrc dsr) { InitializeComponent(); dsrsrc = dsr; dsrsrc.getAllDrvSchool(); dsrsrc.GetAllSetting(); dsrsrc.GetAllTrainer(); dsrsrc.getAllTraCar(); CboxDrvName.ItemsSource = dsrsrc.trainMangeDataSet.DrvSchoolDataTable.DefaultView; this.CboxSisCarType.ItemsSource = dsrsrc.TrainLicenseType; CboxSisCarType.SelectedIndex = 0; }
public userInfo(DsRsrc dsr) { InitializeComponent(); dsrsrc = dsr; PopuTraManagerPage(); }
public trainerInfo(DsRsrc dsr) { InitializeComponent(); dsrsrc = dsr; PopuTrainerPage(); }
public drvInfo(DsRsrc dsr) { InitializeComponent(); dsrsrc = dsr; PopuDrvPage(); }
public Recharge(DsRsrc dsr) { InitializeComponent(); dsrsrc = dsr; }