Exemplo n.º 1
0
        public override void Initialize()
        {
            var view      = new GameClientExplorerView();
            var viewModel = new GameClientExplorerVM(this, view.Dispatcher);

            view.ViewModel = viewModel;

            var panel = new PanelInfo(Guid.Parse("DAD9E8C0-14DB-4E24-9437-E7FF6C4D27B1"))
            {
                Title    = this.L("game_client_explorer", "panel_title"),
                CanHide  = true,
                CanClose = true,
                CanFloat = true,
                Width    = 200,
                Content  = view
            };

            DockingViewManager.Instance.PanelManager.Register(panel);
        }
Exemplo n.º 2
0
        public LocalGameClientNodeVM(GameClientExplorerVM owner, LocalGameClient client)
            : base(null, client.Name, LoadChildenStrategy.Manual)
        {
            this.Configuration = RepositoryManager.Instance.GetConfiguration(client);
            this.Name          = this.Configuration.Alias;
            this.Configuration.PropertyChanged += Configuration_PropertyChanged;

            this.FileExplorer = owner;
            this.Model        = client;

            this.VehiclesNode = new VehiclesFolderVM(this, this.Model);
            this.InternalChildren.Add(this.VehiclesNode);

            this.DataNode = new DataFolderVM(this, this.Model);
            this.InternalChildren.Add(this.DataNode);

            this.FilesNode = new RootFolderVM(this, this.Model);
            this.InternalChildren.Add(this.FilesNode);

            this.ShowPropertiesCommand = new RelayCommand(this.ShowProperties);
        }