Beispiel #1
0
        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();
            }
        }
Beispiel #2
0
        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;
            }
        }