Ejemplo n.º 1
0
        public ItemView()
        {
            this.InitializeComponent();
            ItemViewViewModel vm = this.DataContext as ItemViewViewModel;

            vm.MainContent = this.MainContent;
        }
 public ItemWindow(NotifyMain notifyMain, ObservableCollection <ObservableCollection <Solution> > listOfSolutions,
                   Settings settings, Solution CurrentSolutionGrid, bool addUpdate = false)
 {
     InitializeComponent();
     DataContext = new ItemViewViewModel(
         listOfSolutions, settings, CurrentSolutionGrid, addUpdate);
     ((ItemViewViewModel)DataContext).Notify += notifyMain;
 }
Ejemplo n.º 3
0
        public ItemViewControl(string key, Item item)
        {
            DataContext = new ItemViewViewModel(
                key,
                item,
                new WorldObjectLoader(),
                new TileLoader(),
                new ItemsLoader());

            InitializeComponent();
        }