public WindowDetails(string movieid = "") { //movieid = "IPX-163"; InitializeComponent(); if (movieid != "") { vieModel = new VieModel_Details(); vieModel.Query(movieid); this.DataContext = vieModel; vieModel.QueryCompletedHandler += (s, e) => { BigImage.Source = vieModel.DetailMovie.bigimage; }; } else { this.DataContext = null; } AdjustWindow(); FatherGrid.Focus(); SetSkin(); }
public WindowDetails(string movieid = "") { //movieid = "IPX-163"; InitializeComponent(); if (movieid != "") { vieModel = new VieModel_Details(); vieModel.Query(movieid); this.DataContext = vieModel; } else { this.DataContext = null; } AdjustWindow(); FatherGrid.Focus(); SetSkin(); }