private void CheckNetDrive(bool popup) { string newPath = Util.Net.GetUNCPath(destinationPathTxt.Text); if (newPath != destinationPathTxt.Text) { destinationPathTxt.Text = newPath; } setConnectionCredentials.Enabled = (Net.IsUNCPath(newPath)); if ((Net.IsUNCPath(newPath)) && (!_netWarningDone) && (popup)) { MessageBox.Show(Localise.GetPhrase("MCEBuddy does NOT use the currently logged in user to connect to network shares, it uses its own service account. Be sure to specify the connection user information [MCEBuddy with a key icon]"), Localise.GetPhrase("Connection Reminder"), MessageBoxButtons.OK, MessageBoxIcon.Warning); CredentialsForm connectionCredentialsForm = new CredentialsForm(_cjo); // Force the user to enter atleast default credentials connectionCredentialsForm.ShowDialog(); _netWarningDone = true; } }
private void setConnectionCredentials_Click(object sender, EventArgs e) { CredentialsForm connectionCredentialsForm = new CredentialsForm(_mjo); connectionCredentialsForm.ShowDialog(); }
private void CheckNetDrive(bool popup) { string newPath = Util.Net.GetUNCPath(searchPathTxt.Text); if (newPath != searchPathTxt.Text) searchPathTxt.Text = newPath; setConnectionCredentials.Enabled = (Net.IsUNCPath(newPath)); if ((Net.IsUNCPath(newPath)) && (!_netWarningDone) && popup) { MessageBox.Show( Localise.GetPhrase("MCEBuddy does NOT use the currently logged in user to connect to network shares, it uses its own service account. Be sure to specify the connection user information [MCEBuddy with a key icon]"), Localise.GetPhrase("Connection Reminder"), MessageBoxButtons.OK, MessageBoxIcon.Warning); CredentialsForm connectionCredentialsForm = new CredentialsForm(_mjo); // Force the user to enter atleast default credentials connectionCredentialsForm.ShowDialog(); _netWarningDone = true; } }
private void SelectFolderCmd_Click(object sender, EventArgs e) { CredentialsForm connectionCredentialsForm = new CredentialsForm(_go); // Enter network credentials connectionCredentialsForm.ShowDialog(); }