Ejemplo n.º 1
0
        public static Task <ConfigurationViewModel> CreateAsync(bool isVisible = false)
        {
            var ret = new ConfigurationViewModel {
                IsVisible = isVisible
            };

            return(ret.InitializeAsync());
        }
Ejemplo n.º 2
0
        private async Task <Workspace> InitializeAsync()
        {
            Console = await ConsoleViewModel.CreateAsync(true);

            Configuration = await ConfigurationViewModel.CreateAsync(true);

            About = await AboutViewModel.CreateAsync(true);

            Panes.AddRange(new PaneViewModel[] { About, Console, Configuration });

            await Init();

            return(this);
        }