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