Exemplo n.º 1
0
 protected bool ProcessFlatControlValue(DataAccessMode daMode, FlatCtrl flatCtrl, ref XElement xe)
 {
     if (daMode == DataAccessMode.GetData)
     {
         xe = flatCtrl.GetValue();
     }
     else if (daMode == DataAccessMode.SetData)
     {
         flatCtrl.SetValue(xe);
     }
     return(true);
 }
Exemplo n.º 2
0
        FlatCtrl GetFlatCtrl(string classKey)
        {
            FlatCtrl flatCtrl = null;

            if (dicFlatCtrl.TryGetValue(classKey, out flatCtrl) && null != flatCtrl)
            {
                return(flatCtrl);
            }
            flatCtrl = SharedLogic.GetFlatControl(classKey);
            if (null != flatCtrl)
            {
                flatCtrl.Dock         = DockStyle.Top;
                dicFlatCtrl[classKey] = flatCtrl;
            }
            return(flatCtrl);
        }