rename root namespace
This commit is contained in:
parent
0d7c14e9a1
commit
2b1ce291eb
@ -1,7 +1,7 @@
|
|||||||
<Application xmlns="https://github.com/avaloniaui"
|
<Application xmlns="https://github.com/avaloniaui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
x:Class="net.nehmer.sa.App"
|
x:Class="StarsAssistant.App"
|
||||||
xmlns:local="using:net.nehmer.sa"
|
xmlns:local="using:StarsAssistant"
|
||||||
RequestedThemeVariant="Default">
|
RequestedThemeVariant="Default">
|
||||||
<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
|
<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using Avalonia;
|
using Avalonia;
|
||||||
using Avalonia.Controls.ApplicationLifetimes;
|
using Avalonia.Controls.ApplicationLifetimes;
|
||||||
using Avalonia.Markup.Xaml;
|
using Avalonia.Markup.Xaml;
|
||||||
using net.nehmer.sa.ViewModels;
|
using StarsAssistant.ViewModels;
|
||||||
using net.nehmer.sa.Views;
|
using StarsAssistant.Views;
|
||||||
|
|
||||||
namespace net.nehmer.sa;
|
namespace StarsAssistant;
|
||||||
|
|
||||||
public partial class App : Application
|
public partial class App : Application
|
||||||
{
|
{
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using CSV = CsvHelper.Configuration.Attributes;
|
using CSV = CsvHelper.Configuration.Attributes;
|
||||||
|
|
||||||
namespace net.nehmer.sa.Model;
|
namespace StarsAssistant.Model;
|
||||||
|
|
||||||
public class Planet
|
public class Planet
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
|
||||||
namespace net.nehmer.sa.Model;
|
namespace StarsAssistant.Model;
|
||||||
|
|
||||||
public class StarsDatabase(string DbPath) : DbContext
|
public class StarsDatabase(string DbPath) : DbContext
|
||||||
{
|
{
|
||||||
|
@ -4,11 +4,11 @@ using Avalonia;
|
|||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using CsvHelper.Configuration;
|
using CsvHelper.Configuration;
|
||||||
using CsvHelper;
|
using CsvHelper;
|
||||||
using net.nehmer.sa.Model;
|
using StarsAssistant.Model;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
|
||||||
|
|
||||||
namespace net.nehmer.sa;
|
namespace StarsAssistant;
|
||||||
|
|
||||||
sealed class Program
|
sealed class Program
|
||||||
{
|
{
|
||||||
@ -66,7 +66,7 @@ sealed class Program
|
|||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using CsvHelper.Configuration;
|
using CsvHelper.Configuration;
|
||||||
using CsvHelper;
|
using CsvHelper;
|
||||||
using net.nehmer.sa.model;
|
using StarsAssistant.model;
|
||||||
|
|
||||||
|
|
||||||
using var db = new StarsDatabase("stars.sqlite");
|
using var db = new StarsDatabase("stars.sqlite");
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<RootNamespace>net.nehmer.sa</RootNamespace>
|
<RootNamespace>StarsAssistant</RootNamespace>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
|
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using Avalonia.Controls;
|
using Avalonia.Controls;
|
||||||
using Avalonia.Controls.Templates;
|
using Avalonia.Controls.Templates;
|
||||||
using net.nehmer.sa.ViewModels;
|
using StarsAssistant.ViewModels;
|
||||||
|
|
||||||
namespace net.nehmer.sa;
|
namespace StarsAssistant;
|
||||||
|
|
||||||
public class ViewLocator : IDataTemplate
|
public class ViewLocator : IDataTemplate
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
|
|
||||||
namespace net.nehmer.sa.ViewModels;
|
namespace StarsAssistant.ViewModels;
|
||||||
|
|
||||||
public partial class MainWindowViewModel : ViewModelBase
|
public partial class MainWindowViewModel : ViewModelBase
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
using net.nehmer.sa.Model;
|
using StarsAssistant.Model;
|
||||||
|
|
||||||
namespace net.nehmer.sa.ViewModels;
|
namespace StarsAssistant.ViewModels;
|
||||||
|
|
||||||
public partial class PlanetViewModel(Planet planet) : ViewModelBase
|
public partial class PlanetViewModel(Planet planet) : ViewModelBase
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
using CommunityToolkit.Mvvm.ComponentModel;
|
using CommunityToolkit.Mvvm.ComponentModel;
|
||||||
|
|
||||||
namespace net.nehmer.sa.ViewModels;
|
namespace StarsAssistant.ViewModels;
|
||||||
|
|
||||||
public class ViewModelBase : ObservableObject
|
public class ViewModelBase : ObservableObject
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<Window xmlns="https://github.com/avaloniaui"
|
<Window xmlns="https://github.com/avaloniaui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:vm="using:net.nehmer.sa.ViewModels"
|
xmlns:vm="using:StarsAssistant.ViewModels"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||||
x:Class="net.nehmer.sa.Views.MainWindow"
|
x:Class="StarsAssistant.Views.MainWindow"
|
||||||
x:DataType="vm:MainWindowViewModel"
|
x:DataType="vm:MainWindowViewModel"
|
||||||
Icon="/Assets/avalonia-logo.ico"
|
Icon="/Assets/avalonia-logo.ico"
|
||||||
Title="GetStartedApp">
|
Title="GetStartedApp">
|
||||||
|
@ -3,7 +3,7 @@ using Avalonia.Interactivity;
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace net.nehmer.sa.Views;
|
namespace StarsAssistant.Views;
|
||||||
|
|
||||||
public partial class MainWindow : Window
|
public partial class MainWindow : Window
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user