un positionnement de paramètre workflow des pros
parent
7140a70278
commit
bad14bbcd8
@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,73 @@
|
|||||||
|
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.Support.V7.App;
|
||||||
|
using XLabs.Ioc;
|
||||||
|
using XLabs.Platform.Mvvm;
|
||||||
|
using XLabs.Forms;
|
||||||
|
using static Android.Views.View;
|
||||||
|
|
||||||
|
namespace BookAStar.Droid.Markdown
|
||||||
|
{
|
||||||
|
class MDContextMenu : AppCompatDialog
|
||||||
|
{
|
||||||
|
private ActionMode mActionMode = null;
|
||||||
|
public MDContextMenu(Context context) : base(context)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void OnActionModeStarted(ActionMode mode)
|
||||||
|
{
|
||||||
|
if (mActionMode == null)
|
||||||
|
{
|
||||||
|
mActionMode = mode;
|
||||||
|
var menu = mode.Menu;
|
||||||
|
// Remove the default menu items (select all, copy, paste, search)
|
||||||
|
menu.Clear();
|
||||||
|
|
||||||
|
// If you want to keep any of the defaults,
|
||||||
|
// remove the items you don't want individually:
|
||||||
|
// menu.removeItem(android.R.id.[id_of_item_to_remove])
|
||||||
|
|
||||||
|
// Inflate your own menu items
|
||||||
|
mode.MenuInflater.Inflate(Resource.Menu.md_menu, menu);
|
||||||
|
|
||||||
|
}
|
||||||
|
mActionMode = mode;
|
||||||
|
base.OnActionModeStarted(mode);
|
||||||
|
}
|
||||||
|
public override void OnActionModeFinished(ActionMode mode)
|
||||||
|
{
|
||||||
|
base.OnActionModeFinished(mode);
|
||||||
|
}
|
||||||
|
protected override void OnCreate(Bundle savedInstanceState)
|
||||||
|
{
|
||||||
|
base.OnCreate(savedInstanceState);
|
||||||
|
}
|
||||||
|
public void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo)
|
||||||
|
{
|
||||||
|
/* if (menuInfo!=null)
|
||||||
|
{
|
||||||
|
var info = menuInfo.ToString();
|
||||||
|
}
|
||||||
|
menu.Add(0, 0, 0, "test");
|
||||||
|
var subMenu = menu.AddSubMenu(
|
||||||
|
0, 1, 1, "...");
|
||||||
|
subMenu.Add(0, 3, 0, "nkjnkjn");
|
||||||
|
var app = Resolver.Resolve<IXFormsApp>() as IXFormsApp<XFormsCompatApplicationDroid>;
|
||||||
|
|
||||||
|
var mgr = ClipboardManager.FromContext(app.AppContext);
|
||||||
|
if (mgr.HasText)
|
||||||
|
menu.Add(0, 0, 0, "Coller!");*/
|
||||||
|
//base.OnCreateContextMenu(menu, v, menuInfo);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
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.Webkit;
|
||||||
|
|
||||||
|
namespace BookAStar.Droid.Markdown
|
||||||
|
{
|
||||||
|
class MDWebView : WebView
|
||||||
|
{
|
||||||
|
public MDWebView (Context context) : base (context)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public override ActionMode StartActionMode(ActionMode.ICallback callback)
|
||||||
|
{
|
||||||
|
return base.StartActionMode(callback);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,33 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:id="@+id/copy"
|
||||||
|
android:title="@string/copy"/>
|
||||||
|
<group android:id="@+id/group">
|
||||||
|
<item android:id="@+id/past"
|
||||||
|
android:title="@string/past"
|
||||||
|
android:showAsAction="ifRoom|withText"/>
|
||||||
|
</group>
|
||||||
|
<item android:id="@+id/submenu_character"
|
||||||
|
android:title="@string/character" >
|
||||||
|
<menu>
|
||||||
|
<item android:id="@+id/bold"
|
||||||
|
android:title="@string/bold" />
|
||||||
|
<item android:id="@+id/italic"
|
||||||
|
android:title="@string/italic" />
|
||||||
|
<item android:id="@+id/underline"
|
||||||
|
android:title="@string/underline" />
|
||||||
|
</menu>
|
||||||
|
</item>
|
||||||
|
<item android:id="@+id/submenu_paragraph"
|
||||||
|
android:title="@string/paragraph" >
|
||||||
|
<menu>
|
||||||
|
|
||||||
|
<item android:id="@+id/header1"
|
||||||
|
android:onClick="onGroupItemClick"
|
||||||
|
android:title="@string/header1" />
|
||||||
|
<item android:id="@+id/header2"
|
||||||
|
android:onClick="onGroupItemClick"
|
||||||
|
android:title="@string/header2" />
|
||||||
|
</menu>
|
||||||
|
</item>
|
||||||
|
</menu>
|
||||||
@ -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,39 @@
|
|||||||
|
using BookAStar.Views;
|
||||||
|
using Xamarin.Forms;
|
||||||
|
|
||||||
|
namespace BookAStar.Behaviors
|
||||||
|
{
|
||||||
|
public class MarkdownViewLengthValidator : Behavior<MarkdownView>
|
||||||
|
{
|
||||||
|
public static readonly BindableProperty MaxLengthProperty = BindableProperty.Create("MaxLength", typeof(int), typeof(MarkdownViewLengthValidator), 0);
|
||||||
|
public static readonly BindableProperty MinLengthProperty = BindableProperty.Create("MinLength", typeof(int), typeof(MarkdownViewLengthValidator), 0);
|
||||||
|
public int MaxLength
|
||||||
|
{
|
||||||
|
get { return (int)GetValue(MaxLengthProperty); }
|
||||||
|
set { SetValue(MaxLengthProperty, value); }
|
||||||
|
}
|
||||||
|
public int MinLength
|
||||||
|
{
|
||||||
|
get { return (int)GetValue(MinLengthProperty); }
|
||||||
|
set { SetValue(MinLengthProperty, value); }
|
||||||
|
}
|
||||||
|
protected override void OnAttachedTo(MarkdownView bindable)
|
||||||
|
{
|
||||||
|
bindable.Modified += bindable_TextChanged;
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool IsValid { get; set; }
|
||||||
|
|
||||||
|
private void bindable_TextChanged(object sender, TextChangedEventArgs e)
|
||||||
|
{
|
||||||
|
IsValid = e.NewTextValue == null ? false : (e.NewTextValue.Length >= MinLength && e.NewTextValue.Length <= MaxLength);
|
||||||
|
if (!IsValid) if (e.NewTextValue != null) if (e.NewTextValue.Length > MaxLength)
|
||||||
|
((Editor)sender).Text = e.NewTextValue.Substring(0, MaxLength);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void OnDetachingFrom(MarkdownView bindable)
|
||||||
|
{
|
||||||
|
bindable.Modified -= bindable_TextChanged;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
namespace BookAStar.Model.Social
|
||||||
|
{
|
||||||
|
|
||||||
|
public class MusicalPreference : MusicalTendency {
|
||||||
|
|
||||||
|
public long OwnerId { get; set; }
|
||||||
|
public int Rate { get; set; }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
namespace BookAStar.Model.Social
|
||||||
|
{
|
||||||
|
|
||||||
|
public class MusicalTendency {
|
||||||
|
|
||||||
|
public long Id {get; set; }
|
||||||
|
|
||||||
|
public string Name { get ; set; }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
namespace BookAStar.Model.Social
|
||||||
|
{
|
||||||
|
public class LocationType
|
||||||
|
{
|
||||||
|
public long Id { get; set; }
|
||||||
|
|
||||||
|
public string Name { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -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>
|
||||||
@ -0,0 +1,93 @@
|
|||||||
|
<?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:signature="clr-namespace:SignaturePad.Forms;assembly=SignaturePad.Forms"
|
||||||
|
xmlns:views="clr-namespace:BookAStar.Views;assembly=BookAStar"
|
||||||
|
x:Class="BookAStar.Pages.EstimatePages.EstimateSigningPage">
|
||||||
|
|
||||||
|
<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 Padding="10,10,10,10" x:Name="mainLayout">
|
||||||
|
<ScrollView>
|
||||||
|
<StackLayout>
|
||||||
|
<Grid MinimumHeightRequest="12">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="*" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
<ColumnDefinition Width="2*" />
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Label Grid.Row="0" Grid.Column="0" Text="{Binding Client.UserName}" ></Label>
|
||||||
|
<Label Grid.Row="0" Grid.Column="1" Text="{Binding Query.Location.Address}" ></Label>
|
||||||
|
<Label Grid.Row="0" Grid.Column="2" Text="{Binding Query.EventDate, StringFormat='{0:dddd d MMMM yyyy à hh:mm}'}" ></Label>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<Label Text="{Binding Title}" Style="{StaticResource BigLabelStyle}" />
|
||||||
|
|
||||||
|
<views:MarkdownView x:Name="mdview"
|
||||||
|
HorizontalOptions="FillAndExpand"
|
||||||
|
Markdown="{Binding Description}"
|
||||||
|
/>
|
||||||
|
<ListView x:Name="billListView" ItemsSource="{Binding Bill}"
|
||||||
|
MinimumHeightRequest="40" HasUnevenRows="true" VerticalOptions="FillAndExpand"
|
||||||
|
HeightRequest="40" >
|
||||||
|
<ListView.ItemTemplate>
|
||||||
|
<DataTemplate >
|
||||||
|
<ViewCell>
|
||||||
|
<ViewCell.View>
|
||||||
|
<Grid MinimumHeightRequest="12">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="*" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
<ColumnDefinition Width="30" />
|
||||||
|
<ColumnDefinition Width="90" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Label Text="{Binding Description}"
|
||||||
|
Grid.Row="0" Grid.Column="0" ></Label>
|
||||||
|
<Label Text="{Binding Duration, StringFormat=\{0\}}"
|
||||||
|
Grid.Row="0" Grid.Column="1" ></Label>
|
||||||
|
<Label Text="{Binding Count}"
|
||||||
|
Grid.Row="0" Grid.Column="2" ></Label>
|
||||||
|
<Label Text="{Binding UnitaryCost}"
|
||||||
|
Grid.Row="0" Grid.Column="3"
|
||||||
|
FontFamily="Monospace"></Label>
|
||||||
|
</Grid>
|
||||||
|
</ViewCell.View>
|
||||||
|
</ViewCell>
|
||||||
|
</DataTemplate>
|
||||||
|
</ListView.ItemTemplate>
|
||||||
|
</ListView>
|
||||||
|
<Label FormattedText="{Binding FormattedTotal}"/>
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Image Source="{Binding ProSignImage}" HorizontalOptions="Start"></Image>
|
||||||
|
<Image Source="{Binding CliSignImage}" HorizontalOptions="End"></Image>
|
||||||
|
</StackLayout>
|
||||||
|
</StackLayout>
|
||||||
|
</ScrollView>
|
||||||
|
<signature:SignaturePadView x:Name="padView"
|
||||||
|
VerticalOptions="FillAndExpand"
|
||||||
|
HorizontalOptions="FillAndExpand"
|
||||||
|
BackgroundColor="White"
|
||||||
|
CaptionText="{Binding Data.Owner.UserName}" CaptionTextColor="Black"
|
||||||
|
ClearText="Effacer!" ClearTextColor="Red"
|
||||||
|
PromptText="Prompt Here" PromptTextColor="Red"
|
||||||
|
SignatureLineColor="Aqua" StrokeColor="Black" StrokeWidth="2" />
|
||||||
|
<Button Clicked="OnValidate" Text="Valider cette signature" x:Name="btnValidate" />
|
||||||
|
|
||||||
|
</StackLayout>
|
||||||
|
</ContentPage.Content>
|
||||||
|
</ContentPage>
|
||||||
@ -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>
|
||||||
@ -0,0 +1,103 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<TabbedPage 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.Pages.HomePage"
|
||||||
|
Style="{StaticResource PageStyle}"
|
||||||
|
Title="Accueil">
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<TabbedPage.Children>
|
||||||
|
<!-- La recherche d'un pro -->
|
||||||
|
<TabbedPage Title="{x:Static local:Strings.SearchForAPro}" >
|
||||||
|
</TabbedPage>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
les derniers sons/videos/articles postés
|
||||||
|
-->
|
||||||
|
<ContentPage Title="Blogspot">
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Editor x:Name="search_blog_phrase" HorizontalOptions="FillAndExpand"/>
|
||||||
|
<Button x:Name="btn_blog_update" HorizontalOptions="End" />
|
||||||
|
</StackLayout>
|
||||||
|
</ContentPage>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Les demandes devis en attente de réponse (pro)
|
||||||
|
-->
|
||||||
|
<ContentPage Title="Demandes de devis"
|
||||||
|
IsVisible="{Binding UserProfile.IsAPerformer}">
|
||||||
|
<StackLayout BindingContext="{Binding BookQueries}">
|
||||||
|
|
||||||
|
<ListView x:Name="querylist"
|
||||||
|
RefreshCommand="{Binding RefreshQueries}"
|
||||||
|
IsPullToRefreshEnabled="True"
|
||||||
|
ItemsSource="{Binding Queries}"
|
||||||
|
ItemTapped="OnViewBookQueryDetail"
|
||||||
|
HasUnevenRows="true"
|
||||||
|
SeparatorVisibility="Default"
|
||||||
|
SeparatorColor="Black">
|
||||||
|
<ListView.ItemTemplate VerticalOptions="StartAndExpand" >
|
||||||
|
<DataTemplate>
|
||||||
|
<ViewCell>
|
||||||
|
<ViewCell.View>
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="*" />
|
||||||
|
<RowDefinition Height="*" />
|
||||||
|
<RowDefinition Height="*" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Image Grid.Row="0" Grid.Column="0" Grid.RowSpan="4" Source="{Binding Avatar}" />
|
||||||
|
<Label Grid.Row="0" Grid.Column="1" Text="{Binding Client.UserName}" Style="{StaticResource LabelStyle}"></Label>
|
||||||
|
<Label Grid.Row="1" Grid.Column="1" Text="{Binding Data.Reason}"></Label>
|
||||||
|
<Label Grid.Row="2" Grid.Column="1" LineBreakMode="WordWrap" Text="{Binding EventDate, StringFormat='{0:dddd d MMMM à HH:mm}'}" FontFamily="Italic"/>
|
||||||
|
<Label Grid.Row="3" Grid.Column="1" LineBreakMode="WordWrap" Text="{Binding Location.Address}" />
|
||||||
|
</Grid>
|
||||||
|
</ViewCell.View>
|
||||||
|
</ViewCell>
|
||||||
|
</DataTemplate>
|
||||||
|
</ListView.ItemTemplate>
|
||||||
|
</ListView>
|
||||||
|
</StackLayout>
|
||||||
|
</ContentPage>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Les signatures de contrat en souffreances (pro) -->
|
||||||
|
<ContentPage Title="Contrats fournisseur" IsVisible="{Binding UserProfile.IsAPerformer}">
|
||||||
|
</ContentPage>
|
||||||
|
|
||||||
|
<!-- Les signatures de contrat en souffreances (client) -->
|
||||||
|
<ContentPage Title="Contrats client" IsVisible="{Binding UserProfile.IsAPerformer}">
|
||||||
|
</ContentPage>
|
||||||
|
|
||||||
|
<!-- Les annonces pro (pro) -->
|
||||||
|
<ContentPage Title="Annonces pro" IsVisible="{Binding UserProfile.IsAPerformer}">
|
||||||
|
<StackLayout Orientation="Horizontal" >
|
||||||
|
<Editor x:Name="search_pub_pro_phrase" HorizontalOptions="FillAndExpand" VerticalOptions="Start"/>
|
||||||
|
<Button x:Name="btn_pro_pub" HorizontalOptions="End" VerticalOptions="Start" Text="Chercher"/>
|
||||||
|
</StackLayout>
|
||||||
|
</ContentPage>
|
||||||
|
|
||||||
|
<!-- les petites annonces des clients (pro) -->
|
||||||
|
<ContentPage Title="Annonces client" Icon="" IsVisible="{Binding UserProfile.IsAPerformer}">
|
||||||
|
<StackLayout Orientation="Horizontal" >
|
||||||
|
<Editor x:Name="search_pub_cli_phrase" HorizontalOptions="FillAndExpand" VerticalOptions="Start"/>
|
||||||
|
<Button x:Name="btn_cli_pub" HorizontalOptions="End" VerticalOptions="Start" Text="Chercher"/>
|
||||||
|
</StackLayout>
|
||||||
|
</ContentPage>
|
||||||
|
</TabbedPage.Children>
|
||||||
|
|
||||||
|
</TabbedPage>
|
||||||
@ -1,17 +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"
|
|
||||||
x:Class="BookAStar.Pages.HomePage"
|
|
||||||
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>
|
|
||||||
<Label Text="Blah" VerticalOptions="Center" HorizontalOptions="Center" />
|
|
||||||
</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>
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue