public RuleTrailVM() { init(); Rule = new RuleTrailDTO { Name = "قانون یک" }; }
public void ShowRuleTrailView(RuleTrailDTO res) { var view = ServiceLocator.Current.GetInstance <IRuleTrailView>(); ((RuleTrailVM)view.ViewModel).Load(res); viewManager.ShowInDialog(view); }
public void Load(RuleTrailDTO ruleParam) { Rule = ruleParam; preLoad(); }
private void init() { Rule = new RuleTrailDTO(); }