Skip to content

Commit 2b0cb09

Browse files
EMS90EMS90
EMS90
authored and
EMS90
committed
removing .gra import from folder to avoid duplicated imports. GRA files are loaded automaticall to TRA if a corrsponding file is found. and a single GRA without a known TRA file would not make sense anyway
1 parent 0ea53fc commit 2b0cb09

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

TRA.Tool/MainForm.cs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -186,17 +186,7 @@ private void FlowLayoutPanel_DragDrop(object sender, DragEventArgs e)
186186
childNode.References.Add(trassenPanel);
187187
i++;
188188
}
189-
if (fileInfo.Extension.Equals(".gra", StringComparison.OrdinalIgnoreCase) && childNode.References.Count() == 0)
190-
{
191-
TrassenPanel trassenPanel = new TrassenPanel();
192-
trassenPanel.set_GRA_L_Path(childNode);
193-
childNode.BackColor = trassenPanel.BackColor;
194-
selectedColor = trassenPanel.BackColor;
195-
panel.Controls.Add(trassenPanel);
196-
panel.Controls.SetChildIndex(trassenPanel, panel.Controls.Count - 2);
197-
childNode.References.Add(trassenPanel);
198-
i++;
199-
}
189+
200190
}
201191
TrassierungLog.Logger?.LogInformation("Loaded " + i + " TRA-Files");
202192
}
@@ -308,6 +298,7 @@ private void btn_SaveAll_Click(object sender, EventArgs e)
308298
}
309299
idx--;
310300
}
301+
MessageBox.Show("Export completed successfully.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
311302
}
312303
}
313304

0 commit comments

Comments
 (0)