protected override void Initialize(object navigationData) { base.Initialize(navigationData); // TODO: pictureBox1.Image var info = (Tuple <OutboundFeature, OutboundRule>)navigationData; _feature = info.Item1; Rule = info.Item2; txtName.ReadOnly = Rule != null; if (Rule != null) { foreach (var preCondition in _feature.PreConditions) { cbPreCondition.Items.Add(preCondition.Name); } foreach (var customTags in _feature.Tags) { cbTags.Items.Add(customTags.Name); } // TODO: invoke RuleSettingsUpdate somewhere. Rule.RuleSettingsUpdated = Refresh; } cbPreCondition.Items.Add("<None>"); cbPreCondition.Items.Add("<Create New Precondition...>"); cbTags.Items.Add("<Create New Tags Collection...>"); Refresh(); }