示例#1
0
        private void StartShowButton_Click(object sender, EventArgs e)
        {
            // Init a new podcast class...
            KLIKPodcast kp = new KLIKPodcast((DataRowView)Shows.SelectedItem);
            mf.kCurrentPodcast = kp;

            // Start the show at the business level...
            kp.StartShow();

            // Do our GUI stuff...
            if (kp.kShow.kSkill == ShowPermissions.Advanced)
            {
                // Create an advanced controller form...
                AdvancedController ac = new AdvancedController(this.mf, kp);
                ac.Show();
                mf.Hide();
            }
            else
            {
                // Update the MainForm
                mf.UpdateStatus();
            }

            // Close this form...
            this.Close();
        }
示例#2
0
        public ChangeSong(KLIKPodcast kp, DateTime dt)
        {
            this.kCurrentPodcast = kp;
            this.dtPressed = dt;

            InitializeComponent();
        }
示例#3
0
        public AdvancedController(MainForm mf, KLIKPodcast kPodcast)
        {
            this.mf = mf;
            this.kCurrentPodcast = kPodcast;

            InitializeComponent();
        }
示例#4
0
        public ShowInfo(MainForm mf, KLIKPodcast kp)
        {
            if (kp == null || mf == null)
            {
                throw new Exception("Podcast or MainForm was null");
            }

            this.mf = mf;
            this.kp = kp;
            InitializeComponent();
        }
示例#5
0
 public UploadForm(KLIKPodcast kp)
 {
     this.kPodcast = kp;
     InitializeComponent();
 }