public AWindow(TempViewModel tempVM) { InitializeComponent(); Loaded += AWindow_Loaded; root = Environment.CurrentDirectory; Topmost = true; flexFile = System.IO.Path.Combine(root, Const.FlexFile); DataContext = tempVM; tempVM.Dispatcher = Dispatcher; //tempVM.PropertyChanged += tempVM_PropertyChanged; }
public MainViewModel() { TempVM = new TempViewModel(this); }