Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 2LCS/AssetLibrary/AssetLibrarySearch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private void search_Click(object sender, EventArgs e)
Filter = "CSV files (*.csv)|*.csv|All files (*.*)|*.*"
};

if (saveFile.ShowDialog() == DialogResult.OK)
if (saveFile.ShowDialog(this) == DialogResult.OK)
{
try
{
Expand All @@ -86,7 +86,7 @@ private void search_Click(object sender, EventArgs e)
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
MessageBox.Show(this, ex.Message);
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions 2LCS/Forms/AddNSG.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private void PopulateWithOwnIP()
}
catch
{
MessageBox.Show("Failed to get your IP address. Please enter it manually.");
MessageBox.Show(this, "Failed to get your IP address. Please enter it manually.");
}
}
}
Expand All @@ -69,12 +69,12 @@ private bool ValidateRule()
{
if (string.IsNullOrEmpty(textBox1.Text))
{
MessageBox.Show("Rule name is empty.");
MessageBox.Show(this, "Rule name is empty.");
return false;
}
if (string.IsNullOrEmpty(textBox2.Text))
{
MessageBox.Show("IP address field is empty.");
MessageBox.Show(this, "IP address field is empty.");
return false;
}
Rule = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Expand Down
4 changes: 2 additions & 2 deletions 2LCS/Forms/ChooseProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private void OkButton_Click(object sender, EventArgs e)
LcsProject = (LcsProject)projectsDataGridView.SelectedRows[0].DataBoundItem;
if (LcsProject.RequestPending == true)
{
MessageBox.Show($"Invitation to the project {LcsProject.Name} has not been completed yet for your user account.\n\nVisit LCS and accept invitation first!", "Warning! Action needed.");
MessageBox.Show(this, $"Invitation to the project {LcsProject.Name} has not been completed yet for your user account.\n\nVisit LCS and accept invitation first!", "Warning! Action needed.");
return;
}
UpdateProjectLinks();
Expand All @@ -84,7 +84,7 @@ private void ProjectsDataGridView_CellMouseDoubleClick(object sender, DataGridVi
LcsProject = (LcsProject)projectsDataGridView.SelectedRows[0].DataBoundItem;
if (LcsProject.RequestPending == true)
{
MessageBox.Show($"Invitation to the project {LcsProject.Name} has not been completed yet for your user account.\n\nVisit LCS and accept invitation first!", "Warning! Action needed.");
MessageBox.Show(this, $"Invitation to the project {LcsProject.Name} has not been completed yet for your user account.\n\nVisit LCS and accept invitation first!", "Warning! Action needed.");
return;
}
UpdateProjectLinks();
Expand Down
Loading
Loading