Skip to content

Commit 7488894

Browse files
authored
Bug Fix and Small change
- Fixed Loading Screen don't resizing depending of Window resolution. - Added the function to copy values from the table with right-click #4
1 parent 4dbf3b8 commit 7488894

File tree

4 files changed

+9503
-9490
lines changed

4 files changed

+9503
-9490
lines changed

AiPostgreWinForms/AiPostgreWinForms.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 17
4-
VisualStudioVersion = 17.12.35527.113
3+
# Visual Studio Version 18
4+
VisualStudioVersion = 18.0.11222.15 d18.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AiPostgreWinForms", "AiPostgreWinForms.csproj", "{9C9573E2-0D0A-48D6-9CD6-3FF1BEB29C3F}"
77
EndProject

AiPostgreWinForms/FrmAiPostgre.Designer.cs

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AiPostgreWinForms/FrmAiPostgre.cs

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,8 @@ private void btn_send_Click(object sender, EventArgs e)
465465
}));
466466
}
467467
}
468-
catch (Exception ex) {
468+
catch (Exception ex)
469+
{
469470
MessageBox.Show("The configured Database couldn't be reached, please check if the Database can still be connected with this configuration.", "Database can't be reached", MessageBoxButtons.OK, MessageBoxIcon.Error);
470471
btn_dbsettings.Invoke((MethodInvoker)(() =>
471472
{
@@ -596,7 +597,7 @@ private void btn_keyback_Click(object sender, EventArgs e)
596597
btn_mapdb.Enabled = true;
597598

598599
// Discard the changes
599-
FrmAiPostgre_Load(sender,e);
600+
FrmAiPostgre_Load(sender, e);
600601
}
601602

602603
private void FrmAiPostgre_FormClosing(object sender, FormClosingEventArgs e)
@@ -957,5 +958,24 @@ private void lv_maps_SelectedIndexChanged(object sender, EventArgs e)
957958
}
958959
}
959960
}
961+
962+
private void dgv_airesult_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e)
963+
{
964+
if (e.RowIndex >= 0 && e.ColumnIndex >= 0)
965+
{
966+
if (e.Button == MouseButtons.Right)
967+
{
968+
var cell = dgv_airesult[e.ColumnIndex, e.RowIndex];
969+
if (cell?.Value != null)
970+
{
971+
if (!cell.Value.ToString().Equals(""))
972+
{
973+
Clipboard.SetText(cell.Value.ToString());
974+
new ToolTip().Show("Value copied!", this, 3000);
975+
}
976+
}
977+
}
978+
}
979+
}
960980
}
961981
}

0 commit comments

Comments
 (0)