Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple ODs #221

Open
wants to merge 11 commits into
base: xdd
Choose a base branch
from
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
/EDSTest/obj
/EDSTest/bin
/Cia306Tester/obj
/libEDSsharp/bin
/*.suo
/libEDSsharp/obj
/EDSTest/obj/Release
/EDSTest/bin/Release
/.vs/EDSTest/v14/*.suo
Expand All @@ -23,3 +21,4 @@ edseditor-Setup.exe
/Backup
/SourceGrid_4.21
/packages/

2 changes: 1 addition & 1 deletion EDSTest/DevicePDOView.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion EDSTest/DeviceView.resx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<root>
<!--
Microsoft ResX Schema

Version 2.0

The primary goals of this format is to allow a simple XML format
Expand Down
16 changes: 12 additions & 4 deletions EDSTest/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,10 @@ private void networkPDOToolStripMenuItem_Click(object sender, EventArgs e)

if (IsRunningOnMono())
{
System.Diagnostics.Process.Start("file://"+temp);
if (System.IO.File.Exists("/usr/bin/google-chrome"))
System.Diagnostics.Process.Start("/usr/bin/google-chrome","file://"+temp);
else
System.Diagnostics.Process.Start("file://"+temp);
}
else
{
Expand Down Expand Up @@ -920,7 +923,6 @@ private void documentationToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{

Warnings.warning_list.Clear();

if (tabControl1.SelectedTab != null)
Expand Down Expand Up @@ -952,10 +954,16 @@ private void documentationToolStripMenuItem_Click(object sender, EventArgs e)
DocumentationGen docgen = new DocumentationGen();
docgen.genhtmldoc(temp, dv.eds);
docgen.genmddoc(temp2, dv.eds);
System.Diagnostics.Process.Start("file://" + temp2);
if (System.IO.File.Exists("/usr/bin/google-chrome"))
System.Diagnostics.Process.Start("/usr/bin/google-chrome", "file://" + temp2);
else
System.Diagnostics.Process.Start("file://" + temp2);
if (IsRunningOnMono())
{
System.Diagnostics.Process.Start("file://" + temp);
if (System.IO.File.Exists("/usr/bin/google-chrome"))
System.Diagnostics.Process.Start("/usr/bin/google-chrome","file://" + temp);
else
System.Diagnostics.Process.Start("file://" + temp);
}
else
{
Expand Down
Loading