Signed-off-by: studen <Goga@gmail.com>
This commit is contained in:
studen 2025-01-28 13:42:47 +03:00
parent 39e39a19f7
commit b9cc292654
16 changed files with 13 additions and 12 deletions

View File

@ -8,7 +8,7 @@
Title="Demra_Glavnoe">
<DockPanel>
<StackPanel Orientation="Horizontal">
<Button Content="add item"/>
<Button Content="Registr" Click="OnRegistrButtonClick"/>
</StackPanel>
<ListBox x:Name="ItemListBox">
<ListBox.ItemTemplate>

View File

@ -8,4 +8,10 @@ public partial class MainWindow : Window
{
InitializeComponent();
}
private void OnRegistrButtonClick(object sender, Avalonia.Interactivity.RoutedEventArgs e)
{
var registratorWindow = new Registrator();
registratorWindow.Show();
}
}

View File

@ -32,13 +32,13 @@
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Напровление" VerticalAlignment="Center" Margin="10"/>
<TextBox Watermark="" HorizontalAlignment="Stretch" />
<!-- <TextBox Watermark="" HorizontalAlignment="Stretch" /> -->
<ComboBox x:Name="Vibor" SelectedIndex="0"
Width="200" MaxDropDownHeight="300">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding ac}" FontFamily="{Binding}" />
<TextBlock Text="{Binding }" FontFamily="{Binding}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
@ -58,6 +58,7 @@
<TextBlock Text="Повтори пароль" VerticalAlignment="Center" Margin="10"/>
<TextBox Watermark="Re-Pass" HorizontalAlignment="Stretch" />
</StackPanel>
<Image Source="file:///home/class_student/Desktops/Desktop1/КОД 1.2 2023-2025 ВАРИАНТ 6/Вариант 6/Ресурсы/Модераторы_import/foto15.jpg" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="10"/>
<!-- <Image Source="file:///home/class_student/Desktops/Desktop1/КОД 1.2 2023-2025 ВАРИАНТ 6/Вариант 6/Ресурсы/Модераторы_import/foto15.jpg" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="10"/>
-->
</StackPanel>
</Window>

View File

@ -10,12 +10,6 @@ public partial class Registrator : Window
public Registrator()
{
InitializeComponent();
this.Loaded += OnLoaded;
Vibor.Items = Meropriatie
.GetInstalledFontFamilyNames()
.Select(x => new Meropriatie(x))
.OrderBy(x=>x.Activ);
Vibor.SelectedIndex = 0;
}
private void OnLoaded(object sender, RoutedEventArgs e)

View File

@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("AvaloniaApplication3")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+8d201eeb6bfd67af90ba717bd582be2bca2e5749")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+39e39a19f7ae294199a991f5d5d67f7b0054afcf")]
[assembly: System.Reflection.AssemblyProductAttribute("AvaloniaApplication3")]
[assembly: System.Reflection.AssemblyTitleAttribute("AvaloniaApplication3")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@ -1 +1 @@
8b418e6c4ae5453fa3b0577057aae8fdc3c7932fa2be949b3b8e6ecab98184ff
13c70c534b2f216c33893cec8f434ecaba0d0f7b51feb85fa154e7c441f9627f