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,14 +1,13 @@
using System; using System;
using Eto.Forms; using Eto.Forms;
namespace AM2RPortHelperGUI.Gtk namespace AM2RPortHelperGUI.Gtk;
class Program
{ {
class Program
{
[STAThread] [STAThread]
public static void Main(string[] args) public static void Main(string[] args)
{ {
new Application(Eto.Platforms.Gtk).Run(new MainForm()); new Application(Eto.Platforms.Gtk).Run(new MainForm());
} }
}
} }

@ -1,14 +1,13 @@
using System; using System;
using Eto.Forms; using Eto.Forms;
namespace AM2RPortHelperGUI.Mac namespace AM2RPortHelperGUI.Mac;
class Program
{ {
class Program
{
[STAThread] [STAThread]
public static void Main(string[] args) public static void Main(string[] args)
{ {
new Application(Eto.Platforms.Mac64).Run(new MainForm()); new Application(Eto.Platforms.Mac64).Run(new MainForm());
} }
}
} }

@ -1,14 +1,13 @@
using System; using System;
using Eto.Forms; using Eto.Forms;
namespace AM2RPortHelperGUI.Wpf namespace AM2RPortHelperGUI.Wpf;
class Program
{ {
class Program
{
[STAThread] [STAThread]
public static void Main(string[] args) public static void Main(string[] args)
{ {
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,10 +7,10 @@ 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()
{ {
Title = "AM2RPortHelper"; Title = "AM2RPortHelper";
@ -167,5 +167,4 @@ namespace AM2RPortHelperGUI
{ {
Text = "Info: " Text = "Info: "
}; };
}
} }
Loading…
Cancel
Save