Fix Twitter ui

This commit is contained in:
Jaex 2014-04-30 13:11:33 +03:00
parent 47c4a7a54e
commit 41905669f0

View file

@ -505,6 +505,7 @@ private void CreateUserControlEvents()
ucTwitterAccounts.btnDuplicate.Click += TwitterAccountDuplicateButton_Click;
ucTwitterAccounts.btnTest.Text = "Authorize";
ucTwitterAccounts.btnTest.Click += TwitterAccountAuthButton_Click;
ucTwitterAccounts.lbAccounts.SelectedIndexChanged += TwitterAccountSelectedIndexChanged;
}
#region FTP
@ -571,10 +572,7 @@ private void FTPAccountDuplicateButton_Click(object sender, EventArgs e)
private void FTPAccountTestButton_Click(object sender, EventArgs e)
{
if (CheckFTPAccounts())
{
TestFTPAccount(Config.FTPAccountList[ucFTPAccounts.lbAccounts.SelectedIndex], false);
}
TestFTPAccount(Config.FTPAccountList[ucFTPAccounts.lbAccounts.SelectedIndex], false);
}
private void FtpAccountSettingsGrid_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
@ -692,6 +690,14 @@ private void TwitterAccountAuthButton_Click(object sender, EventArgs e)
}
}
private void TwitterAccountSelectedIndexChanged(object sender, EventArgs e)
{
if (ucTwitterAccounts.lbAccounts.SelectedIndex > -1)
{
Config.TwitterSelectedAccount = ucTwitterAccounts.lbAccounts.SelectedIndex;
}
}
#endregion Twitter
}
}