Use file scoped namespaces

pull/5/head
Miepee 4 years ago
parent 2a08ff2946
commit 9ad9935fff

@ -1,9 +1,6 @@
using System; using System;
using System.CommandLine; using System.CommandLine;
using System.CommandLine.Builder;
using System.CommandLine.Parsing;
using System.IO; using System.IO;
using System.Threading;
using AM2RPortHelperLib; using AM2RPortHelperLib;
namespace AM2RPortHelper; namespace AM2RPortHelper;

@ -1,8 +1,8 @@
using System; using System;
using Eto.Forms; using Eto.Forms;
namespace AM2RPortHelperGUI.Gtk namespace AM2RPortHelperGUI.Gtk;
{
class Program class Program
{ {
[STAThread] [STAThread]
@ -11,4 +11,3 @@ namespace AM2RPortHelperGUI.Gtk
new Application(Eto.Platforms.Gtk).Run(new MainForm()); new Application(Eto.Platforms.Gtk).Run(new MainForm());
} }
} }
}

@ -1,8 +1,8 @@
using System; using System;
using Eto.Forms; using Eto.Forms;
namespace AM2RPortHelperGUI.Mac namespace AM2RPortHelperGUI.Mac;
{
class Program class Program
{ {
[STAThread] [STAThread]
@ -11,4 +11,3 @@ namespace AM2RPortHelperGUI.Mac
new Application(Eto.Platforms.Mac64).Run(new MainForm()); new Application(Eto.Platforms.Mac64).Run(new MainForm());
} }
} }
}

@ -1,8 +1,8 @@
using System; using System;
using Eto.Forms; using Eto.Forms;
namespace AM2RPortHelperGUI.Wpf namespace AM2RPortHelperGUI.Wpf;
{
class Program class Program
{ {
[STAThread] [STAThread]
@ -11,4 +11,3 @@ namespace AM2RPortHelperGUI.Wpf
new Application(Eto.Platforms.Wpf).Run(new MainForm()); new Application(Eto.Platforms.Wpf).Run(new MainForm());
} }
} }
}

@ -2,6 +2,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework> <TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>10</LangVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

@ -7,8 +7,8 @@ using AM2RPortHelperLib;
using Eto.Forms; using Eto.Forms;
using Eto.Drawing; using Eto.Drawing;
namespace AM2RPortHelperGUI namespace AM2RPortHelperGUI;
{
public partial class MainForm : Form public partial class MainForm : Form
{ {
public MainForm() public MainForm()
@ -168,4 +168,3 @@ namespace AM2RPortHelperGUI
Text = "Info: " Text = "Info: "
}; };
} }
}
Loading…
Cancel
Save