protected override void OnClosed(EventArgs e) { base.OnClosed(e); DCCAssetExporterVM vm = DataContext as DCCAssetExporterVM; vm.Close(); }
void SetupDataContext(Process parent) { DCCAssetExporterVM vm = new DCCAssetExporterVM(); DataContext = vm; if (vm.CloseAction == null) { vm.CloseAction = new Action(Close); } vm.ParentProcess = parent; }
void window_Deactivated(object sender, EventArgs e) { DCCAssetExporterVM vm = DataContext as DCCAssetExporterVM; vm.WindowsDeactivatedCall(); }