Exemplo n.º 1
0
 public void ShowDialog(JSGridConfig cfg) {
   base.ShowDialog();
   this._cfg = cfg;
   this.containerCols.Content = new JSGridPropsCols(this._cfg);
   this.containerCols.UpdateLayout();
   this.containerNav.Content = new JSGridPropsNav(this._cfg);
   this.containerNav.UpdateLayout();
 }
 public JSGridPropsNav(JSGridConfig cfg)
   : this() {
     this.DataContext = cfg;
 }
 public JSGridPropsCols(JSGridConfig cfg)
   : this() {
   this.lbxList.ItemsSource = cfg.ColumnDefs;
 }
Exemplo n.º 4
0
 public static JSGridConfig Restore(String uid, JSGridConfig defaultCfg) {
   var rslt = Utl.RestoreUserObjectStrg<JSGridConfig>(uid, defaultCfg);
   if (rslt != null) {
     rslt.UID = uid;
     foreach (var c in rslt.ColumnDefs)
       c.owner = rslt;
   }
   return rslt;
 }