Esempio n. 1
0
        public static WindowTrashCan Show(ObjectTrashCan.PrivateState privateState)
        {
            var instance = new WindowTrashCan();

            Api.Client.UI.LayoutRootChildren.Add(instance);
            instance.Setup(privateState);
            return(instance);
        }
Esempio n. 2
0
        public ViewModelWindowTrashCan(ObjectTrashCan.PrivateState privateState)
        {
            this.PrivateState = privateState;

            this.ViewModelItemsContainerExchange = new ViewModelItemsContainerExchange(
                privateState.ItemsContainer)
            {
                IsContainerTitleVisible    = false,
                IsManagementButtonsVisible = false
            };
        }
Esempio n. 3
0
 private void Setup(ObjectTrashCan.PrivateState privateState)
 {
     this.privateState = privateState;
     this.RefreshViewModel();
 }