Exemplo n.º 1
0
        public ObjectPlaceToolViewModel(MainWindowViewModel mainWindow)
        {
            m_mainWindow = mainWindow;
            Tabs = new ObservableCollection<TabItem>();
            FullList = new CollectionViewSource();

            LoadTemplatesFromDisk();

            // Set the search filter text to an empty string so it triggers the IsSearching/CanPlaceObject OnPropertyChanged
            // events so that the view sets the visibility of both controls correctly.
            SearchFilterText = string.Empty;
        }
Exemplo n.º 2
0
 public EntityOutlinerViewModel(MainWindowViewModel mainView)
 {
     m_mainView = mainView;
     m_entityList = new BindingList<MapEntity>();
 }
Exemplo n.º 3
0
 public MainWindow()
 {
     m_viewModel = new MainWindowViewModel();
     InitializeComponent();
     DataContext = m_viewModel;
 }
Exemplo n.º 4
0
 public SceneViewViewModel(MainWindowViewModel mainView)
 {
     m_mainView = mainView;
     ArchiveList = new BindingList<Scene>();
 }