public Sample(Core core, DataRow sampleRow) : base(core) { ItemLoad += new ItemLoadHandler(Sample_ItemLoad); try { loadItemInfo(sampleRow); sampledRecording = new Recording(core, sampleRow); } catch (InvalidItemException) { throw new InvalidSampleException(); } }
public static void Show(object sender, ShowMPageEventArgs e) { e.Template.SetTemplate("Musician", "viewrecording"); Recording recording = null; try { recording = new Recording(e.Core, e.ItemId); } catch { e.Core.Functions.Generate404(); return; } }