コード例 #1
0
 private void UDSRunIsDone(RacksPlanViewModel zmv)
 {
     foreach (SchemeBaseView lv in Views)
     {
         RackSchemeView rsv = (RackSchemeView)lv;
         rsv.UpdateUDS();
     }
 }
コード例 #2
0
 private void Rebuild(RacksPlanViewModel rsmv)
 {
     SelectedViews.Clear();
     abslayout.Children.Clear();
     Views.Clear();
     foreach (RackViewModel rvm in Model.RackViewModels)
     {
         RackSchemeView rsv = new RackSchemeView(rvm);
         AbsoluteLayout.SetLayoutBounds(rsv, new Rectangle(rvm.ViewLeft, rvm.ViewTop, rvm.ViewWidth, rvm.ViewHeight));
         abslayout.Children.Add(rsv);
         Views.Add(rsv);
     }
 }
コード例 #3
0
        public RacksSchemePage(RacksPlanViewModel model) : base(model)
        {
            Model = model;
            InitializeComponent();

            abslayout.GestureRecognizers.Add(TapGesture);
            abslayout.GestureRecognizers.Add(PanGesture);

            Title = AppResources.ZoneSchemePage_Title + " " + Global.CurrentLocationName + " | " + AppResources.RackSchemePage_Title + " - " + Model.Zone.Description;

            Model.IsEditMode = false;
            Model.SetEditModeForItems(Model.IsEditMode);
            Menu();
        }
コード例 #4
0
        public RacksSchemePage(RacksPlanViewModel model) : base(model)
        {
            Model = model;
            InitializeComponent();

            abslayout.GestureRecognizers.Add(TapGesture);
            abslayout.GestureRecognizers.Add(PanGesture);

            Title = AppResources.ZoneSchemePage_Title + " " + Global.CurrentLocationName + " | " + AppResources.RackSchemePage_Title + " - " + Model.Zone.Description;

            MessagingCenter.Subscribe <RacksPlanViewModel>(this, "Rebuild", Rebuild);
            MessagingCenter.Subscribe <RacksPlanViewModel>(this, "Reshape", Reshape);
            MessagingCenter.Subscribe <RacksPlanViewModel>(this, "UDSRunIsDone", UDSRunIsDone);
            MessagingCenter.Subscribe <RacksPlanViewModel>(this, "UDSListIsLoaded", UDSListIsLoaded);

            Model.IsEditMode = false;
            Model.SetEditModeForItems(Model.IsEditMode);
        }
コード例 #5
0
 private void UDSListIsLoaded(RacksPlanViewModel rvm)
 {
     hlv.ItemsSource = Model.UserDefinedSelectionViewModels;
 }
コード例 #6
0
 private void Reshape(RacksPlanViewModel rsmv)
 {
     Reshape();
 }