Beispiel #1
0
        public IExtensionUIController GetUIController()
        {
            var window = new RunningWindow
            {
                Owner = App.Current.MainWindow
            };

            return(window.ViewModel);
        }
Beispiel #2
0
 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);
        }