private void SaveMainDef() { MainDef expr_06 = this.mainDef; expr_06["tvtest"] = this.tvtestBox.Text; expr_06["record.folder"] = this.recDirBox.Text; expr_06["record.margin.start"] = this.startMarginBox.Text; expr_06["record.margin.end"] = this.endMarginBox.Text; expr_06["record.file"] = this.recFileBox.Text; expr_06["epg.hour"] = this.epgHourBox.Text; expr_06["autosleep"] = (this.autoSleepCheck.Checked ? "on" : "off"); expr_06["postprocess"] = this.postProcessBox.Text; expr_06.Save(); }
private void LoadMainDef() { this.mainDef = MainDef.GetInstance(); MainDef mainDef = this.mainDef; this.tvtestBox.Text = mainDef["tvtest"]; this.recDirBox.Text = mainDef["record.folder"]; this.startMarginBox.Text = mainDef["record.margin.start"]; this.endMarginBox.Text = mainDef["record.margin.end"]; this.recFileBox.Text = mainDef["record.file"]; this.epgHourBox.Text = mainDef["epg.hour"]; this.autoSleepCheck.Checked = (mainDef["autosleep"] == "on"); this.postProcessBox.Text = mainDef["postprocess"]; }