예제 #1
0
        private void Store_Added(object sender, WindowInfoEventArgs e)
        {
            this.Invoke(() =>
            {
                WindowListViewItem item = new WindowListViewItem(e.Window);
                this.SetWindowImageList(e.Window, false);

                if (!this.hiddenWindows.Items.ContainsKey(e.Window.Key))
                {
                    this.hiddenWindows.Items.Add(item);
                    e.Window.ApplicationExited += this.RemoveClosedApplication;
                }
                this.HiddenWindowsChanged?.Invoke(this, new EventArgs());
            });
        }
예제 #2
0
        private void Store_Added(object sender, WindowInfoEventArgs e)
        {
            this.DoInvoke(() =>
            {
                WindowListViewItem item = new WindowListViewItem(e.Window);
                this.SetWindowImageList(e.Window, false);

                if (!this.hiddenWindows.Items.ContainsKey(e.Window.Key))
                {
                    this.hiddenWindows.Items.Add(item);
                    e.Window.ApplicationExited += this.RemoveClosedApplication;
                }

                this.HiddenWindowsChanged?.Invoke(this, new EventArgs());
            });
        }