示例#1
0
        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;
        }
示例#2
0
        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;
        }
示例#3
0
 private bool Callback(IntPtr hwnd, int lParam)
 {
     if (IsTaskBarWindow(hwnd))
     {
         var w = new Window(hwnd);
         Windows.Add(w);
     }
     return true; //continue enumeration
 }