public static Form LaunchAsChildForm(object entity, Func <object, int> saveFunction, Func <object, int> deleteFunction, params Type[] saveableTypes)
        {
            var frm = new FrmLLBLEntityViewer(entity, new DataEditorPersister(saveFunction, deleteFunction, saveableTypes));

            AWHelper.ShowFormModalIfParentLess(frm);
            return(frm);
        }
예제 #2
0
 public static void ShowEntitiesAndFields(Type baseType, ILinqMetaData linqMetaData, Form parent)
 {
     if (_formSingleton == null)
     {
         _formSingleton = new FrmEntitiesAndFields(baseType, linqMetaData);
     }
     AWHelper.ShowFormModalIfParentLess(_formSingleton, parent);
 }