Ejemplo n.º 1
0
 public MediaProviderSupport(IAppSupport aAppSupport, IViewSupport aViewSupport, IPlaylistSupport aPlaylistSupport, IArtworkCache aArtworkCache)
 {
     iAppSupport      = aAppSupport;
     iViewSupport     = aViewSupport;
     iPlaylistSupport = aPlaylistSupport;
     iArtworkCache    = aArtworkCache;
 }
Ejemplo n.º 2
0
        public FormStatus(Form aForm, IArtworkCache aArtworkCache, IViewSupport aViewSupport)
        {
            iViewSupport = aViewSupport;

            iMutex = new Mutex(false);

            iPlaylist = new List <MrItem>();
            iTrack    = null;

            iPresets     = new List <MrItem>();
            iPresetIndex = -1;

            iStartIndex = 0;
            iOffset     = 0;
            iIndex      = -1;

            iTicker                = new Ticker();
            iScrollTimer           = new Linn.Timer();
            iScrollTimer.AutoReset = false;
            iScrollTimer.Interval  = 20;
            iScrollTimer.Elapsed  += ScrollTimerElapsed;

            iTimer           = new Linn.Timer();
            iTimer.AutoReset = false;
            iTimer.Interval  = 500;
            iTimer.Elapsed  += TimerElapsed;

            iArtworkCache = aArtworkCache;
            iArtworkCache.EventUpdated += EventUpdated;

            kImageNoArtwork          = Linn.Kinsky.Properties.Resources.NoAlbumArt;
            kImageReflectedNoArtwork = iArtworkCache.ReflectImage(kImageNoArtwork);

            iArtwork          = kImageNoArtwork;
            iReflectedArtwork = kImageReflectedNoArtwork;

            iMicroFont  = new Font(iViewSupport.FontSmall.FontFamily, ClientSize.Height / 50.0f, FontStyle.Regular);
            iSmallFont  = new Font(iViewSupport.FontSmall.FontFamily, ClientSize.Height / 30.0f, FontStyle.Regular);
            iMediumFont = new Font(iViewSupport.FontMedium.FontFamily, ClientSize.Height / 25.0f, FontStyle.Regular);
            iLargeFont  = new Font(iViewSupport.FontLarge.FontFamily, ClientSize.Height / 15.0f, FontStyle.Bold);

            InitializeComponent();

            kItemWidth = ClientSize.Width;
        }
Ejemplo n.º 3
0
        public FormReceivers(FormKinskyDesktop aForm, ReceiverSourceList aSourceList, IViewSupport aViewSupport)
        {
            iTimer  = new System.Threading.Timer(TimerElapsed);
            iTicker = new Ticker();

            iForm = aForm;

            iSourceList = aSourceList;
            iSourceList.EventReceiverSourceAdded   += ReceiverSourceAdded;
            iSourceList.EventReceiverSourceRemoved += ReceiverSourceRemoved;
            iSourceList.EventReceiverSourceChanged += ReceiverSourceChanged;

            iViewSupport = aViewSupport;
            iViewSupport.EventSupportChanged += ViewSupportChanged;

            InitializeComponent();

            ViewSupportChanged(null, EventArgs.Empty);
        }