Skip to content
This repository has been archived by the owner on Mar 20, 2022. It is now read-only.

Commit

Permalink
Removed extraneous namespace specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkWanderer committed Jan 6, 2019
1 parent 6d671e8 commit 228110d
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 61 deletions.
2 changes: 1 addition & 1 deletion Controller/SavedGamesDirectoryHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ private static string SDirectory
{
get
{
int result = UnsafeNativeMethods.SHGetKnownFolderPath(new Guid("4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4"), 0, new IntPtr(0), out IntPtr path);
int result = UnsafeNativeMethods.SHGetKnownFolderPath(new Guid("4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4"), 0, new IntPtr(0), out var path);
if (result >= 0)
{
return Marshal.PtrToStringUni(path) + @"\Frontier Developments\Elite Dangerous";
Expand Down
30 changes: 15 additions & 15 deletions EliteLogAgent/Settings/GeneralSettingsControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ private void CheckboxAutostartApplication_CheckedChanged(object sender, EventArg
/// </summary>
private void InitializeComponent()
{
cmdrNameLabel = new System.Windows.Forms.Label();
cmdrNameTextBox = new System.Windows.Forms.TextBox();
uploadLatestDataButton = new System.Windows.Forms.Button();
autodetectCmdrNameButton = new System.Windows.Forms.Button();
checkboxAutostartApplication = new System.Windows.Forms.CheckBox();
reportErrorsCheckbox = new System.Windows.Forms.CheckBox();
logLevelLabel = new System.Windows.Forms.Label();
logLevelComboBox = new System.Windows.Forms.ComboBox();
progressBarUploadLatest = new System.Windows.Forms.ProgressBar();
cmdrNameLabel = new Label();
cmdrNameTextBox = new TextBox();
uploadLatestDataButton = new Button();
autodetectCmdrNameButton = new Button();
checkboxAutostartApplication = new CheckBox();
reportErrorsCheckbox = new CheckBox();
logLevelLabel = new Label();
logLevelComboBox = new ComboBox();
progressBarUploadLatest = new ProgressBar();
SuspendLayout();

// cmdrNameLabel
Expand All @@ -159,7 +159,7 @@ private void InitializeComponent()
cmdrNameTextBox.TabIndex = 4;
cmdrNameTextBox.Text = "Commander Name";
cmdrNameTextBox.TextAlign = HorizontalAlignment.Center;
cmdrNameTextBox.TextChanged += new System.EventHandler(CmdrNameTextBox_TextChanged);
cmdrNameTextBox.TextChanged += new EventHandler(CmdrNameTextBox_TextChanged);

// uploadLatestDataButton
uploadLatestDataButton.Anchor = AnchorStyles.Top | AnchorStyles.Left
Expand All @@ -170,7 +170,7 @@ private void InitializeComponent()
uploadLatestDataButton.TabIndex = 3;
uploadLatestDataButton.Text = "Upload last 5 files via all plugins";
uploadLatestDataButton.UseVisualStyleBackColor = true;
uploadLatestDataButton.Click += new System.EventHandler(UploadLatestDataButton_Click);
uploadLatestDataButton.Click += new EventHandler(UploadLatestDataButton_Click);

// autodetectCmdrNameButton
autodetectCmdrNameButton.Anchor = AnchorStyles.Top | AnchorStyles.Left
Expand All @@ -181,7 +181,7 @@ private void InitializeComponent()
autodetectCmdrNameButton.TabIndex = 6;
autodetectCmdrNameButton.Text = "Autodetect CMDR Name";
autodetectCmdrNameButton.UseVisualStyleBackColor = true;
autodetectCmdrNameButton.Click += new System.EventHandler(AutodetectCmdrNameButton_Click);
autodetectCmdrNameButton.Click += new EventHandler(AutodetectCmdrNameButton_Click);

// checkboxAutostartApplication
checkboxAutostartApplication.AutoSize = true;
Expand All @@ -191,7 +191,7 @@ private void InitializeComponent()
checkboxAutostartApplication.TabIndex = 7;
checkboxAutostartApplication.Text = "Autorun agent on sign-in";
checkboxAutostartApplication.UseVisualStyleBackColor = true;
checkboxAutostartApplication.CheckedChanged += new System.EventHandler(CheckboxAutostartApplication_CheckedChanged);
checkboxAutostartApplication.CheckedChanged += new EventHandler(CheckboxAutostartApplication_CheckedChanged);

// reportErrorsCheckbox
reportErrorsCheckbox.AutoSize = true;
Expand All @@ -201,7 +201,7 @@ private void InitializeComponent()
reportErrorsCheckbox.TabIndex = 8;
reportErrorsCheckbox.Text = "Report errors to Cloud service";
reportErrorsCheckbox.UseVisualStyleBackColor = true;
reportErrorsCheckbox.CheckedChanged += new System.EventHandler(ReportErrorsCheckbox_CheckedChanged);
reportErrorsCheckbox.CheckedChanged += new EventHandler(ReportErrorsCheckbox_CheckedChanged);

// logLevelLabel
logLevelLabel.AutoSize = true;
Expand All @@ -218,7 +218,7 @@ private void InitializeComponent()
logLevelComboBox.Name = "logLevelComboBox";
logLevelComboBox.Size = new System.Drawing.Size(149, 24);
logLevelComboBox.TabIndex = 10;
logLevelComboBox.SelectedIndexChanged += new System.EventHandler(LogLevelComboBox_SelectedIndexChanged);
logLevelComboBox.SelectedIndexChanged += new EventHandler(LogLevelComboBox_SelectedIndexChanged);

// progressBarUploadLatest
progressBarUploadLatest.Anchor = AnchorStyles.Top | AnchorStyles.Left
Expand Down
46 changes: 23 additions & 23 deletions Plugin.EDSM/EdsmSettingsControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,70 +58,70 @@ internal EdsmSettings ActualSettings

private void InitializeComponent()
{
button1 = new System.Windows.Forms.Button();
edsmApiKeyTextBox = new System.Windows.Forms.TextBox();
testCredentialsButton = new System.Windows.Forms.Button();
credentialsStatusLabel = new System.Windows.Forms.Label();
apiKeyValidatedCheckbox = new System.Windows.Forms.CheckBox();
apiKeyLabel = new System.Windows.Forms.LinkLabel();
button1 = new Button();
edsmApiKeyTextBox = new TextBox();
testCredentialsButton = new Button();
credentialsStatusLabel = new Label();
apiKeyValidatedCheckbox = new CheckBox();
apiKeyLabel = new LinkLabel();
SuspendLayout();

// button1
button1.Location = new System.Drawing.Point(0, 0);
button1.Location = new Point(0, 0);
button1.Name = "button1";
button1.Size = new System.Drawing.Size(75, 23);
button1.Size = new Size(75, 23);
button1.TabIndex = 0;
button1.Text = "button1";
button1.UseVisualStyleBackColor = true;

// edsmApiKeyTextBox
edsmApiKeyTextBox.Anchor = AnchorStyles.Top | AnchorStyles.Left
| AnchorStyles.Right;
edsmApiKeyTextBox.Location = new System.Drawing.Point(87, 3);
edsmApiKeyTextBox.Location = new Point(87, 3);
edsmApiKeyTextBox.Name = "edsmApiKeyTextBox";
edsmApiKeyTextBox.Size = new System.Drawing.Size(284, 20);
edsmApiKeyTextBox.Size = new Size(284, 20);
edsmApiKeyTextBox.TabIndex = 1;
edsmApiKeyTextBox.Text = "EDSM API Key";
edsmApiKeyTextBox.TextAlign = HorizontalAlignment.Center;
edsmApiKeyTextBox.TextChanged += new System.EventHandler(edsmApiKeyTextBox_TextChanged);
edsmApiKeyTextBox.TextChanged += new EventHandler(edsmApiKeyTextBox_TextChanged);

// testCredentialsButton
testCredentialsButton.Location = new System.Drawing.Point(3, 27);
testCredentialsButton.Location = new Point(3, 27);
testCredentialsButton.Name = "testCredentialsButton";
testCredentialsButton.Size = new System.Drawing.Size(125, 23);
testCredentialsButton.Size = new Size(125, 23);
testCredentialsButton.TabIndex = 2;
testCredentialsButton.Text = "Validate";
testCredentialsButton.UseVisualStyleBackColor = true;
testCredentialsButton.Click += new System.EventHandler(testCredentialsButton_Click);
testCredentialsButton.Click += new EventHandler(testCredentialsButton_Click);

// credentialsStatusLabel
credentialsStatusLabel.AutoSize = true;
credentialsStatusLabel.Location = new System.Drawing.Point(3, 55);
credentialsStatusLabel.Location = new Point(3, 55);
credentialsStatusLabel.Name = "credentialsStatusLabel";
credentialsStatusLabel.Size = new System.Drawing.Size(69, 13);
credentialsStatusLabel.Size = new Size(69, 13);
credentialsStatusLabel.TabIndex = 3;
credentialsStatusLabel.Text = "Not checked";

// apiKeyValidatedCheckbox
apiKeyValidatedCheckbox.AutoSize = true;
apiKeyValidatedCheckbox.Enabled = false;
apiKeyValidatedCheckbox.Location = new System.Drawing.Point(134, 31);
apiKeyValidatedCheckbox.Location = new Point(134, 31);
apiKeyValidatedCheckbox.Name = "apiKeyValidatedCheckbox";
apiKeyValidatedCheckbox.Size = new System.Drawing.Size(184, 17);
apiKeyValidatedCheckbox.Size = new Size(184, 17);
apiKeyValidatedCheckbox.TabIndex = 4;
apiKeyValidatedCheckbox.Text = "CMDR Name / API Key validated";
apiKeyValidatedCheckbox.UseVisualStyleBackColor = true;
apiKeyValidatedCheckbox.CheckedChanged += new System.EventHandler(apiKeyValidatedCheckbox_CheckedChanged);
apiKeyValidatedCheckbox.CheckedChanged += new EventHandler(apiKeyValidatedCheckbox_CheckedChanged);

// apiKeyLabel
apiKeyLabel.AutoSize = true;
apiKeyLabel.Location = new System.Drawing.Point(3, 6);
apiKeyLabel.Location = new Point(3, 6);
apiKeyLabel.Name = "apiKeyLabel";
apiKeyLabel.Size = new System.Drawing.Size(81, 13);
apiKeyLabel.Size = new Size(81, 13);
apiKeyLabel.TabIndex = 6;
apiKeyLabel.TabStop = true;
apiKeyLabel.Text = "EDSM API key:";
apiKeyLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(apiKeyLabel_LinkClicked);
apiKeyLabel.LinkClicked += new LinkLabelLinkClickedEventHandler(apiKeyLabel_LinkClicked);

// EdsmSettingsControl
Controls.Add(apiKeyLabel);
Expand All @@ -130,7 +130,7 @@ private void InitializeComponent()
Controls.Add(testCredentialsButton);
Controls.Add(edsmApiKeyTextBox);
Name = "EdsmSettingsControl";
Size = new System.Drawing.Size(374, 150);
Size = new Size(374, 150);
ResumeLayout(false);
PerformLayout();
}
Expand Down
44 changes: 22 additions & 22 deletions Plugin.Inara/InaraSettingsControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,69 +43,69 @@ internal InaraSettings Settings

private void InitializeComponent()
{
button1 = new System.Windows.Forms.Button();
inaraApiKeyTextBox = new System.Windows.Forms.TextBox();
testCredentialsButton = new System.Windows.Forms.Button();
credentialsStatusLabel = new System.Windows.Forms.Label();
apiKeyValidatedCheckbox = new System.Windows.Forms.CheckBox();
apiKeyLabel = new System.Windows.Forms.LinkLabel();
button1 = new Button();
inaraApiKeyTextBox = new TextBox();
testCredentialsButton = new Button();
credentialsStatusLabel = new Label();
apiKeyValidatedCheckbox = new CheckBox();
apiKeyLabel = new LinkLabel();
SuspendLayout();

// button1
button1.Location = new System.Drawing.Point(0, 0);
button1.Location = new Point(0, 0);
button1.Name = "button1";
button1.Size = new System.Drawing.Size(75, 23);
button1.Size = new Size(75, 23);
button1.TabIndex = 0;
button1.Text = "button1";
button1.UseVisualStyleBackColor = true;

// inaraApiKeyTextBox
inaraApiKeyTextBox.Anchor = AnchorStyles.Top | AnchorStyles.Left
| AnchorStyles.Right;
inaraApiKeyTextBox.Location = new System.Drawing.Point(91, 3);
inaraApiKeyTextBox.Location = new Point(91, 3);
inaraApiKeyTextBox.Name = "inaraApiKeyTextBox";
inaraApiKeyTextBox.Size = new System.Drawing.Size(224, 20);
inaraApiKeyTextBox.Size = new Size(224, 20);
inaraApiKeyTextBox.TabIndex = 1;
inaraApiKeyTextBox.Text = "Inara API Key";
inaraApiKeyTextBox.TextAlign = HorizontalAlignment.Center;

// testCredentialsButton
testCredentialsButton.Location = new System.Drawing.Point(3, 27);
testCredentialsButton.Location = new Point(3, 27);
testCredentialsButton.Name = "testCredentialsButton";
testCredentialsButton.Size = new System.Drawing.Size(122, 23);
testCredentialsButton.Size = new Size(122, 23);
testCredentialsButton.TabIndex = 2;
testCredentialsButton.Text = "Validate";
testCredentialsButton.UseVisualStyleBackColor = true;
testCredentialsButton.Click += new System.EventHandler(testCredentialsButton_Click);
testCredentialsButton.Click += new EventHandler(testCredentialsButton_Click);

// credentialsStatusLabel
credentialsStatusLabel.AutoSize = true;
credentialsStatusLabel.Location = new System.Drawing.Point(3, 55);
credentialsStatusLabel.Location = new Point(3, 55);
credentialsStatusLabel.Name = "credentialsStatusLabel";
credentialsStatusLabel.Size = new System.Drawing.Size(69, 13);
credentialsStatusLabel.Size = new Size(69, 13);
credentialsStatusLabel.TabIndex = 3;
credentialsStatusLabel.Text = "Not checked";

// apiKeyValidatedCheckbox
apiKeyValidatedCheckbox.AutoSize = true;
apiKeyValidatedCheckbox.Enabled = false;
apiKeyValidatedCheckbox.Location = new System.Drawing.Point(131, 31);
apiKeyValidatedCheckbox.Location = new Point(131, 31);
apiKeyValidatedCheckbox.Name = "apiKeyValidatedCheckbox";
apiKeyValidatedCheckbox.Size = new System.Drawing.Size(184, 17);
apiKeyValidatedCheckbox.Size = new Size(184, 17);
apiKeyValidatedCheckbox.TabIndex = 7;
apiKeyValidatedCheckbox.Text = "CMDR Name / API Key validated";
apiKeyValidatedCheckbox.UseVisualStyleBackColor = true;
apiKeyValidatedCheckbox.CheckedChanged += new System.EventHandler(apiKeyValidatedCheckbox_CheckedChanged);
apiKeyValidatedCheckbox.CheckedChanged += new EventHandler(apiKeyValidatedCheckbox_CheckedChanged);

// apiKeyLabel
apiKeyLabel.AutoSize = true;
apiKeyLabel.Location = new System.Drawing.Point(3, 6);
apiKeyLabel.Location = new Point(3, 6);
apiKeyLabel.Name = "apiKeyLabel";
apiKeyLabel.Size = new System.Drawing.Size(82, 13);
apiKeyLabel.Size = new Size(82, 13);
apiKeyLabel.TabIndex = 8;
apiKeyLabel.TabStop = true;
apiKeyLabel.Text = "INARA Api Key:";
apiKeyLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(apiKeyLabel_LinkClicked);
apiKeyLabel.LinkClicked += new LinkLabelLinkClickedEventHandler(apiKeyLabel_LinkClicked);

// InaraSettingsControl
Controls.Add(apiKeyLabel);
Expand All @@ -114,7 +114,7 @@ private void InitializeComponent()
Controls.Add(testCredentialsButton);
Controls.Add(inaraApiKeyTextBox);
Name = "InaraSettingsControl";
Size = new System.Drawing.Size(318, 148);
Size = new Size(318, 148);
ResumeLayout(false);
PerformLayout();
}
Expand Down

0 comments on commit 228110d

Please sign in to comment.