Beispiel #1
0
        private void InitNofifyIcon()
        {
            notifyIcon = new ExtendedNotifyIcon(500);
            notifyIcon.MouseClick += new ExtendedNotifyIcon.MouseClickHandler(extendedNotifyIcon_ShowWindow);
            notifyIcon.MouseLeave += new ExtendedNotifyIcon.MouseLeaveHandler(extendedNotifyIcon_HideWindow);
            mainWindow.MouseMove += new MouseEventHandler(window_OnMouseMove);
            mainWindow.MouseLeave += new MouseEventHandler(window_OnMouseLeave);
            notifyIcon_SetNotifyIcon();

            ((INotifyPropertyChanged)SyncFolders).PropertyChanged += delegate(object sender, PropertyChangedEventArgs e)
            {
                if ("IsSyncing".Equals(e.PropertyName))
                {
                    notifyIcon.Animation.Enabled = SyncFolders.IsSyncing;
                }
            };

            //notifyIcon.Animation.Start();
        }