Example #1
0
 public RentDetail()
 {
     InitializeComponent();
     Datacontext = new RentDetailVM();
     Kuulaja muutus = new Kuulaja(PohiBLL.Muutus);
     muutus.muutusevent.Muutus += new BLL.Event.MuutusEvent.KustomEventHandler(UuendaDataContext);
 }
Example #2
0
 /// <summary>
 /// Muutus eventi handler
 /// </summary>
 /// <param name="muutus"></param>
 /// <param name="e"></param>
 private void UuendaDataContext(BLL.Event.MuutusEvent muutus, EventArgs e)
 {
     Datacontext = new RentDetailVM();
 }