/// <summary> /// Initializes a new instance of the class, while setting the properties /// to become instances for the appropriate media type and status /// </summary> /// <param name="mediaType">Type of the media to create instances for.</param> public Db(string mediaType) { Complete = new MediaTable(mediaType, "Complete"); Ongoing = new MediaTable(mediaType, "Ongoing"); Dropped = new MediaTable(mediaType, "Dropped"); Planned = new MediaTable(mediaType, "Planned"); }
/// <summary> /// Accesses the MainWindows popup and shows the users media table /// </summary> /// <param name="type">The type.</param> /// <param name="status">The status.</param> private void ShowUsersMedia(string type, string status) { MediaTable showTable = new MediaTable(type, status, Userid); ( Application.Current.MainWindow as MainWindow ).ShowPopup(showTable); }