Maui
continuous-integration/drone/push Build is failing Details

master
etudiant 3 years ago
parent b6a9571f53
commit ee637b14a5

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="CalculateurApp.View.Maquette"
@ -17,12 +17,19 @@
Text="{Binding blocModel.Nom }"
TextColor="Black"
/>
<Button
<Button x:Name="Afer" Text="Modifier" Grid.Row="1" Grid.Column="1" HorizontalOptions="End" VerticalOptions="End" WidthRequest="80"></Button>
<Button
Command="{Binding AddCommand}"
Text="Add"
Text="ajouter"
Grid.Row="1"
Grid.Column="1">
Grid.Column="1"
HorizontalOptions="Center"
VerticalOptions="Center"
WidthRequest="100"
>
</Button>
<Label Text="Liste des blocs" Grid.Row="2" Grid.ColumnSpan="2" FontSize="Header" HorizontalOptions="Center" TextDecorations="Underline" TextColor="Black" FontAttributes="Bold, Italic" ></Label>
<CollectionView Grid.Row="3" Grid.ColumnSpan="2" ItemsSource="{Binding Items}" SelectionMode="None" >
<CollectionView.ItemTemplate>
@ -35,6 +42,8 @@
Command="{Binding Source={RelativeSource AncestorType={x:Type viewmodel:MaquetteViewModel}}, Path=DeleteCommand}"
CommandParameter="{Binding .}"
/>
<SwipeItem Text="AFFICHER" BackgroundColor="BlueViolet"></SwipeItem>
<SwipeItem Text="MODIFIER UES" BackgroundColor="Beige"></SwipeItem>
</SwipeItems>
</SwipeView.RightItems>
<Grid Padding="0">

@ -0,0 +1,21 @@
using CalculateurApp.ViewModel;
using CalculateurMapping;
using ClassCalculateurMoyenne;
using Bussness;
namespace CalculateurApp.View;
public partial class BlockView : ContentPage
{
public BlockView()
{
InitializeComponent();
BindingContext = new MaquetteViewModel ();
}
private async void Aer(object sender, EventArgs e)
{
//Navigation.PushAsync(new BlockView());
}
}

@ -1,42 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:tool="https://schemas.microsoft.com/dotnet/2022/maui/toolkit"
x:Class="CalculateurApp.View.EXE"
Title="EXE">
<Grid
Padding="10"
RowSpacing="60"
ColumnSpacing="6">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition/>
</Grid.ColumnDefinitions >
<Frame Grid.Row="0" BackgroundColor="Black"></Frame>
<Frame Grid.Row="1" BackgroundColor="Yellow"></Frame>
<Button Text=" afficher UE"></Button>
<BoxView Grid.Row="0" BackgroundColor="Red"></BoxView>
<BoxView Grid.Row="1" BackgroundColor="AliceBlue"></BoxView>
</Grid>
<!--<ScrollView >
<VerticalStackLayout Spacing="10" >
<Label Text="rouf"></Label>
<Frame>
</Frame>
</VerticalStackLayout>
</ScrollView>-->
</ContentPage>

@ -1,12 +0,0 @@
using CalculateurApp.ViewModel;
namespace CalculateurApp.View;
public partial class Maquette : ContentPage
{
public Maquette()
{
InitializeComponent();
BindingContext = new MaquetteViewModel ();
}
}

@ -0,0 +1,67 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:viewmodel="clr-namespace:CalculateurApp.ViewModel"
x:DataType="viewmodel:BlocViewModel"
x:Class="CalculateurApp.View.EXE"
Title="Maquette">
<Grid RowDefinitions="100 ,Auto,*"
ColumnDefinitions=".75*,.25*"
Padding="2"
RowSpacing="4"
ColumnSpacing="4">
<Entry Placeholder="Ajout de BLOC DANS LA MAQUETTE"
Grid.Row="1" BackgroundColor="AliceBlue"
Text="{Binding blocModel.Nom }"
TextColor="Black"
/>
<Button
Text="Modifier"
Grid.Row="1"
Grid.Column="1"
HorizontalOptions="Center"
VerticalOptions="Center"
WidthRequest="100"
>
<!--Command="{Binding AddUEBlocCommand}"-->
</Button>
<!--<Label Text="Liste des blocs" Grid.Row="2" Grid.ColumnSpan="2" FontSize="Header" HorizontalOptions="Center" TextDecorations="Underline" TextColor="Black" FontAttributes="Bold, Italic" ></Label>
<CollectionView Grid.Row="3" Grid.ColumnSpan="2" ItemsSource="{Binding Items}" SelectionMode="None" >
<CollectionView.ItemTemplate>
<DataTemplate x:DataType="{x:Type model:BlocModel }">
<SwipeView>
<SwipeView.RightItems>
<SwipeItems>
<SwipeItem Text="Delete"
BackgroundColor="Red"
Command="{Binding Source={RelativeSource AncestorType={x:Type viewmodel:MaquetteViewModel}}, Path=DeleteCommand}"
CommandParameter="{Binding .}"
/>
<SwipeItem Text="Update" BackgroundColor="AliceBlue">
</SwipeItem>
<SwipeItem Text="Ajout de UE" BackgroundColor="Beige"></SwipeItem>
</SwipeItems>
</SwipeView.RightItems>
<Grid Padding="0">
<Frame Grid.Row="1">
<Frame.GestureRecognizers >
<TapGestureRecognizer
Command="{Binding Source={RelativeSource AncestorType={x:Type viewmodel:MaquetteViewModel}}, Path=TapCommand}"
CommandParameter="{Binding .}" />
</Frame.GestureRecognizers>
<Label Text="{Binding Nom}"
FontSize="10" TextColor="Black"
/>
</Frame>
</Grid>
</SwipeView>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView >-->
</Grid>
</ContentPage>

@ -5,5 +5,6 @@ public partial class EXE : ContentPage
public EXE()
{
InitializeComponent();
}
}
}

@ -1,7 +0,0 @@
namespace ClassCalculateurMoyenne
{
public class Class1
{
}
}
Loading…
Cancel
Save