private void UDSRunIsDone(RacksPlanViewModel zmv) { foreach (SchemeBaseView lv in Views) { RackSchemeView rsv = (RackSchemeView)lv; rsv.UpdateUDS(); } }
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); } }
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(); }
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); }
private void UDSListIsLoaded(RacksPlanViewModel rvm) { hlv.ItemsSource = Model.UserDefinedSelectionViewModels; }
private void Reshape(RacksPlanViewModel rsmv) { Reshape(); }