Esempio n. 1
0
        private void bPickFolders_Click(object sender, EventArgs e)
        {
            if (frmCapture._activeAccount != cAccounts.SelectedIndex)
            {
                Client.Disconnect();
                // Switch to profile at the index of the specified account
                Common.Profile = new Profile();
                Common.Profile = Settings.Profiles[cAccounts.SelectedIndex];

                Client.TryConnect();
            }

            // Show the Pick-Folders dialog (slightly modified Add-Account dialog)
            var fAccount = new frmAddAccount();

            frmAddAccount._pickingFolders = true;
            fAccount.ShowDialog();

            // Reset _pickingFolders
            frmAddAccount._pickingFolders = false;
            // Refresh list of Folders
            RefreshFolders();

            if (frmCapture._activeAccount != cAccounts.SelectedIndex)
            {
                Client.Disconnect();
                // Switch back to the active profile
                Common.Profile = new Profile();
                Common.Profile = Settings.Profiles[frmCapture._activeAccount];

                Client.CheckAccount();
            }
        }
Esempio n. 2
0
        private async void bPickFolders_Click(object sender, EventArgs e)
        {
            if (frmCapture._activeAccount != cAccounts.SelectedIndex)
            {
                Client.Disconnect();
                // Switch to profile at the index of the specified account
                Common.Profile = new Profile();
                Common.Profile = Settings.Profiles[cAccounts.SelectedIndex];

                await Client.TryConnect();
            }

            // Show the Pick-Folders dialog (slightly modified Add-Account dialog)
            var fAccount = new frmAddAccount();

            frmAddAccount._pickingFolders = true;
            fAccount.ShowDialog();

            // Reset _pickingFolders
            frmAddAccount._pickingFolders = false;
            // Refresh list of Folders
            RefreshFolders();

            if (frmCapture._activeAccount != cAccounts.SelectedIndex)
            {
                Client.Disconnect();
                // Switch back to the active profile
                Common.Profile = new Profile();
                Common.Profile = Settings.Profiles[frmCapture._activeAccount];

                await Client.CheckAccount();
            }
        }
Esempio n. 3
0
 private void bAddAccount_Click(object sender, EventArgs e)
 {
     // Show the Add-Account dialog
     var fAccount = new frmAddAccount();
     fAccount.ShowDialog();
     // Refresh the list of accounts
     RefreshAccounts();
     // Refresh folders and image file format/length fields
     RefreshSettings();
 }
Esempio n. 4
0
        private void bAddAccount_Click(object sender, EventArgs e)
        {
            // Show the Add-Account dialog
            var fAccount = new frmAddAccount();

            fAccount.ShowDialog();
            // Refresh the list of accounts
            RefreshAccounts();
            // Refresh folders and image file format/length fields
            RefreshSettings();
        }