public OneWorkItemPolicyForm(OneWorkItemPolicyConfig config, TeamProject teamProject) : this() { Config = config; rdoExactly.Checked = config.ExactlyOne; rdoAtLeast.Checked = !config.ExactlyOne; InitWorkItemTypes(teamProject); rdoAtLeast.CheckedChanged += rdoAtLeast_CheckedChanged; rdoExactly.CheckedChanged += rdoExactly_CheckedChanged; }
public override bool Edit(IPolicyEditArgs policyEditArgs) { if (Config == null) { Config = new OneWorkItemPolicyConfig(); } using (var form = new OneWorkItemPolicyForm(Config, policyEditArgs.TeamProject)) { var res = form.ShowDialog(policyEditArgs.Parent); if (res == DialogResult.OK) { Config = form.Config; return(true); } return(false); } }
public override bool Edit(IPolicyEditArgs policyEditArgs) { if (Config == null) { Config = new OneWorkItemPolicyConfig(); } using (var form = new OneWorkItemPolicyForm(Config, policyEditArgs.TeamProject)) { var res = form.ShowDialog(policyEditArgs.Parent); if (res == DialogResult.OK) { Config = form.Config; return true; } return false; } }