public LegPartViewModel(NavigationController controller, LegSide side) : base(controller)
        {
            //IsRedactVis = Visibility.Collapsed;
            //ISAddVis = Visibility.Visible;
            Initialization();
            LegSections            = new ObservableCollection <LegSectionViewModel>();
            LostFocusOnProtiagnosy = new DelegateCommand <object>(
                (sender) =>
            {
                if (string.IsNullOrWhiteSpace(((TextBox)sender).Text))
                {
                    ((TextBox)sender).Text = "0";
                    FF_length = 0;
                }
            }
                ); ClickOnProtiagnosy = new DelegateCommand <object>(
                (sender) =>
            {
                if (((TextBox)sender).Text == "0")
                {
                    ((TextBox)sender).Text = "";
                }
            }
                );

            CurrentLegSide = side;
            //MessageBus.Default.Subscribe("LegPart", Handler);

            Controller = controller;
        }
Exemplo n.º 2
0
        public LegPartViewModel GetLegPart <T>(LegSide side)
        {
            var target1 = _legViewModels.Where(e => e.GetType() == typeof(T));
            var target2 = target1.Where(e => (e).CurrentLegSide == side);
            var target3 = target2.FirstOrDefault();

            return(target3);
        }
Exemplo n.º 3
0
        public void NavigateTo <T>(LegSide side)
        {
            var target = GetLegPart <T>(side);

            if (target != null)
            {
                LegViewModel = target;
                NavigateTo <LegPartViewModel>();
            }
        }
Exemplo n.º 4
0
 public SFSViewModel(NavigationController controller, LegSide side) : base(controller, side)
 {
     Initialize();
 }
 public HipPerforateViewModel(NavigationController controller, LegSide side) : base(controller, side)
 {
     Initialize();
 }