Пример #1
0
        private void CreateANewWindow(NewWindow message)
        {
            string windowId = "Window" + _counter++;
            var    vm       = new MainWindowViewModel(Self, windowId);

            _activeActorRef = CustomActorSystem.Instance.ActorSystemEx().ActorOf(Props.Create <MainWindowUIActor>(vm));
            CreateNewWindow.Create(vm);
            _childWindows.Add(windowId, _activeActorRef);
        }
        private ListBoxItem AddNewProperty(CreateNewWindow createWindow)
        {
            var window = createWindow();
            var item   = new ListBoxItem {
                Content = Description(window)
            };

            UpdateDescription(window, item);
            _itemsToWindows[item]  = window;
            item.MouseDoubleClick += (o, args) => _itemsToWindows[item].Show();
            properties.Items.Add(item);
            return(item);
        }
Пример #3
0
        private void CreateNewButtonBase_OnClick(object sender, RoutedEventArgs e)
        {
            var createNewWnd = new CreateNewWindow();

            createNewWnd.ShowDialog();
        }