예제 #1
0
        public MainWindow()
        {
            InitializeComponent();

            view_model = new ViewModel(new Model(1, 2));
            DataContext = view_model;
        }
예제 #2
0
        public MainWindow()
        {
            InitializeComponent();

            m = new Model(1, 2);
            vm = new ViewModel(m);

            DataContext = vm;
        }