Beispiel #1
0
 public void InitializeComponent()
 {
     if (this._contentLoaded)
     {
         return;
     }
     this._contentLoaded = true;
     Application.LoadComponent(this, new Uri("/tiviViet;component/MainPage.xaml", 2));
     this.Template           = (DataTemplate)base.FindName("Template");
     this.LayoutRoot         = (Grid)base.FindName("LayoutRoot");
     this.SettingsPane       = (Grid)base.FindName("SettingsPane");
     this.btnRemove          = (Button)base.FindName("btnRemove");
     this.MenuMain           = (Grid)base.FindName("MenuMain");
     this.LsMenuTv           = (ListBox)base.FindName("LsMenuTv");
     this.GridLoadMenu       = (StackPanel)base.FindName("GridLoadMenu");
     this.ProgressBarLoading = (ProgressBar)base.FindName("ProgressBarLoading");
     this.Menu                 = (Image)base.FindName("Menu");
     this.TxtHeader            = (TextBlock)base.FindName("TxtHeader");
     this.ImgLich              = (Image)base.FindName("ImgLich");
     this.GridThemKenhYeuthich = (StackPanel)base.FindName("GridThemKenhYeuthich");
     this.ImgAdd               = (Image)base.FindName("ImgAdd");
     this.ScvChannel           = (ScrollViewer)base.FindName("ScvChannel");
     this.LsChannel            = (GridView)base.FindName("LsChannel");
     this.FeedbackOverlay      = (RateMyApp.Controls.FeedbackOverlay)base.FindName("FeedbackOverlay");
     this.ControlLoadding      = (ControlProgress)base.FindName("ControlLoadding");
     this.PopupFace            = (Grid)base.FindName("PopupFace");
     this.Qc     = (Grid)base.FindName("Qc");
     this.LsFree = (ListBox)base.FindName("LsFree");
     this.Ads    = (ClevernetView)base.FindName("Ads");
     this.Media  = (MediaVideo)base.FindName("Media");
     this.Addfav = (ApplicationBarMenuItem)base.FindName("Addfav");
     this.ApplicationbarSendfeedback = (ApplicationBarMenuItem)base.FindName("ApplicationbarSendfeedback");
     this.BtnFace = (ApplicationBarMenuItem)base.FindName("BtnFace");
 }
 /// <summary>
 /// Create a new MediaVideo object.
 /// </summary>
 /// <param name="mediaId">Initial value of MediaId.</param>
 /// <param name="creationDate">Initial value of CreationDate.</param>
 /// <param name="title">Initial value of Title.</param>
 /// <param name="deleted">Initial value of Deleted.</param>
 public static MediaVideo CreateMediaVideo(int mediaId, global::System.DateTime creationDate, string title, bool deleted)
 {
     MediaVideo mediaVideo = new MediaVideo();
     mediaVideo.MediaId = mediaId;
     mediaVideo.CreationDate = creationDate;
     mediaVideo.Title = title;
     mediaVideo.Deleted = deleted;
     return mediaVideo;
 }