示例#1
0
        public MainWindow()
        {
            viewModel   = new ViewModels.MainWindowModel();
            DataContext = viewModel;


            InitializeComponent();

            Closing += stop;
        }
示例#2
0
        public PlotWindow(int key)
        {
            this.key    = key;
            this.Title  = "Plot for ID: " + Convert.ToString(key, 16);
            viewModel   = new ViewModels.MainWindowModel();
            DataContext = viewModel;


            InitializeComponent();



            Plot1.Model = viewModel.PlotModel;
        }