コード例 #1
0
ファイル: ConfigForm.cs プロジェクト: MrSm1th/lastfm
        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;
        }
コード例 #2
0
ファイル: Plugin.cs プロジェクト: MrSm1th/lastfm
        public override void Initialize()
        {
            scrobblingSettings = ScrobblingSettings.GetSettings();

            Logger.LogMessage("Settings loaded");

            scrobbler = new Scrobbler(scrobblingSettings);

            SetEventHandlers();

            Logger.LogMessage("Plugin initialized");
        }