diff --git a/src/Banquale/Banquale.sln b/src/Banquale/Banquale.sln index 34d7ae0..24e7bb1 100644 --- a/src/Banquale/Banquale.sln +++ b/src/Banquale/Banquale.sln @@ -5,8 +5,6 @@ VisualStudioVersion = 17.0.31611.283 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Banquale", "Banquale\Banquale.csproj", "{CB24D887-5DF3-4ED9-BAFF-DEA8F43253EE}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTest", "UnitTest\UnitTest.csproj", "{B3E73F6D-D9BB-44E4-A7F9-F502982F3880}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -19,10 +17,6 @@ Global {CB24D887-5DF3-4ED9-BAFF-DEA8F43253EE}.Release|Any CPU.ActiveCfg = Release|Any CPU {CB24D887-5DF3-4ED9-BAFF-DEA8F43253EE}.Release|Any CPU.Build.0 = Release|Any CPU {CB24D887-5DF3-4ED9-BAFF-DEA8F43253EE}.Release|Any CPU.Deploy.0 = Release|Any CPU - {B3E73F6D-D9BB-44E4-A7F9-F502982F3880}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B3E73F6D-D9BB-44E4-A7F9-F502982F3880}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B3E73F6D-D9BB-44E4-A7F9-F502982F3880}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B3E73F6D-D9BB-44E4-A7F9-F502982F3880}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/Banquale/Banquale/App.xaml.cs b/src/Banquale/Banquale/App.xaml.cs index 47e07c7..73c8986 100644 --- a/src/Banquale/Banquale/App.xaml.cs +++ b/src/Banquale/Banquale/App.xaml.cs @@ -1,6 +1,7 @@ using Banquale.Model; using Banquale.Stub; using Banquale.DataContractPersistance; + namespace Banquale; public partial class App : Application @@ -15,11 +16,12 @@ public partial class App : Application MyManager.DataLoad(); MyManager.Persistence = new DataContractPersistance.DataContractPers(); + //MyManager.DataSave(); - InitializeComponent(); + InitializeComponent(); MainPage = new AppShell(); - //MyManager.DataSave(); } + } diff --git a/src/Banquale/Banquale/AppShell.xaml b/src/Banquale/Banquale/AppShell.xaml index d85c7cd..9088f35 100644 --- a/src/Banquale/Banquale/AppShell.xaml +++ b/src/Banquale/Banquale/AppShell.xaml @@ -4,19 +4,18 @@ xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:views="clr-namespace:Banquale.Views" - xmlns:balance="clr-namespace:Banquale.Views.Balance" xmlns:transfer="clr-namespace:Banquale.Views.Transfer" Shell.FlyoutBehavior="Disabled"> - + diff --git a/src/Banquale/Banquale/AppShell.xaml.cs b/src/Banquale/Banquale/AppShell.xaml.cs index 9735096..b345884 100644 --- a/src/Banquale/Banquale/AppShell.xaml.cs +++ b/src/Banquale/Banquale/AppShell.xaml.cs @@ -7,11 +7,20 @@ public partial class AppShell : Shell { public AppShell() { - InitializeComponent(); + InitializeComponent(); + RegisterRoutes(); + } + + private void RegisterRoutes() + { Routing.RegisterRoute("balance/categorydetails", typeof(CategoryPage)); Routing.RegisterRoute("balance/newpagedetails", typeof(NewPage1)); Routing.RegisterRoute("menu/requestdetails", typeof(RequestPage)); Routing.RegisterRoute("menu/ribdetails", typeof(RibPage)); Routing.RegisterRoute("menu/transferdetails", typeof(TransferPage)); + Routing.RegisterRoute("connection/consultant", typeof(ConsultantHomePage)); + Routing.RegisterRoute("consultant/idpage", typeof(ConsultantIdPage)); + Routing.RegisterRoute("consultant/createcustomer", typeof(CreateCustomerPage)); } + } \ No newline at end of file diff --git a/src/Banquale/Banquale/Banquale.csproj b/src/Banquale/Banquale/Banquale.csproj index aa1e458..c4b35c0 100644 --- a/src/Banquale/Banquale/Banquale.csproj +++ b/src/Banquale/Banquale/Banquale.csproj @@ -2,11 +2,6 @@ net7.0-android;$(TargetFrameworks) - $(TargetFrameworks);net7.0-windows10.0.19041.0 - $(TargetFrameworks);net7.0-ios - $(TargetFrameworks);net7.0-maccatalyst - - Exe Banquale true @@ -24,30 +19,18 @@ 1.0 1 - 14.2 - 14.0 21.0 - 10.0.17763.0 - 10.0.17763.0 - 6.5 - - false - - - false - - + - @@ -66,8 +49,8 @@ - + @@ -80,7 +63,10 @@ - + + + + diff --git a/src/Banquale/Banquale/Banquale.sln b/src/Banquale/Banquale/Banquale.sln new file mode 100644 index 0000000..995aba4 --- /dev/null +++ b/src/Banquale/Banquale/Banquale.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 25.0.1705.4 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Banquale", "Banquale.csproj", "{654F2E92-6589-4E5D-85AC-B89F54C381DD}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {654F2E92-6589-4E5D-85AC-B89F54C381DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {654F2E92-6589-4E5D-85AC-B89F54C381DD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {654F2E92-6589-4E5D-85AC-B89F54C381DD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {654F2E92-6589-4E5D-85AC-B89F54C381DD}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {E1BCACFC-BABE-4F61-8D1F-A56C274B6C67} + EndGlobalSection +EndGlobal diff --git a/src/Banquale/Banquale/DataContractPersistance/DataContractPers.cs b/src/Banquale/Banquale/DataContractPersistance/DataContractPers.cs index 344c200..c31bba9 100644 --- a/src/Banquale/Banquale/DataContractPersistance/DataContractPers.cs +++ b/src/Banquale/Banquale/DataContractPersistance/DataContractPers.cs @@ -10,41 +10,96 @@ namespace Banquale.DataContractPersistance { public class DataContractPers : IPersistenceManager { - public string FilePath { get; set; } = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "/datbase.xml"; - public string FileName { get; set; } = "ClientAndTransactionsList.xml"; + //public string FilePath { get; set; } = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "/datbase.xml"; - public (List, List) DataLoad() + public string FilePath { get; set; } = FileSystem.Current.AppDataDirectory; + public string FileName { get; set; } = "DataSave.xml"; + + public (List, Consultant) DataLoad() { - var serializer = new DataContractSerializer(typeof(List)); + var serializer = new DataContractSerializer(typeof(DataToPersist)); + + DataToPersist data; + + if (File.Exists(Path.Combine(FilePath, FileName))) // Vérifiez si le fichier existe + { + using (Stream s = File.OpenRead(Path.Combine(FilePath, FileName))) + { + data = serializer.ReadObject(s) as DataToPersist; + } + } + else + { + data = new DataToPersist(); // Si le fichier n'existe pas, créez une nouvelle liste + } + + // List CustomersList; + //Consultant Consultant; - List CustomersList; + //using (Stream s = File.OpenRead(Path.Combine(FilePath, FileNameCustomer))) + //{ + // CustomersList = serializer.ReadObject(s) as List; + // } - using (Stream s = File.OpenRead(Path.Combine(FilePath, FileName))) - { - CustomersList = serializer.ReadObject(s) as List; - } - return (CustomersList, new List()); + // using (Stream s = File.OpenRead(Path.Combine(FilePath, FileNameConsultant))) + // { + // Consultant = serializer2.ReadObject(s) as Consultant; + // } + + return (data.customer, data.consultant); } - public void DataSave(List c, List t) + public void DataSave(List cu, Consultant co) { - var serializer = new DataContractSerializer(typeof(List)); - - if(!Directory.Exists(FilePath)) - { - Debug.WriteLine("Directory created"); - Debug.WriteLine(FilePath); - Directory.CreateDirectory(FilePath); - } - - var settings = new XmlWriterSettings() { Indent = true }; - using (TextWriter tw = File.CreateText(Path.Combine(FilePath, FileName))) - { - using (XmlWriter writer = XmlWriter.Create(tw, settings)) - { - serializer.WriteObject(writer, c); - } - } + var serializer = new DataContractSerializer(typeof(DataToPersist)); + + if (!Directory.Exists(FilePath)) + { + Debug.WriteLine("Directory doesn't exist."); + Directory.CreateDirectory(FilePath); + } + + + DataToPersist data = new DataToPersist(); + data.customer = cu; + data.consultant = co; + + var settings = new XmlWriterSettings() { Indent = true }; + using (TextWriter tw = File.CreateText(Path.Combine(FilePath, FileName))) + { + using (XmlWriter w = XmlWriter.Create(tw, settings)) + { + serializer.WriteObject(w, data); + } + } + + + // var serializer = new DataContractSerializer(typeof(List)); + // var serializer2 = new DataContractSerializer(typeof(Consultant)); + + // if (!Directory.Exists(FilePath)) + //{ + // Debug.WriteLine("Directory created"); + // Debug.WriteLine(FilePath); + // Directory.CreateDirectory(FilePath); + //} + + //var settings = new XmlWriterSettings() { Indent = true }; + // using (TextWriter tw = File.CreateText(Path.Combine(FilePath, FileNameCustomer))) + //{ + // using (XmlWriter writer = XmlWriter.Create(tw, settings)) + // { + // serializer.WriteObject(writer, cu); + // } + //} + + // using (TextWriter tw2 = File.CreateText(Path.Combine(FilePath, FileNameConsultant))) + // { + // using (XmlWriter writer2 = XmlWriter.Create(tw2, settings)) + // { + // serializer.WriteObject(writer2, co); + // } + // } } } } diff --git a/src/Banquale/Banquale/DataContractPersistance/DataToPersist.cs b/src/Banquale/Banquale/DataContractPersistance/DataToPersist.cs index ba7d64d..abd68ba 100644 --- a/src/Banquale/Banquale/DataContractPersistance/DataToPersist.cs +++ b/src/Banquale/Banquale/DataContractPersistance/DataToPersist.cs @@ -5,8 +5,8 @@ namespace Banquale.DataContractPersistance { public class DataToPersist { - public List customer { get; set; } = new List(); - public List transactions { get; set; } = new List(); + public List customer { get; set; } = new List(); + public Consultant consultant { get; set; } = null; } } diff --git a/src/Banquale/Banquale/Model/Account.cs b/src/Banquale/Banquale/Model/Account.cs index 1b62a9e..d587f6d 100644 --- a/src/Banquale/Banquale/Model/Account.cs +++ b/src/Banquale/Banquale/Model/Account.cs @@ -10,9 +10,9 @@ using System.Threading.Tasks; namespace Banquale.Model { [DataContract] - public class Account : INotifyPropertyChanged + public class Account : INotifyPropertyChanged, IEquatable { - public event PropertyChangedEventHandler PropertyChanged; + public event PropertyChangedEventHandler PropertyChanged; void OnPropertyChanged(string propertyName) { @@ -63,12 +63,25 @@ namespace Banquale.Model } private string iban; + public string IBANHide + { + get => ibanHide; + set + { + if (ibanHide == value) + return; + ibanHide = value; + OnPropertyChanged(nameof(IBANHide)); + } + } + private string ibanHide; public Account(int balance, string name, string iban) { Balance = balance; Name = name; IBAN = iban; + IBANHide = IBANToString(); } [DataMember] @@ -87,6 +100,8 @@ namespace Banquale.Model Debug.WriteLine(iban); Debug.WriteLine(sum); Debug.WriteLine("Transaction successed !"); + + } //public bool DoRequest(string name, string IBAN, float sum) @@ -101,18 +116,42 @@ namespace Banquale.Model // Console.WriteLine("Help button pressed !"); //} - internal static void AskForHelp(Entry request, Entry subject, Editor message) + internal static Message AskForHelp(Entry subject, Editor description) { - Debug.WriteLine(request.Text); - Debug.WriteLine(subject); - Debug.WriteLine(message); + Debug.WriteLine(subject.Text); + Debug.WriteLine(description.Text); Debug.WriteLine("Help button pressed !"); //throw new NotImplementedException(); + Message message = new Message(subject.Text, description.Text); + return message; } internal static void DoRequest(Entry name, Entry iBAN, Entry sum) { throw new NotImplementedException(); } + + public string IBANToString() + { + char[] res = IBAN.ToCharArray(); + for (int i = 5; i< IBAN.Length - 4; i++ ) + { + if (res[i] == ' ') + continue; + res[i] = '*'; + } + return new string(res); + } + + public bool Equals(Account other) + { + if(other == null) return false; + else return other.IBAN.Equals(IBAN); + } + + public override int GetHashCode() + { + return IBAN.GetHashCode(); + } } } diff --git a/src/Banquale/Banquale/Model/Category.cs b/src/Banquale/Banquale/Model/Category.cs new file mode 100644 index 0000000..ac9ea6b --- /dev/null +++ b/src/Banquale/Banquale/Model/Category.cs @@ -0,0 +1,12 @@ +using System; +namespace Banquale.Model +{ + public class Category + { + + public Category() + { + } + } +} + diff --git a/src/Banquale/Banquale/Model/Consultant.cs b/src/Banquale/Banquale/Model/Consultant.cs new file mode 100644 index 0000000..f3bda67 --- /dev/null +++ b/src/Banquale/Banquale/Model/Consultant.cs @@ -0,0 +1,14 @@ +using System; +namespace Banquale.Model +{ + public class Consultant : Person + { + + public List MessagesList = new List(); + + public Consultant(string name, string firstName, uint id, string password) : base(name, firstName, id, password) + { + } + } +} + diff --git a/src/Banquale/Banquale/Model/IPersistenceManager.cs b/src/Banquale/Banquale/Model/IPersistenceManager.cs index c50a775..2f67d5a 100644 --- a/src/Banquale/Banquale/Model/IPersistenceManager.cs +++ b/src/Banquale/Banquale/Model/IPersistenceManager.cs @@ -8,8 +8,8 @@ namespace Banquale.Model { public interface IPersistenceManager { - public (List, List) DataLoad(); + public (List, Consultant) DataLoad(); - void DataSave(List c, List t /*, List c2*/); + void DataSave(List cu, Consultant co); } } diff --git a/src/Banquale/Banquale/Model/Manager.cs b/src/Banquale/Banquale/Model/Manager.cs index 17c8535..0db3938 100644 --- a/src/Banquale/Banquale/Model/Manager.cs +++ b/src/Banquale/Banquale/Model/Manager.cs @@ -7,27 +7,56 @@ namespace Banquale.Model public class Manager { [DataMember] - public List CustomersList { get; private set; } + public List CustomersList { get; private set; } // devient un set - [DataMember] - public List TransactionsList { get; private set; } + [DataMember] + public Consultant Consultant { get; private set; } // 1 SEUL consultant - public List AccountList { get; private set; } + public Customer SelectedCustomer + { + get => selectedCustomer; + set + { + selectedCustomer = value; + } + } - public IPersistenceManager Persistence { get; set; } + private Customer selectedCustomer; + + public Account SelectedAccount + { + get => selectedAccount; + set + { + selectedAccount = value; + } + } - public Manager(IPersistenceManager persistence) { + private Account selectedAccount; - TransactionsList = new List(); + public Transactions SelectedTransaction + { + get => selectedTransaction; + set + { + selectedTransaction = value; + } + } + + private Transactions selectedTransaction; + + public IPersistenceManager Persistence { get; set; } + + public Manager(IPersistenceManager persistence) + { CustomersList = new List(); + Consultant = null; Persistence = persistence; - } public Manager() { CustomersList = new List(); - TransactionsList = new List(); } public bool AddCustomer(Customer MyCustomer) @@ -42,7 +71,7 @@ namespace Banquale.Model public void DataSave() { - Persistence.DataSave(CustomersList, TransactionsList); + Persistence.DataSave(CustomersList, Consultant); } public void DataLoad() @@ -50,16 +79,13 @@ namespace Banquale.Model var data = Persistence.DataLoad(); CustomersList.AddRange(data.Item1); - TransactionsList.AddRange(data.Item2); foreach (var j in data.Item1) { CustomersList.Add(j); } - foreach (var i in data.Item2) - { - TransactionsList.Add(i); - } + + Consultant = data.Item2; } } diff --git a/src/Banquale/Banquale/Model/Message.cs b/src/Banquale/Banquale/Model/Message.cs new file mode 100644 index 0000000..2339060 --- /dev/null +++ b/src/Banquale/Banquale/Model/Message.cs @@ -0,0 +1,19 @@ +using System; +namespace Banquale.Model +{ + public class Message + { + + public string Subject { get; private set; } + + public string Description { get; private set; } + + public Message(string subject, string description) + { + Subject = subject; + Description = description; + } + + } +} + diff --git a/src/Banquale/Banquale/Model/Person.cs b/src/Banquale/Banquale/Model/Person.cs index c0913ee..a33329b 100644 --- a/src/Banquale/Banquale/Model/Person.cs +++ b/src/Banquale/Banquale/Model/Person.cs @@ -16,7 +16,7 @@ namespace Banquale.Model [DataMember] public string FirstName { get; private set; } [DataMember] - public int Id { get; private set; } + public uint Id { get; private set; } [DataMember] public string Password { get; private set; } @@ -24,7 +24,15 @@ namespace Banquale.Model { Name = name; FirstName = firstName; - Id = 0; + Id = 1; + Password = password; + } + + public Person(string name, string firstName, uint id, string password) + { + Name = name; + FirstName = firstName; + Id = id; Password = password; } diff --git a/src/Banquale/Banquale/Model/Transactions.cs b/src/Banquale/Banquale/Model/Transactions.cs index 2ebf0dd..424de11 100644 --- a/src/Banquale/Banquale/Model/Transactions.cs +++ b/src/Banquale/Banquale/Model/Transactions.cs @@ -97,6 +97,7 @@ namespace Banquale.Model Date = date; } + public event PropertyChangedEventHandler PropertyChanged; } } diff --git a/src/Banquale/Banquale/Platforms/Android/MainActivity.cs b/src/Banquale/Banquale/Platforms/Android/MainActivity.cs index 2c88cf9..faf359a 100644 --- a/src/Banquale/Banquale/Platforms/Android/MainActivity.cs +++ b/src/Banquale/Banquale/Platforms/Android/MainActivity.cs @@ -4,7 +4,7 @@ using Android.OS; namespace Banquale; -[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)] +[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation, ScreenOrientation = ScreenOrientation.Portrait)] public class MainActivity : MauiAppCompatActivity { } diff --git a/src/Banquale/Banquale/Platforms/MacCatalyst/AppDelegate.cs b/src/Banquale/Banquale/Platforms/MacCatalyst/AppDelegate.cs deleted file mode 100644 index a637ab1..0000000 --- a/src/Banquale/Banquale/Platforms/MacCatalyst/AppDelegate.cs +++ /dev/null @@ -1,10 +0,0 @@ -using Foundation; - -namespace Banquale; - -[Register("AppDelegate")] -public class AppDelegate : MauiUIApplicationDelegate -{ - protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); -} - diff --git a/src/Banquale/Banquale/Platforms/MacCatalyst/Info.plist b/src/Banquale/Banquale/Platforms/MacCatalyst/Info.plist deleted file mode 100644 index 0690e47..0000000 --- a/src/Banquale/Banquale/Platforms/MacCatalyst/Info.plist +++ /dev/null @@ -1,30 +0,0 @@ - - - - - UIDeviceFamily - - 1 - 2 - - UIRequiredDeviceCapabilities - - arm64 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - XSAppIconAssets - Assets.xcassets/appicon.appiconset - - diff --git a/src/Banquale/Banquale/Platforms/MacCatalyst/Program.cs b/src/Banquale/Banquale/Platforms/MacCatalyst/Program.cs deleted file mode 100644 index 9096b85..0000000 --- a/src/Banquale/Banquale/Platforms/MacCatalyst/Program.cs +++ /dev/null @@ -1,16 +0,0 @@ -using ObjCRuntime; -using UIKit; - -namespace Banquale; - -public class Program -{ - // This is the main entry point of the application. - static void Main(string[] args) - { - // if you want to use a different Application Delegate class from "AppDelegate" - // you can specify it here. - UIApplication.Main(args, null, typeof(AppDelegate)); - } -} - diff --git a/src/Banquale/Banquale/Platforms/Tizen/Main.cs b/src/Banquale/Banquale/Platforms/Tizen/Main.cs deleted file mode 100644 index 0c5641d..0000000 --- a/src/Banquale/Banquale/Platforms/Tizen/Main.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using Microsoft.Maui; -using Microsoft.Maui.Hosting; - -namespace Banquale; - -class Program : MauiApplication -{ - protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); - - static void Main(string[] args) - { - var app = new Program(); - app.Run(args); - } -} - diff --git a/src/Banquale/Banquale/Platforms/Tizen/tizen-manifest.xml b/src/Banquale/Banquale/Platforms/Tizen/tizen-manifest.xml deleted file mode 100644 index 5ddbe54..0000000 --- a/src/Banquale/Banquale/Platforms/Tizen/tizen-manifest.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - maui-appicon-placeholder - - - - - http://tizen.org/privilege/internet - - - - diff --git a/src/Banquale/Banquale/Platforms/Windows/App.xaml b/src/Banquale/Banquale/Platforms/Windows/App.xaml deleted file mode 100644 index a6d37ce..0000000 --- a/src/Banquale/Banquale/Platforms/Windows/App.xaml +++ /dev/null @@ -1,9 +0,0 @@ - - - - diff --git a/src/Banquale/Banquale/Platforms/Windows/App.xaml.cs b/src/Banquale/Banquale/Platforms/Windows/App.xaml.cs deleted file mode 100644 index be5c6c7..0000000 --- a/src/Banquale/Banquale/Platforms/Windows/App.xaml.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Microsoft.UI.Xaml; - -// To learn more about WinUI, the WinUI project structure, -// and more about our project templates, see: http://aka.ms/winui-project-info. - -namespace Banquale.WinUI; - -/// -/// Provides application-specific behavior to supplement the default Application class. -/// -public partial class App : MauiWinUIApplication -{ - /// - /// Initializes the singleton application object. This is the first line of authored code - /// executed, and as such is the logical equivalent of main() or WinMain(). - /// - public App() - { - this.InitializeComponent(); - } - - protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); -} - - diff --git a/src/Banquale/Banquale/Platforms/Windows/Package.appxmanifest b/src/Banquale/Banquale/Platforms/Windows/Package.appxmanifest deleted file mode 100644 index 7a784ce..0000000 --- a/src/Banquale/Banquale/Platforms/Windows/Package.appxmanifest +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - $placeholder$ - User Name - $placeholder$.png - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/Banquale/Banquale/Platforms/Windows/app.manifest b/src/Banquale/Banquale/Platforms/Windows/app.manifest deleted file mode 100644 index 787d3c3..0000000 --- a/src/Banquale/Banquale/Platforms/Windows/app.manifest +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - true/PM - PerMonitorV2, PerMonitor - - - - diff --git a/src/Banquale/Banquale/Platforms/iOS/AppDelegate.cs b/src/Banquale/Banquale/Platforms/iOS/AppDelegate.cs deleted file mode 100644 index a637ab1..0000000 --- a/src/Banquale/Banquale/Platforms/iOS/AppDelegate.cs +++ /dev/null @@ -1,10 +0,0 @@ -using Foundation; - -namespace Banquale; - -[Register("AppDelegate")] -public class AppDelegate : MauiUIApplicationDelegate -{ - protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); -} - diff --git a/src/Banquale/Banquale/Platforms/iOS/Info.plist b/src/Banquale/Banquale/Platforms/iOS/Info.plist deleted file mode 100644 index 358337b..0000000 --- a/src/Banquale/Banquale/Platforms/iOS/Info.plist +++ /dev/null @@ -1,32 +0,0 @@ - - - - - LSRequiresIPhoneOS - - UIDeviceFamily - - 1 - 2 - - UIRequiredDeviceCapabilities - - arm64 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - XSAppIconAssets - Assets.xcassets/appicon.appiconset - - diff --git a/src/Banquale/Banquale/Platforms/iOS/Program.cs b/src/Banquale/Banquale/Platforms/iOS/Program.cs deleted file mode 100644 index 9096b85..0000000 --- a/src/Banquale/Banquale/Platforms/iOS/Program.cs +++ /dev/null @@ -1,16 +0,0 @@ -using ObjCRuntime; -using UIKit; - -namespace Banquale; - -public class Program -{ - // This is the main entry point of the application. - static void Main(string[] args) - { - // if you want to use a different Application Delegate class from "AppDelegate" - // you can specify it here. - UIApplication.Main(args, null, typeof(AppDelegate)); - } -} - diff --git a/src/Banquale/Banquale/Resources/AppIcon/appicon.png b/src/Banquale/Banquale/Resources/AppIcon/appicon.png index 0fcc7da..95339fb 100644 Binary files a/src/Banquale/Banquale/Resources/AppIcon/appicon.png and b/src/Banquale/Banquale/Resources/AppIcon/appicon.png differ diff --git a/src/Banquale/Banquale/Resources/AppIcon/appicon1.png b/src/Banquale/Banquale/Resources/AppIcon/appicon1.png new file mode 100644 index 0000000..d7b7701 Binary files /dev/null and b/src/Banquale/Banquale/Resources/AppIcon/appicon1.png differ diff --git a/src/Banquale/Banquale/Resources/AppIcon/appicon2.png b/src/Banquale/Banquale/Resources/AppIcon/appicon2.png new file mode 100644 index 0000000..0fcc7da Binary files /dev/null and b/src/Banquale/Banquale/Resources/AppIcon/appicon2.png differ diff --git a/src/Banquale/Banquale/Resources/Splash/splash1.png b/src/Banquale/Banquale/Resources/Splash/splash1.png new file mode 100644 index 0000000..0fcc7da Binary files /dev/null and b/src/Banquale/Banquale/Resources/Splash/splash1.png differ diff --git a/src/Banquale/Banquale/Resources/Styles/Styles.xaml b/src/Banquale/Banquale/Resources/Styles/Styles.xaml index 2971d61..c361149 100644 --- a/src/Banquale/Banquale/Resources/Styles/Styles.xaml +++ b/src/Banquale/Banquale/Resources/Styles/Styles.xaml @@ -359,7 +359,7 @@