Пример #1
0
 private void FacebookCredentialsButton_Click(object sender, EventArgs e)
 {
     try
     {
         CheckCloseWindows();
         AppendToLog("Starting Facebook credentials set...");
         _fbw = new FacebookWindow();
         //scw.Closed += FacebookWindow_CredentialsSet;
         _fbw.CredentialsSet += FacebookWindow_CredentialsSet;
         _fbw.Show(this);
     }
     catch (Exception ex)
     {
         Log.Error(ex.Message, ex);
     }
 }
Пример #2
0
        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);
            }
        }
Пример #3
0
 private void FacebookCredentialsButton_Click(object sender, EventArgs e)
 {
     try
     {
         CheckCloseWindows();
         AppendToLog("Starting Facebook credentials set...");
         _fbw = new FacebookWindow();
         //scw.Closed += FacebookWindow_CredentialsSet;
         _fbw.CredentialsSet += FacebookWindow_CredentialsSet;
         _fbw.Show(this);
     }
     catch (Exception ex)
     {
         Log.Error(ex.Message, ex);
     }
 }
Пример #4
0
        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);
            }
        }