public ActionResult RectangularSection(RectangularSectionViewModel viewModel)
        {
            var resultViewModel = this.performCalculations <RectangularSectionViewModel>(viewModel);

            ViewBag.HasResult = true;
            return(View(resultViewModel));
        }
        public ActionResult RectangularSection()
        {
            ViewBag.ShowResults = false;
            ViewBag.InputErrors = false;
            var viewModel = new RectangularSectionViewModel
            {
                Height = "10",
                Width  = "4"
            };

            ViewBag.HasResult = false;
            return(View(viewModel));
        }
Exemple #3
0
 public DeleteCommand(RectangularSectionViewModel viewModel)
 {
     _ViewModel = viewModel;
 }
Exemple #4
0
 public RectangularSectionView()
 {
     InitializeComponent();
     DataContext = new RectangularSectionViewModel();
 }
 public ClearListItemsCommand(RectangularSectionViewModel viewModel)
 {
     _ViewModel = viewModel;
 }
Exemple #6
0
 public CalculateAndAddCommand(RectangularSectionViewModel viewModel)
 {
     _ViewModel = viewModel;
 }