private void SoundCloudCredentials_Click(object sender, EventArgs e) { try { CheckCloseWindows(); AppendToLog("Starting SoundCloud credentials set..."); _scw = new SoundCloudWindow(); //scw.Closed += SoundCloudWindow_CredentialsSet; _scw.CredentialsSet += SoundCloudWindow_CredentialsSet; _scw.Show(this); } catch (Exception ex) { Log.Error(ex.Message, ex); } }
private void CheckCloseWindows() { try { if (_fbw != null) { _fbw.Close(); _fbw = null; } if (_scw != null) { _scw.Close(); _scw = null; } } catch (Exception ex) { Log.Error(ex.Message, ex); } }
private void SoundCloudCredentials_Click(object sender, EventArgs e) { try { CheckCloseWindows(); AppendToLog("Starting SoundCloud credentials set..."); _scw = new SoundCloudWindow(); //scw.Closed += SoundCloudWindow_CredentialsSet; _scw.CredentialsSet += SoundCloudWindow_CredentialsSet; _scw.Show(this); } catch (Exception ex) { Log.Error(ex.Message, ex); } }
private void CheckCloseWindows() { try { if (_fbw != null) { _fbw.Close(); _fbw = null; } if (_scw != null) { _scw.Close(); _scw = null; } } catch (Exception ex) { Log.Error(ex.Message, ex); } }