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