Exemple #1
0
        public SeatChoiceView()
        {
            InitializeComponent();

            if (System.ComponentModel.DesignerProperties.IsInDesignTool == true)
            {
                ViewModel = new SeatChoiceClinetViewModel();
            }
            else
            {
                var locator = App.Current.Resources["Locator"] as ViewModelLocator;
                ViewModel = locator.SeatChoiceClientVM;
            }
        }
Exemple #2
0
 public ViewModelLocator()
 {
     SeatChoiceClientVM = new SeatChoiceClinetViewModel();
 }