Example #1
0
 public Item(Manager.Session Session, Model.PropertyTypes.Item PropertyType)
     : base(Session, PropertyType)
 {
     this.Dialog           = null;
     this.Select           = new SelectCommand(this);
     this.PropertyChanged += Control_PropertyChanged;
 }
Example #2
0
        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;
        }
Example #3
0
 public ContentPane(Manager.Session Session)
     : base(Session)
 {
     this._title   = null;
     this.Region   = Regions.Center;
     this.Splitter = false;
     this._content = null;
 }
Example #4
0
 public List(Manager.Session Session)
     : base(Session)
 {
     this.Values              = new Model.ObservableList <ListValue>();
     this.Values.ListChanged += Values_ListChanged;
     this.Value     = null;
     this.AllowNull = false;
 }
Example #5
0
 public Plugin(Manager.Session Session)
     : base(Session)
 {
     this.Refresh    = new RefreshCommand(this);
     this.Edit       = new EditCommand(this);
     this.Save       = new SaveCommand(this);
     this.SaveUnLock = new SaveUnLockCommand(this);
     this.Undo       = new UndoCommand(this);
 }
Example #6
0
 public Form(Manager.Session Session, Model.Store Store)
     : base(Session)
 {
     this.Store       = Store;
     this.Refresh     = new RefreshCommand(this);
     this.Create      = new CreateCommand(this);
     this.Edit        = new EditCommand(this);
     this.Save        = new SaveCommand(this);
     this.Promote     = new PromoteCommand(this);
     this.Undo        = new UndoCommand(this);
     this.Transaction = null;
 }
Example #7
0
        public Item(Manager.Session Session, Model.ItemType ItemType, String Properties)
            : base(Session)
        {
            // Create Property Cache
            this.PropertyCache = new Dictionary <Model.PropertyType, Property>();

            // Store ItemType
            this.ItemType = ItemType;

            // Build Properties
            this.BuildProperties(Properties);
        }
Example #8
0
        public Search(Manager.Session Session)
            : base(Session)
        {
            // Create Search
            this.Grid        = new Grids.Search(this.Session);
            this.Grid.Region = Regions.Center;

            // Set Toolbar
            this.Toolbar        = ((IToolbarProvider)this.Grid).Toolbar;
            this.Toolbar.Region = Regions.Top;

            // Add Children
            this.Children.Add(this.Toolbar);
            this.Children.Add(this.Grid);
        }
Example #9
0
        public Search(Manager.Session Session)
            : base(Session)
        {
            // Create Selected
            this.Selected = new Model.ObservableList <Model.Item>();

            // 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;

            // Create Grid
            this.Grid             = new Grid(this.Session);
            this.Grid.AllowSelect = true;
            this.Grid.Width       = this.Width;
            this.Children.Add(this.Grid);

            // Watch for Rows Selected in Grid
            this.Grid.RowsSelected += Grid_RowsSelected;

            // Create Commands
            this.Refresh      = new RefreshCommand(this);
            this.Filters      = new FiltersCommand(this);
            this.Clear        = new ClearCommand(this);
            this.NextPage     = new NextPageCommand(this);
            this.PreviousPage = new PreviousPageCommand(this);

            // 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;
        }
Example #10
0
 public Spinner(Manager.Session Session)
     : base(Session)
 {
 }
Example #11
0
 public String(Manager.Session Session, Model.PropertyTypes.Text PropertyType)
     : base(Session, PropertyType)
 {
     this._length = MaxLength;
 }
Example #12
0
 public Federated(Manager.Session Session)
     : base(Session)
 {
 }
Example #13
0
 public Text(Manager.Session Session, Model.PropertyTypes.Text PropertyType)
     : base(Session, PropertyType)
 {
 }
Example #14
0
 public Decimal(Manager.Session Session)
     : base(Session)
 {
     this._minValue = DefaultMinValue;
     this._maxValue = DefaultMaxValue;
 }
Example #15
0
 public Sequence(Manager.Session Session, Model.PropertyTypes.Sequence PropertyType)
     : base(Session, PropertyType)
 {
 }
Example #16
0
 public Date(Manager.Session Session, Model.PropertyTypes.Date PropertyType)
     : base(Session, PropertyType)
 {
 }
Example #17
0
 public Date(Manager.Session Session)
     : base(Session)
 {
 }
Example #18
0
 public BorderContainer(Manager.Session Session)
     : base(Session)
 {
 }
Example #19
0
 public Toolbar(Manager.Session Session)
     : base(Session)
 {
 }
Example #20
0
 public Decimal(Manager.Session Session, Model.PropertyTypes.Decimal PropertyType)
     : base(Session, PropertyType)
 {
     this._minValue = DefaultMinValue;
     this._maxValue = DefaultMaxValue;
 }
Example #21
0
 public TabContainer(Manager.Session Session)
     : base(Session)
 {
 }
Example #22
0
 public Boolean(Manager.Session Session)
     : base(Session)
 {
     this.Width = null;
 }
Example #23
0
 public Text(Manager.Session Session)
     : base(Session)
 {
 }
Example #24
0
 public Sequence(Manager.Session Session)
     : base(Session)
 {
 }
Example #25
0
 public Application(Manager.Session Session)
     : base(Session)
 {
     this.AddedToolbars         = new List <Control>();
     this.Children.ListChanged += Children_ListChanged;
 }
Example #26
0
 public String(Manager.Session Session, Model.PropertyTypes.String PropertyType)
     : base(Session, PropertyType)
 {
     this._length = DefaultLength;
 }
Example #27
0
 public Federated(Manager.Session Session, Model.PropertyTypes.Federated PropertyType)
     : base(Session, PropertyType)
 {
 }
Example #28
0
 public TitlePane(Manager.Session Session)
     : base(Session)
 {
     this._open = true;
 }
Example #29
0
 public Boolean(Manager.Session Session, Model.PropertyTypes.Boolean PropertyType)
     : base(Session, PropertyType)
 {
     this.Width = null;
 }
Example #30
0
 public String(Manager.Session Session)
     : base(Session)
 {
     this._length = DefaultLength;
 }