Skip to content

Instantly share code, notes, and snippets.

View Samirgc's full-sized avatar
🎯
Focusing

Samir GC Samirgc

🎯
Focusing
  • Centura Technologies
  • Kathmandu/Nepal
View GitHub Profile
{
"Services": [
{
"ServiceName": "ProductionCompanyServiceName",
"ServiceUrl": "https://xxxxxxxxxxxxxxxProductionapi.azurewebsites.net/api/"
}
],
"ServiceName": "ProductionCompanyServiceName",
"ServiceUrl": "https://xxxxxxxxxxxxxxxProductionapi.azurewebsites.net/api/",
"AuthServiceUrl": "https://xxxxxxxxxxxxxxxProductionapi.azurewebsites.net/api/"
{
"Services": [
{
"ServiceName": "CompanyServiceName",
"ServiceUrl": "https://xxxxxxxxxxxxxxxdevelopmentapi.azurewebsites.net/api/"
}
],
"ServiceName": "CompanyServiceName",
"ServiceUrl": "https://xxxxxxxxxxxxxxxdevelopmentapi.azurewebsites.net/api/",
"AuthServiceUrl": "https://xxxxxxxxxxxxxxxdevelopmentapi.azurewebsites.net/api/"
public class ConfigurationManager
{
public static void Initialize(Type type)
{
var fileName = $"AppSettings_Development_{ThemeManager.CurrentTheme.ToString()}.json";
#if RELEASE
fileName = $"AppSettings_Production{ThemeManager.CurrentTheme.ToString()}.json";
#endif
AppSetting = type.GetResource<AppSetting>(fileName);
}
public class AppSetting
{
public List<Service> Services { get; set; }
public string ServiceUrl { get; set; }
public string AuthServiceUrl { get; set; }
}
<?xml version="1.0" encoding="utf-8" ?>
<Application xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="App2.App">
<Application.Resources>
<OnPlatform x:Key="MaterialFont"
x:TypeArguments="x:String">
<key>UIAppFonts</key>
<array>
<string>materialdesignicons-webfont.ttf</string>
</array>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace App2
<?xml version="1.0" encoding="utf-8" ?>
<Shell xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:local="clr-namespace:App2"
xmlns:settings="clr-namespace:App2"
FlyoutBackgroundImage="images.jpg"
FlyoutBackgroundImageAspect="AspectFill"
using System;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace App2
{
public partial class App : Application
{
public App()
{
using System;
namespace BankPayment
{
public class CardCreateOptions
{
public string Cardholder { get; set; }
public string Currency { get; set; }
public string Type { get; set; }
//brand