Exemplo n.º 1
0
        private void Configure()
        {
            _vm = new WarehousesVM();
            tableWarehouses.ColumnsConfig      = _vm.ColumnsConfig;
            tableWarehouses.Selection.Changed += OnSelectionChanged;
            btnAdd.Sensitive = _permissionResult.CanCreate;

            Update();
        }
Exemplo n.º 2
0
        void ConfigureWidget()
        {
            var vm = new WarehousesVM();

            tableWarehouses.ColumnsConfig = vm.ColumnsConfig;
            vm.UpdateNodes();
            tableWarehouses.YTreeModel = vm.TreeModel;
            uow = vm.UoW;
            tableWarehouses.Selection.Changed += OnSelectionChanged;
            tableWarehouses.ExpandAll();
            buttonEdit.Sensitive = buttonDelete.Sensitive = false;
        }