public MainWindow_View(MainWindow_ViewModel viewModel = null)
        {
            InitializeComponent();
            DataContext = viewModel ?? new MainWindow_ViewModel();

            Closed += MainWindow_View_Closed;
        }
Example #2
0
        //public string FilmName { get; set; }
        //public Kino Kinos { get; set; } = Kino.getInstance();
        //public ObservableCollection<Film> CurrentFilm { get; set; }
        public MainWindow()
        {
            InitializeComponent();
            MainWindow_ViewModel mainWindow_ViewModel = new MainWindow_ViewModel();

            DataContext = mainWindow_ViewModel;
        }
        public SettingsWindow(MainWindow_ViewModel main)
        {
            InitializeComponent();
            DataContext = new SettingsWindow_ViewModel(main);

            this.Top  = Screen.PrimaryScreen.Bounds.Height * 0.5 - 171;
            this.Left = Screen.PrimaryScreen.Bounds.Width * 0.45 - 287;
        }
        public MainWindow()
        {
            InitializeComponent();

            DataContext = new MainWindow_ViewModel(this);
        }
 public TankCommand(MainWindow_ViewModel newMainViewModel, PetrolPump_ViewModel newPetrolPumpViewModel)
 {
     mainViewModel       = newMainViewModel;
     petrolPumpViewModel = newPetrolPumpViewModel;
 }
 public MainWindow(MainWindow_ViewModel model)
     : base(model)
 {
     InitializeComponent();
 }
Example #7
0
        public HellGirl(MainWindow_ViewModel mainWindow_ViewModel, GirlSetting girlSetting)
        {
            InitializeComponent();

            DataContext = new HellGirl_ViewModel(this, mainWindow_ViewModel, girlSetting);
        }