public List(Manager.Session Session, Model.PropertyTypes.List PropertyType) : base(Session, PropertyType) { this.Values = new Model.ObservableList <ListValue>(); this.Value = null; this.AllowNull = false; if (PropertyType != null) { if (!PropertyType.Required) { // Add Blank Value if Property is not required ListValue blank = new ListValue(this.Session); blank.Value = null; blank.Label = " "; this.Values.Add(blank); } // Add Values foreach (Model.Relationships.Value modellistvalue in PropertyType.Values.Relationships("Value")) { ListValue listvalue = new ListValue(this.Session); listvalue.Binding = modellistvalue; this.Values.Add(listvalue); } } // Watch for changes in Values this.Values.ListChanged += Values_ListChanged; }
public List(Manager.Session Session) : base(Session) { this.Values = new Model.ObservableList <ListValue>(); this.Values.ListChanged += Values_ListChanged; this.Value = null; this.AllowNull = false; }
public Container(Manager.Session Session) : base(Session) { this.Region = Regions.Center; this.Splitter = false; this.Children = new Model.ObservableList <Control>(); this.Children.ListChanged += Children_ListChanged; }
internal Row(Grid Grid, Int32 Index) : base(Grid.Session) { this.Grid = Grid; this.Index = Index; this.Cells = new Model.ObservableList <Cell>(); this.UpdateCells(); this.Grid.Columns.ListChanged += Columns_ListChanged; }
public Relationship(IItemControl Parent, Model.RelationshipType RelationshipType) : base(Parent.Session) { // Create Page this.Page = new Properties.Integer(this.Session); this.Page.Value = 1; // Create No Pages this.NoPages = new Properties.Integer(this.Session); this.NoPages.Value = 0; // Only create Dialog when needed this.Dialog = null; // Create Selected this.Selected = new Model.ObservableList <Model.Relationship>(); // Create Comands this.Refresh = new RefreshCommand(this); this.NextPage = new NextPageCommand(this); this.PreviousPage = new PreviousPageCommand(this); this.Create = new CreateCommand(this); this.Delete = new DeleteCommand(this); // Store Parent this.Parent = Parent; // Watch Parent Events this.Parent.Created += Parent_Created; this.Parent.Edited += Parent_Edited; this.Parent.Undone += Parent_Undone; this.Parent.Saved += Parent_Saved; // Store RelationshipType this.RelationshipType = RelationshipType; // Create Grid this.Grid = new Grid(this.Session); this.Grid.AllowSelect = true; this.Grid.Width = this.Width; this.Grid.RowsSelected += Grid_RowsSelected; this.Children.Add(this.Grid); // Create Query String this.QueryString = new Properties.String(this.Session); this.QueryString.Enabled = true; this.QueryString.IntermediateChanges = true; this.QueryString.Tooltip = "Search String"; this.QueryString.PropertyChanged += QueryString_PropertyChanged; // Create Page Size this.PageSize = new Properties.Integers.Spinner(this.Session); this.PageSize.Tooltip = "Page Size"; this.PageSize.Width = 40; this.PageSize.Enabled = true; this.PageSize.MinValue = 5; this.PageSize.MaxValue = 100; this.PageSize.Value = 25; this.PageSize.PropertyChanged += PageSize_PropertyChanged; // Load Columns this.LoadColumns(); }