public void ShowDialog(CJSGCfg cfg) { base.ShowDialog(); this._cfg = cfg; this.lbxList.ItemsSource = this._cfg.Items; }
public static CJSGCfg Restore(String name, CJSGCfg defaultCfg) { CJSGCfg rslt = Utl.RestoreUserObject<CJSGCfg>(name, defaultCfg); foreach (var c in rslt.Items) c._owner = rslt; return rslt; }