sonar
parent
500c4fa532
commit
7d4ffdde18
@ -0,0 +1,29 @@
|
||||
<?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.EXE"
|
||||
Title="EXE">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<Grid
|
||||
Padding="10"
|
||||
RowSpacing="600"
|
||||
ColumnSpacing="6">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions >
|
||||
<Grid BackgroundColor="AliceBlue">
|
||||
<Label Text=" Matiere" VerticalOptions="Center" HorizontalOptions="Start"></Label>
|
||||
<Label Text="Coef" Grid.Row="0" Grid.Column="1" VerticalTextAlignment="Center" HorizontalTextAlignment="Center"></Label>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</ContentPage>
|
@ -0,0 +1,9 @@
|
||||
namespace CalculateurApp.View;
|
||||
|
||||
public partial class EXE : ContentPage
|
||||
{
|
||||
public EXE()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
<?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"
|
||||
xmlns:model="clr-namespace:ClassCalculateurMoyenne;assembly=ClassCalculateurMoyenne"
|
||||
x:DataType="viewmodel:UeViewModel"
|
||||
x:Class="CalculateurApp.View.PageUe"
|
||||
Title="PageUe">
|
||||
|
||||
<!--<Frame Margin="10,0,10,0" VerticalOptions="center">
|
||||
<Grid RowDefinitions="100 ,auto,*"
|
||||
ColumnDefinitions=".75*,.25*"
|
||||
Padding="10"
|
||||
RowSpacing="6"
|
||||
ColumnSpacing="6">
|
||||
|
||||
<Entry
|
||||
Placeholder="entrer matiere"
|
||||
Grid.Row="1"
|
||||
Text="{Binding ue}"
|
||||
TextColor="Black"
|
||||
BackgroundColor="AliceBlue"
|
||||
WidthRequest="250"
|
||||
/>
|
||||
<Label Text="{Binding Nom}"></Label>
|
||||
<Button Text="go" Command="{Binding gobackcommand}"></Button>
|
||||
<Entry
|
||||
Placeholder="coef"
|
||||
VerticalOptions="start"
|
||||
HorizontalOptions="start"
|
||||
WidthRequest="100"
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
BackgroundColor="AliceBlue">
|
||||
</Entry>
|
||||
<Button Grid.Column="10" Grid.Row="1" VerticalOptions="end" HorizontalOptions="end" Text="ok" WidthRequest="50"></Button>
|
||||
<CollectionView Grid.Row="2" Grid.Column="2" ItemsSource="{Binding items}" >
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate x:DataType="{x:Type model:ue }">
|
||||
<SwipeView>
|
||||
<SwipeView.RightItems>
|
||||
<SwipeItems>
|
||||
<SwipeItem Text="delete"
|
||||
BackgroundColor="Red"
|
||||
Command="{Binding Source={RelativeSource AncestorType={x:Type viewmodel:blocviewmodel}}, Path=deletecommand}"
|
||||
CommandParameter="{Binding .}"
|
||||
/>
|
||||
</SwipeItems>
|
||||
</SwipeView.RightItems>
|
||||
<Grid Padding="0">
|
||||
<Frame>
|
||||
<Frame.GestureRecognizers>
|
||||
<TapGestureRecognizer
|
||||
Command="{Binding Source={RelativeSource AncestorLevel={x:Type viewmodel:blocviewmodel}}, Path=tapcommand}"
|
||||
CommandParameter="{Binding .}"/>
|
||||
</Frame.GestureRecognizers>
|
||||
<Label Text="{Binding intitulé}"
|
||||
FontSize="10" TextColor="Black" />
|
||||
</Frame>
|
||||
</Grid>
|
||||
</SwipeView>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
</Grid>
|
||||
</Frame>-->
|
||||
|
||||
</ContentPage>
|
@ -0,0 +1,9 @@
|
||||
namespace CalculateurApp.View;
|
||||
|
||||
public partial class PageUe : ContentPage
|
||||
{
|
||||
public PageUe()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
@ -1,58 +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"
|
||||
x:Class="CalculateurApp.View.UE"
|
||||
Title="UE">
|
||||
|
||||
<Frame Margin="10,0,10,0" VerticalOptions="Center">
|
||||
|
||||
<Grid BackgroundColor="White" Padding="30,30,0,39"
|
||||
RowSpacing="-400"
|
||||
ColumnSpacing="10">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
|
||||
<Label Text="MATIERE" Grid.Column="1" WidthRequest="150"></Label>
|
||||
<Entry
|
||||
Grid.Column="2"
|
||||
BackgroundColor="White"
|
||||
HorizontalOptions="Start"
|
||||
VerticalOptions="Start"
|
||||
WidthRequest="150"
|
||||
Placeholder=" Nom de la matiere ">
|
||||
</Entry>
|
||||
<Label Text="COEFFICENT" Grid.Row="1" WidthRequest="150" Grid.Column="1"></Label>
|
||||
<Entry
|
||||
Grid.Row="1"
|
||||
Grid.Column="2"
|
||||
BackgroundColor="White"
|
||||
HorizontalOptions="Start"
|
||||
VerticalOptions="Start"
|
||||
WidthRequest="150"
|
||||
Placeholder=" Nom de la matiere ">
|
||||
</Entry>
|
||||
|
||||
<Button Text="Annuler" HorizontalOptions="Start" VerticalOptions="Center" WidthRequest="110" Grid.Column="0" ></Button>
|
||||
<Button Text="Ajouter" HorizontalOptions="Start" VerticalOptions="Center" Grid.Column="2" WidthRequest="110"></Button>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</Grid>
|
||||
</Frame>
|
||||
</ContentPage>
|
@ -1,13 +0,0 @@
|
||||
using CalculateurApp.ViewModel;
|
||||
|
||||
namespace CalculateurApp.View;
|
||||
|
||||
public partial class UE : ContentPage
|
||||
{
|
||||
|
||||
public UE(UeViewModel u)
|
||||
{
|
||||
InitializeComponent();
|
||||
BindingContext = u;
|
||||
}
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
<?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"
|
||||
xmlns:model="clr-namespace:ClassCalculateurMoyenne;assembly=ClassCalculateurMoyenne"
|
||||
x:DataType="viewmodel:UeViewModel"
|
||||
x:Class="CalculateurApp.View.UEPage1"
|
||||
Title="UEPage1">
|
||||
<Frame Margin="10,0,10,0" >
|
||||
<Grid RowDefinitions="100 ,auto,*"
|
||||
ColumnDefinitions=".75*,.25*"
|
||||
Padding="10"
|
||||
RowSpacing="6"
|
||||
ColumnSpacing="6">
|
||||
|
||||
<Entry
|
||||
Placeholder="entrer matiere"
|
||||
Grid.Row="1"
|
||||
Text="{Binding ma.Nommatiere}"
|
||||
TextColor="Black"
|
||||
BackgroundColor="AliceBlue"
|
||||
WidthRequest="250"
|
||||
/>
|
||||
<!--<Label Text="{Binding }"></Label>-->
|
||||
<!--<Button Text="go" Command="{Binding AddCommand}"></Button>-->
|
||||
<!--<Entry
|
||||
Placeholder="coef"
|
||||
WidthRequest="100"
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
BackgroundColor="AliceBlue"
|
||||
Text="{Binding u.Coefficient}">
|
||||
</Entry>-->
|
||||
<Button Command="{Binding AddCommand}" Grid.Column="10" Grid.Row="1" Text="ok" WidthRequest="50">
|
||||
</Button>
|
||||
<CollectionView Grid.Row="2" Grid.Column="0" ItemsSource="{Binding Items}" >
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate x:DataType="{x:Type model:Matiere }">
|
||||
<SwipeView>
|
||||
<SwipeView.RightItems>
|
||||
<SwipeItems>
|
||||
<SwipeItem Text="delete"
|
||||
BackgroundColor="Red"
|
||||
Command="{Binding Source={RelativeSource AncestorType={x:Type viewmodel:UeViewModel}}, Path=deletecommand}"
|
||||
CommandParameter="{Binding .}"
|
||||
/>
|
||||
</SwipeItems>
|
||||
</SwipeView.RightItems>
|
||||
<Grid Padding="0">
|
||||
<Frame>
|
||||
<Frame.GestureRecognizers>
|
||||
<TapGestureRecognizer
|
||||
|
||||
CommandParameter="{Binding .}"/>
|
||||
</Frame.GestureRecognizers>
|
||||
<Label Text="{Binding Nommatiere}"
|
||||
FontSize="10" TextColor="Black" />
|
||||
</Frame>
|
||||
</Grid>
|
||||
</SwipeView>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
<CollectionView Grid.Row="2" Grid.Column="0" ItemsSource="{Binding Items}" >
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate x:DataType="{x:Type model:Matiere }">
|
||||
<SwipeView>
|
||||
<SwipeView.RightItems>
|
||||
<SwipeItems>
|
||||
<SwipeItem Text="delete"
|
||||
BackgroundColor="Red"
|
||||
Command="{Binding Source={RelativeSource AncestorType={x:Type viewmodel:UeViewModel}}, Path=deletecommand}"
|
||||
CommandParameter="{Binding .}"
|
||||
/>
|
||||
</SwipeItems>
|
||||
</SwipeView.RightItems>
|
||||
<Grid Padding="0">
|
||||
<Frame>
|
||||
<Frame.GestureRecognizers>
|
||||
<TapGestureRecognizer
|
||||
|
||||
CommandParameter="{Binding .}"/>
|
||||
</Frame.GestureRecognizers>
|
||||
<Label Text="{Binding Nommatiere}"
|
||||
FontSize="10" TextColor="Black" />
|
||||
</Frame>
|
||||
</Grid>
|
||||
</SwipeView>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
</Grid>
|
||||
</Frame>
|
||||
</ContentPage>
|
@ -0,0 +1,12 @@
|
||||
using CalculateurApp.ViewModel;
|
||||
|
||||
namespace CalculateurApp.View;
|
||||
|
||||
public partial class UEPage1 : ContentPage
|
||||
{
|
||||
public UEPage1()
|
||||
{
|
||||
InitializeComponent();
|
||||
BindingContext = new UeViewModel();
|
||||
}
|
||||
}
|
Binary file not shown.
Loading…
Reference in new issue