/* 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()); }
void cc_FormClosed(object sender, FormClosedEventArgs e) { channelconfig cc = (channelconfig)sender; if (cc.savechannels) { g.setchannels(cc.getchannels()); } }
/* 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()); }