private void bnAddRule_Click(object sender, System.EventArgs e) { ShowRule sr = new ShowRule(); AddModifyRule ar = new AddModifyRule(sr); bool res = ar.ShowDialog() == System.Windows.Forms.DialogResult.OK; if (res) this.WorkingRuleSet.Add(sr); this.FillRuleList(false, 0); }
private void bnEdit_Click(object sender, System.EventArgs e) { if (this.lvRuleList.SelectedItems.Count == 0) { return; } ShowRule sr = (ShowRule)(this.lvRuleList.SelectedItems[0].Tag); AddModifyRule ar = new AddModifyRule(sr, this.mSI.GetSeason(this.mSeasonNumber), this.mSI.DVDOrder); ar.ShowDialog(); // modifies rule in-place if OK'd this.FillRuleList(false, 0); }
private void bnEdit_Click(object sender, System.EventArgs e) { if (lvRuleList.SelectedItems.Count == 0) { return; } ShowRule sr = (ShowRule)lvRuleList.SelectedItems[0].Tag; AddModifyRule ar = new AddModifyRule(sr, show, mSeasonNumber); ar.ShowDialog(); // modifies rule in-place if OK'd FillRuleList(false, 0); }
private void EditSelectedRule() { if (lvRuleList.SelectedItems.Count == 0) { return; } ShowRule sr = (ShowRule)lvRuleList.SelectedItems[0].Tag; AddModifyRule ar = new AddModifyRule(sr, show, ProcessedEpisodes()); ar.ShowDialog(this); // modifies rule in-place if OK'd FillRuleList(false, 0); }
private void bnAddRule_Click(object sender, System.EventArgs e) { ShowRule sr = new ShowRule(); AddModifyRule ar = new AddModifyRule(sr, this.mSI.GetSeason(this.mSeasonNumber), this.mSI.DVDOrder); bool res = ar.ShowDialog() == System.Windows.Forms.DialogResult.OK; if (res) { this.WorkingRuleSet.Add(sr); } this.FillRuleList(false, 0); }
private void bnAddRule_Click(object sender, System.EventArgs e) { ShowRule sr = new ShowRule(); AddModifyRule ar = new AddModifyRule(sr, show, mSeasonNumber); bool res = ar.ShowDialog() == DialogResult.OK; if (res) { workingRuleSet.Add(sr); } FillRuleList(false, 0); }
private void bnEdit_Click(object sender, System.EventArgs e) { if (this.lvRuleList.SelectedItems.Count == 0) return; ShowRule sr = (ShowRule) (this.lvRuleList.SelectedItems[0].Tag); AddModifyRule ar = new AddModifyRule(sr); ar.ShowDialog(); // modifies rule in-place if OK'd this.FillRuleList(false, 0); }