private void FTPAccountCloneButton_Click(object sender, EventArgs e)
        {
            FTPAccount src = ucFTPAccounts.AccountsList.Items[ucFTPAccounts.AccountsList.SelectedIndex] as FTPAccount;

            Config.FTPAccountList2.Add(src.Clone());
            ucFTPAccounts.AccountsList.SelectedIndex = ucFTPAccounts.AccountsList.Items.Count - 1;
            FTPSetup(Config.FTPAccountList2);
        }
예제 #2
0
        private void FTPAccountDuplicateButton_Click(object sender, EventArgs e)
        {
            FTPAccount src   = (FTPAccount)ucFTPAccounts.lbAccounts.Items[ucFTPAccounts.lbAccounts.SelectedIndex];
            FTPAccount clone = (FTPAccount)src.Clone();

            Config.FTPAccountList.Add(clone);
            ucFTPAccounts.AddItem(clone);
            FTPSetup(Config.FTPAccountList);
        }