Beispiel #1
0
        public ConfigForm(ScrobblingSettings s)
        {
            InitializeComponent();

            settings = s;
            settingsBindingSource.DataSource = s;
            UpdateAuthStatusText(!string.IsNullOrEmpty(s.SessionKey) ? AuthStatus.LoggedIn : AuthStatus.NotLoggedIn);
            LfmServiceProxy.LastfmErrorOccured += HandleAuthError;
            LfmServiceProxy.NetworkErrorOccured += HandleAuthError;
            LfmServiceProxy.ErrorOccured += LfmServiceProxy_ErrorOccured;
        }
Beispiel #2
0
        public override void Initialize()
        {
            scrobblingSettings = ScrobblingSettings.GetSettings();

            Logger.LogMessage("Settings loaded");

            scrobbler = new Scrobbler(scrobblingSettings);

            SetEventHandlers();

            Logger.LogMessage("Plugin initialized");
        }