예제 #1
0
 public CrossSectionsPage(RodModelVM rodModelVM)
 {
     InitializeComponent();
     this.rodModelVM = rodModelVM;
     InitializeToolbar();
     SectionsListView.ItemsSource = SectionList;
 }
예제 #2
0
 public ResultsPage(RodModelVM rodModelVM)
 {
     InitializeComponent();
     ModelVM = rodModelVM;
     grids   = new Grid[4] {
         DisplacementsGrid, MomentsGrid, ShearForceGrid, AxialForceGrid
     };
 }
        private void InitModelAndSurface()
        {
            rodModelVM = new RodModelVM(new RodModel(), ModelSurface);

            ModelSurface.EnableTouchEvents = true;
            ModelSurface.Touch            += OnModelSurfaceTouch;

            rodModelVM.surface.OnComponentSelected += ComponentSelected;
            rodModelVM.surface.OnActionNone        += NoAction;
            rodModelVM.surface.OnVisualStates      += CheckVisualStates;
            rodModelVM.surface.OnMirrorConfirm     += MirrorConfirm;
        }
 public ModelViewSurface(RodModelVM viewModel, SKCanvasView view)
 {
     RModelView = view;
     modelVM    = viewModel;
     RModelView.PaintSurface += OnPaintSurface;
     RModelView.SizeChanged  += OnViewSizeChanged;
     ModelViewFragment        = new IssoPoint2D()
     {
         X = 0, Y = 0
     };
     StartPt = new IssoPoint2D()
     {
         X = 0, Y = 0
     };
     EndPt = new IssoPoint2D()
     {
         X = 0, Y = 0
     };
     Grid = new SurfaceGrid();
 }
 public NodesPage(RodModelVM rodModelVM)
 {
     InitializeComponent();
     Model          = rodModelVM;
     BindingContext = Model;
 }
 public ModelSavePage(RodModelVM rodModelVM)
 {
     InitializeComponent();
     saveModel = rodModelVM;
 }
 public ElementsPage(RodModelVM rodModelVM)
 {
     InitializeComponent();
     this.rodModelVM = rodModelVM;
     BindingContext  = this.rodModelVM;
 }