Beispiel #1
0
        protected virtual void OnWindowCreated(object sender, OpenCloseEventArgs e)
        {
            AWindow awin = WindowHelper.GetAWINDOW(e.HWND);

            WindowHelper.windowList.Add(awin);

            CurrentLog.Add(LogEntryType.WindowsEvent, "Window Created: " + e.Title + ", (" + e.HWND.ToString() + ")");
        }
Beispiel #2
0
        protected virtual void OnWindowDestroyed(object sender, OpenCloseEventArgs e)
        {
            AWindow awin = WindowHelper.windowList.FirstOrDefault(awindow => awindow.Hwnd == e.HWND);

            if (awin != null)
            {
                WindowHelper.windowList.Remove(awin);
                CurrentLog.Add(LogEntryType.WindowsEvent, "Window Destroyed: " + e.Title + ", (" + e.HWND.ToString() + ")");
            }
        }