예제 #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());
        }
예제 #2
0
        void cc_FormClosed(object sender, FormClosedEventArgs e)
        {
            channelconfig cc = (channelconfig)sender;

            if (cc.savechannels)
            {
                g.setchannels(cc.getchannels());
            }
        }
예제 #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());
        }