Esempio n. 1
0
        /*      private void setpathmp_Click(object sender, EventArgs e)
         *    {
         *        outputfile.Text = s.xmltvpath + "tvguide.xml";
         *        outputdlg.InitialDirectory = s.xmltvpath;
         *        outputdlg.FileName = "tvguide.xml";
         *    }
         *
         *    private void setpath4tr_Click(object sender, EventArgs e)
         *    {
         *        outputfile.Text = s.ftrguidepath + "guide.xml";
         *        outputdlg.InitialDirectory = s.ftrguidepath;
         *        outputdlg.FileName = "guide.xml";
         *    }*/

        private void channelconfigbtn_Click(object sender, EventArgs e)
        {
            channelconfig cc = new channelconfig(/*g.getchannels()*/);

            cc.FormClosed += new FormClosedEventHandler(cc_FormClosed);
            cc.Show();
            cc.setchannels(g.getchannels());
        }
Esempio n. 2
0
        void cc_FormClosed(object sender, FormClosedEventArgs e)
        {
            channelconfig cc = (channelconfig)sender;

            if (cc.savechannels)
            {
                g.setchannels(cc.getchannels());
            }
        }
Esempio n. 3
0
        /*      private void setpathmp_Click(object sender, EventArgs e)
        {
            outputfile.Text = s.xmltvpath + "tvguide.xml";
            outputdlg.InitialDirectory = s.xmltvpath;
            outputdlg.FileName = "tvguide.xml";
        }

        private void setpath4tr_Click(object sender, EventArgs e)
        {
            outputfile.Text = s.ftrguidepath + "guide.xml";
            outputdlg.InitialDirectory = s.ftrguidepath;
            outputdlg.FileName = "guide.xml";
        }*/
        private void channelconfigbtn_Click(object sender, EventArgs e)
        {
            channelconfig cc = new channelconfig(/*g.getchannels()*/);
            cc.FormClosed += new FormClosedEventHandler(cc_FormClosed);
            cc.Show();
            cc.setchannels(g.getchannels());
        }