diff --git a/.idea/.idea.NetworkDiagram/.idea/avalonia.xml b/.idea/.idea.NetworkDiagram/.idea/avalonia.xml new file mode 100644 index 0000000..9d413b1 --- /dev/null +++ b/.idea/.idea.NetworkDiagram/.idea/avalonia.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/NetworkDiagram.slnx b/NetworkDiagram.slnx index c3d1e2c..a3de534 100644 --- a/NetworkDiagram.slnx +++ b/NetworkDiagram.slnx @@ -1,3 +1,4 @@ + diff --git a/NetworkDiagram/App.axaml b/NetworkDiagram/App.axaml new file mode 100644 index 0000000..f51cea6 --- /dev/null +++ b/NetworkDiagram/App.axaml @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + #004578 + #0078D7 + #E1EEFA + #D0E2F2 + #F5F9FF + #1B1B1B + #FFFFFF + #CCCCCC + + + + + + + + + + + + diff --git a/NetworkDiagram/App.axaml.cs b/NetworkDiagram/App.axaml.cs new file mode 100644 index 0000000..dc96a82 --- /dev/null +++ b/NetworkDiagram/App.axaml.cs @@ -0,0 +1,23 @@ +using Avalonia; +using Avalonia.Controls.ApplicationLifetimes; +using Avalonia.Markup.Xaml; + +namespace NetworkDiagram; + +public partial class App : Application +{ + public override void Initialize() + { + AvaloniaXamlLoader.Load(this); + } + + public override void OnFrameworkInitializationCompleted() + { + if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop) + { + desktop.MainWindow = new MainWindow(); + } + + base.OnFrameworkInitializationCompleted(); + } +} diff --git a/NetworkDiagram/App.xaml b/NetworkDiagram/App.xaml deleted file mode 100644 index 0c5c082..0000000 --- a/NetworkDiagram/App.xaml +++ /dev/null @@ -1,202 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/NetworkDiagram/App.xaml.cs b/NetworkDiagram/App.xaml.cs deleted file mode 100644 index 57c6000..0000000 --- a/NetworkDiagram/App.xaml.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System.Windows; - -namespace NetworkDiagram; - -/// -/// Interaction logic for App.xaml -/// -public partial class App : Application -{ -} \ No newline at end of file diff --git a/NetworkDiagram/AssemblyInfo.cs b/NetworkDiagram/AssemblyInfo.cs deleted file mode 100644 index 4a05c7d..0000000 --- a/NetworkDiagram/AssemblyInfo.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System.Windows; - -[assembly: ThemeInfo( - ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located - //(used if a resource is not found in the page, - // or application resource dictionaries) - ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located - //(used if a resource is not found in the page, - // app, or any theme specific resource dictionaries) -)] \ No newline at end of file diff --git a/NetworkDiagram/EditDeviceWindow.axaml b/NetworkDiagram/EditDeviceWindow.axaml new file mode 100644 index 0000000..8aed92d --- /dev/null +++ b/NetworkDiagram/EditDeviceWindow.axaml @@ -0,0 +1,22 @@ + + + + + + + + + + +