public Parts(Aras.ViewModel.Manager.Session Session) : base(Session) { this.Children.NotifyListChanged = false; // Create Search Query this.SearchQuery = new Model.Design.Queries.Searches.Part(this.Session.Model); // Create Search this.Search = new Aras.ViewModel.Grids.Search(this.Session); this.Search.Width = 300; this.Children.Add(this.Search); this.Search.Region = Aras.ViewModel.Regions.Left; this.Search.Binding = this.SearchQuery.Store; this.Search.Splitter = true; this.Search.ItemsSelected += Search_ItemsSelected; // Create Form Query this.FormQuery = new Model.Design.Queries.Forms.Part(this.Session.Model); // Create Form this.Form = new Forms.Part(this.Session, this.FormQuery.Store); this.Children.Add(this.Form); this.Children.NotifyListChanged = true; // Select First Part if (this.SearchQuery.Store.Count() > 0) { this.Search.Select(this.SearchQuery.Store.First()); } }
public Part(Aras.ViewModel.Manager.Session Session, Aras.Model.Store Store) : base(Session, Store) { this.Children.NotifyListChanged = false; // Create TabContainer this.TabContainer = new Aras.ViewModel.Containers.TabContainer(this.Session); this.TabContainer.Region = Aras.ViewModel.Regions.Top; this.TabContainer.Splitter = true; this.Children.Add(this.TabContainer); // Create Detail Pane this.DetailPane = new Panes.Part(this.Session); this.DetailPane.Title = "Details"; this.TabContainer.Children.Add(this.DetailPane); // Create Relationship Tree this.Tree = new Containers.BorderContainers.RelationshipTree(this, typeof(Design.NodeFormatters.Part)); this.Tree.Region = Regions.Center; this.Tree.Splitter = true; this.Children.Add(this.Tree); this.Children.NotifyListChanged = true; }
public Part(Aras.ViewModel.Manager.Session Session) : base(Session, Session.Model.ItemType("Part"), properties) { this.Columns = 3; this.Width = 600; }
public Part(Aras.ViewModel.Manager.Session Session) : base(Session) { this.Table = new Tables.Part(Session); this.Content = this.Table; }