public Task(Window window) { InitializeComponent(); this.window = window; settings = SharedSettings.GetInstance(); Loaded += UpdateThumb; SizeChanged += UpdateThumb; SizeChanged += TaskSizeChanged; imgIcon16.Source = window.ProgramIcon; imgIcon32.Source = window.ProgramIcon; taskLabel.Text = window.Title; window.TitleChanged += WindowTitleChanged; SetColors(); settings.ColorsUpdated += SettingsColorsUpdated; }
private bool Callback(IntPtr hwnd, int lParam) { if (IsTaskBarWindow(hwnd)) { var w = new Window(hwnd); Windows.Add(w); } return true; //continue enumeration }