/// <summary>
        /// Initializes a new instance of the <see cref="Tool1ViewModel"/> class.
        /// </summary>
        public SimConfigViewModel(SimConfigModel sc)
        {
            this.ImageSource = new BitmapImage(new Uri("/Resources/Images/Toolbox16.png", UriKind.Relative));
            this.Name = "simConfigWindow";
            this.Title = "Simulation Configuration";

            this.simConfig = sc;
        }
Example #2
0
        /////////////////////////////////////////////////////////////////////////////////////////////////////
        // OBJECT
        /////////////////////////////////////////////////////////////////////////////////////////////////////
        /// <summary>
        /// Initializes a new instance of the <see cref="MainViewModel"/> class.
        /// </summary>
        public MainViewModel()
        {
            simConfigModel = new SimConfigModel();

            // Build tool items
            this.toolItems = new DeferrableObservableCollection<ToolItemViewModel>();

            // Tool 3
            Tool3ViewModel viewModel3 = new Tool3ViewModel();
            viewModel3.Name = "DisplayOptions";
            viewModel3.Title = "Doc Display Options";
            viewModel3.DefaultDock = Dock.Right;
            viewModel3.DockGroup = "RightGroup";
            viewModel3.IsInitiallyAutoHidden = false;
            this.toolItems.Add(viewModel3);

            // Tool 2
            Tool2ViewModel viewModel = new Tool2ViewModel();
            viewModel.DefaultDock = Dock.Bottom;
            viewModel.DockGroup = "BottomGroup";
            viewModel.TextOutput = "0";
            this.toolItems.Add(viewModel);

            // Sim Config
            SimConfigViewModel simConfigViewModel = new SimConfigViewModel(simConfigModel);
            simConfigViewModel.DefaultDock = Dock.Left;
            simConfigViewModel.DockGroup = "LeftGroup";
            this.toolItems.Add(simConfigViewModel);

            // Tool 3
            //Tool3ViewModel viewModel3 = new Tool3ViewModel();
            //viewModel3.DefaultDock = Dock.Left;
            //viewModel3.DockGroup = "HiddenGroup";
            //viewModel3.IsInitiallyAutoHidden = true;
            //this.toolItems.Add(viewModel3);

            this.simModel = new SimulationModel(simConfigModel);

            this.AddNewDocument("VTKDocument");

            this.AddNewDocument("TextDocument");
        }
 public SimulationModel(SimConfigModel sm)
 {
     this.simConfigModel = sm;
     this.CreateCells();
     this.time = 0;
 }