WIP
parent
280be89fd3
commit
f6b375ab5e
@ -0,0 +1,58 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
using Android.App;
|
||||||
|
using Android.Content;
|
||||||
|
using Android.OS;
|
||||||
|
using Android.Runtime;
|
||||||
|
using Android.Views;
|
||||||
|
using Android.Widget;
|
||||||
|
using Android.Accounts;
|
||||||
|
|
||||||
|
namespace BookAStar.Droid.Accounts
|
||||||
|
{
|
||||||
|
class YavscAccountAuthenticator : AbstractAccountAuthenticator
|
||||||
|
{
|
||||||
|
public YavscAccountAuthenticator(Context context): base(context)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override Bundle AddAccount(AccountAuthenticatorResponse response, string accountType, string authTokenType, string[] requiredFeatures, Bundle options)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public override Bundle ConfirmCredentials(AccountAuthenticatorResponse response, Account account, Bundle options)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public override Bundle EditProperties(AccountAuthenticatorResponse response, string accountType)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public override Bundle GetAuthToken(AccountAuthenticatorResponse response, Account account, string authTokenType, Bundle options)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public override string GetAuthTokenLabel(string authTokenType)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public override Bundle HasFeatures(AccountAuthenticatorResponse response, Account account, string[] features)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public override Bundle UpdateCredentials(AccountAuthenticatorResponse response, Account account, string authTokenType, Bundle options)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,41 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
using Android.App;
|
||||||
|
using Android.Content;
|
||||||
|
using Android.OS;
|
||||||
|
using Android.Runtime;
|
||||||
|
using Android.Views;
|
||||||
|
using Android.Widget;
|
||||||
|
using BookAStar.Droid.OAuth;
|
||||||
|
|
||||||
|
namespace BookAStar.Droid.Services
|
||||||
|
{
|
||||||
|
[Service(
|
||||||
|
Name = "fr.pschneider.bas.AccountChooserService",
|
||||||
|
Label = "Yavsc accounts service",
|
||||||
|
Icon = "@drawable/icon",
|
||||||
|
Exported = true,
|
||||||
|
Enabled = true
|
||||||
|
)]
|
||||||
|
[IntentFilter(new String[] { "android.accounts.AccountAuthenticator" })]
|
||||||
|
|
||||||
|
class AccountChooserService : Service
|
||||||
|
{
|
||||||
|
public static YaOAuth2Authenticator authenticator;
|
||||||
|
public override void OnCreate()
|
||||||
|
{
|
||||||
|
base.OnCreate();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override IBinder OnBind(Intent intent)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,51 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
x:Class="BookAStar.Pages.ClientPages.SearchPage"
|
||||||
|
xmlns:views="clr-namespace:BookAStar.Views;assembly=BookAStar"
|
||||||
|
xmlns:controls="clr-namespace:XLabs.Forms.Controls;assembly=XLabs.Forms"
|
||||||
|
xmlns:toolkit="clr-namespace:XLabs.Forms.Mvvm;assembly=XLabs.Forms"
|
||||||
|
xmlns:converters="clr-namespace:BookAStar.Converters;assembly=BookAStar"
|
||||||
|
xmlns:local="clr-namespace:BookAStar;Assembly:BookAStar"
|
||||||
|
xmlns:extensions="clr-namespace:BookAStar.Extensions;assembly=BookAStar"
|
||||||
|
|
||||||
|
Style="{StaticResource PageStyle}" >
|
||||||
|
|
||||||
|
<TabbedPage.Children>
|
||||||
|
<ContentPage Title="Une star" Icon="">
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Editor x:Name="search_phrase" HorizontalOptions="FillAndExpand"/>
|
||||||
|
<Button x:Name="btn_update" HorizontalOptions="End" />
|
||||||
|
</StackLayout>
|
||||||
|
<DatePicker x:Name="search_date" />
|
||||||
|
</ContentPage>
|
||||||
|
</TabbedPage.Children>
|
||||||
|
<TabbedPage.Children>
|
||||||
|
<ContentPage Title="Un DJ" Icon="">
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Editor x:Name="search_phrase" HorizontalOptions="FillAndExpand"/>
|
||||||
|
<Button x:Name="btn_update" HorizontalOptions="End" />
|
||||||
|
</StackLayout>
|
||||||
|
<DatePicker x:Name="search_date" />
|
||||||
|
</ContentPage>
|
||||||
|
</TabbedPage.Children>
|
||||||
|
<TabbedPage.Children>
|
||||||
|
<ContentPage Title="Un chanteur" Icon="">
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Editor x:Name="search_phrase" HorizontalOptions="FillAndExpand"/>
|
||||||
|
<Button x:Name="btn_update" HorizontalOptions="End" />
|
||||||
|
</StackLayout>
|
||||||
|
<DatePicker x:Name="search_date" />
|
||||||
|
</ContentPage>
|
||||||
|
</TabbedPage.Children>
|
||||||
|
<TabbedPage.Children>
|
||||||
|
<ContentPage Title="Une formation musicale" Icon="">
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Editor x:Name="search_phrase" HorizontalOptions="FillAndExpand"/>
|
||||||
|
<Button x:Name="btn_update" HorizontalOptions="End" />
|
||||||
|
</StackLayout>
|
||||||
|
<DatePicker x:Name="search_date" />
|
||||||
|
</ContentPage>
|
||||||
|
</TabbedPage.Children>
|
||||||
|
|
||||||
|
</TabbedPage>
|
||||||
@ -1,7 +1,40 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
|
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
x:Class="BookAStar.Pages.EstimatesClientPage">
|
x:Class="BookAStar.Pages.EstimatesClientPage"
|
||||||
|
Style="{StaticResource PageStyle}">
|
||||||
<Label Text="{Binding MainText}" VerticalOptions="Center" HorizontalOptions="Center" />
|
|
||||||
|
<ScrollView>
|
||||||
|
<StackLayout Padding="10,10,10,10" x:Name="mainLayout">
|
||||||
|
<ListView RefreshCommand="{Binding RefreshCommand}" IsPullToRefreshEnabled="True"
|
||||||
|
ItemsSource="{Binding Estimates}" x:Name="estimates" ItemTapped="OnViewDetail" HasUnevenRows="true" RowHeight="80">
|
||||||
|
<ListView.ItemTemplate HeightRequest="80" VerticalOptions="StartAndExpand">
|
||||||
|
<DataTemplate>
|
||||||
|
<ViewCell>
|
||||||
|
<ViewCell.View>
|
||||||
|
<StackLayout Orientation="Horizontal" Padding="10,10,10,10" VerticalOptions="StartAndExpand">
|
||||||
|
<StackLayout Orientation="Vertical"
|
||||||
|
HeightRequest="80" VerticalOptions="StartAndExpand">
|
||||||
|
|
||||||
|
<StackLayout Orientation="Vertical" >
|
||||||
|
<Image Source="{Binding Owner.Avatar}" />
|
||||||
|
<Label Text="{Binding Client.UserName}"
|
||||||
|
Style="{StaticResource labelStyle}"></Label>
|
||||||
|
</StackLayout>
|
||||||
|
|
||||||
|
<Label LineBreakMode="WordWrap" Text="{Binding EventDate, StringFormat='{0:dddd d MMMM à HH:mm}'}" FontSize="12" FontFamily="Italic"/>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout Orientation="Vertical" HorizontalOptions="FillAndExpand">
|
||||||
|
<Label LineBreakMode="WordWrap" Text="{Binding Location.Address}"/>
|
||||||
|
<Label Text="{Binding Previsionnal}"/>
|
||||||
|
<Label Text="{Binding Id}" HorizontalTextAlignment="End"/>
|
||||||
|
</StackLayout>
|
||||||
|
</StackLayout>
|
||||||
|
</ViewCell.View>
|
||||||
|
</ViewCell>
|
||||||
|
</DataTemplate>
|
||||||
|
</ListView.ItemTemplate>
|
||||||
|
</ListView>
|
||||||
|
</StackLayout>
|
||||||
|
</ScrollView>
|
||||||
</ContentPage>
|
</ContentPage>
|
||||||
@ -1,55 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
||||||
xmlns:local="clr-namespace:BookAStar;Assembly:BookAStar"
|
|
||||||
x:Class="BookAStar.SearchPage" Title="Page de recherche"
|
|
||||||
Style="{StaticResource PageStyle}">
|
|
||||||
<ContentPage.Resources>
|
|
||||||
<ResourceDictionary>
|
|
||||||
<Style TargetType="Label">
|
|
||||||
<Setter Property="Style" Value="{StaticResource ContentLabelStyle}" />
|
|
||||||
</Style>
|
|
||||||
<Style TargetType="Button">
|
|
||||||
<Setter Property="Style" Value="{StaticResource ButtonStyle}" />
|
|
||||||
</Style>
|
|
||||||
</ResourceDictionary>
|
|
||||||
</ContentPage.Resources>
|
|
||||||
<ContentPage.Content>
|
|
||||||
<StackLayout>
|
|
||||||
|
|
||||||
|
|
||||||
<StackLayout Orientation="Horizontal">
|
|
||||||
<Editor x:Name="search_phrase" HorizontalOptions="FillAndExpand"/>
|
|
||||||
<Button x:Name="btn_update" HorizontalOptions="End" />
|
|
||||||
</StackLayout>
|
|
||||||
<DatePicker x:Name="search_date" />
|
|
||||||
|
|
||||||
<ListView x:Name="list" ItemsSource="{x:Static local:Manager.Events}"
|
|
||||||
HasUnevenRows="true">
|
|
||||||
<ListView.ItemTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<ViewCell>
|
|
||||||
<ViewCell.View>
|
|
||||||
<StackLayout Orientation="Horizontal">
|
|
||||||
<Image Source="{Binding ImgLocator}" HeightRequest="80" />
|
|
||||||
<StackLayout Orientation="Vertical">
|
|
||||||
<Label Text="{Binding Title}"/>
|
|
||||||
<StackLayout Orientation="Horizontal">
|
|
||||||
<StackLayout><Label Text="Heure:" FontAttributes="Italic" FontSize="9" />
|
|
||||||
<Label Text="{Binding StartDate, StringFormat='{0:H:mm}'}" VerticalOptions="End"/>
|
|
||||||
</StackLayout>
|
|
||||||
<StackLayout><Label Text="Lieu:" FontAttributes="Italic" FontSize="9" VerticalOptions="End"/>
|
|
||||||
<Label Text="{Binding Location.Name}"/></StackLayout>
|
|
||||||
|
|
||||||
<Label Text="{Binding Promotion}" FontSize="20" TextColor="Yellow" BackgroundColor="#102030"/>
|
|
||||||
</StackLayout>
|
|
||||||
</StackLayout>
|
|
||||||
</StackLayout>
|
|
||||||
</ViewCell.View>
|
|
||||||
</ViewCell>
|
|
||||||
</DataTemplate>
|
|
||||||
</ListView.ItemTemplate>
|
|
||||||
</ListView>
|
|
||||||
</StackLayout>
|
|
||||||
</ContentPage.Content>
|
|
||||||
</ContentPage>
|
|
||||||
Loading…
Reference in New Issue