public IExtensionUIController GetUIController() { var window = new RunningWindow { Owner = App.Current.MainWindow }; return(window.ViewModel); }
public static Process GetCurrentWorkingProcess() { try { return(Process.GetProcesses().FirstOrDefault(p => p.MainWindowHandle == LowLevel.GetForegroundWindow())); } catch (System.ComponentModel.Win32Exception e) { RunningWindow.Log(e.Message + " " + e.NativeErrorCode + " " + e.Source + " " + e.StackTrace); } return(null); }
public IExtensionUIController GetUIController() { var window = new RunningWindow(); return(window.ViewModel); }