Esempio n. 1
0
        public void Show <ValueType, KeyType>(PartOfTable <ValueType, KeyType> Table, KeyType Key)
            where KeyType : IComparable <KeyType>
        {
            var TableName    = (string)Table.HolderTable.Table.TableName;
            var RelationName = (string)Table.HolderTable.Table.TableName;

            base.Show(TableName + "?" + RelationName + "?" + Key.ConvertToString());
        }
Esempio n. 2
0
        public static HTMLElement MakeInsertView <ValueType, KeyType>(
            this PartOfTable <ValueType, KeyType> Table,
            Action Done = null)
            where KeyType : IComparable <KeyType>
        {
            var TableInfo    = TableFinder.FindTable((string)Table.HolderTable.Table.TableName);
            var RelationInfo = TableInfo.FindRelation(Table.TableName);

            return((Table, Value : default(ValueType)).MakeEditView(
                       (c) =>
            {
                RelationInfo.Insert(Table.HolderTable.Key, c.NewValue.Value);
                Done?.Invoke();
            }));
        }
Esempio n. 3
0
 public static void ShowInsert <ValueType, KeyType>(
     this PartOfTable <ValueType, KeyType> Table)
     where KeyType : IComparable <KeyType>
 {
     new insertPage().Show(Table);
 }