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()); }
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(); })); }
public static void ShowInsert <ValueType, KeyType>( this PartOfTable <ValueType, KeyType> Table) where KeyType : IComparable <KeyType> { new insertPage().Show(Table); }