Ejemplo n.º 1
0
        public MainWindow_View(MainWindow_ViewModel viewModel = null)
        {
            InitializeComponent();
            DataContext = viewModel ?? new MainWindow_ViewModel();

            Closed += MainWindow_View_Closed;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
        public MainWindow()
        {
            InitializeComponent();

            DataContext = new MainWindow_ViewModel(this);
        }
Ejemplo n.º 5
0
 public TankCommand(MainWindow_ViewModel newMainViewModel, PetrolPump_ViewModel newPetrolPumpViewModel)
 {
     mainViewModel       = newMainViewModel;
     petrolPumpViewModel = newPetrolPumpViewModel;
 }
Ejemplo n.º 6
0
 public MainWindow(MainWindow_ViewModel model)
     : base(model)
 {
     InitializeComponent();
 }
Ejemplo n.º 7
0
        public HellGirl(MainWindow_ViewModel mainWindow_ViewModel, GirlSetting girlSetting)
        {
            InitializeComponent();

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