КОД
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:local="clr-namespace:TracePad"
|
xmlns:local="clr-namespace:TracePad"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Title="MainWindow" Height="670" Width="600">
|
Title="MainWindow" Height="800" Width="600">
|
||||||
|
|
||||||
<!-- Отключение системного заголовка -->
|
<!-- Отключение системного заголовка -->
|
||||||
<WindowChrome.WindowChrome>
|
<WindowChrome.WindowChrome>
|
||||||
@@ -354,6 +354,62 @@
|
|||||||
|
|
||||||
<!-- Разделитель -->
|
<!-- Разделитель -->
|
||||||
<Separator Height="20" Background="Transparent"/>
|
<Separator Height="20" Background="Transparent"/>
|
||||||
|
|
||||||
|
<!-- Комментарий к шагу -->
|
||||||
|
<Grid>
|
||||||
|
<!-- Стили -->
|
||||||
|
<Grid.Resources>
|
||||||
|
<Style TargetType="TextBlock">
|
||||||
|
<Setter Property="FontFamily" Value="Consolas"/>
|
||||||
|
<Setter Property="FontSize" Value="13"/>
|
||||||
|
<Setter Property="FontWeight" Value="Bold"/>
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
||||||
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||||
|
</Style>
|
||||||
|
</Grid.Resources>
|
||||||
|
|
||||||
|
<!-- Строки -->
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="20"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<!-- Колонны -->
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="100"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="Комментарий"/>
|
||||||
|
|
||||||
|
<TextBox Grid.Row="0" Grid.Column="1" Background="Transparent" x:Name="Comment"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<!-- Разделитель -->
|
||||||
|
<Separator Height="20" Background="Transparent"/>
|
||||||
|
|
||||||
|
<!-- Панель для списка шагов -->
|
||||||
|
<Grid Grid.Column="1" Margin="15,10,15,10">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<TextBlock Grid.Row="0" Text="История шагов:" FontFamily="Consolas" FontSize="13" FontWeight="Bold" Margin="0,0,0,5" HorizontalAlignment="Left"/>
|
||||||
|
|
||||||
|
<ListBox Grid.Row="1" ItemsSource="{Binding Steps}" SelectedItem="{Binding CurrentStep}" Background="#F5F5F5" BorderBrush="#DCDCDC">
|
||||||
|
<ListBox.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<StackPanel Orientation="Horizontal" Margin="2">
|
||||||
|
<TextBlock Text="▶ " FontFamily="Consolas" Foreground="Gray"/>
|
||||||
|
<TextBlock Text="{Binding Comment}" FontFamily="Consolas" MaxWidth="160" TextTrimming="CharacterEllipsis"/>
|
||||||
|
</StackPanel>
|
||||||
|
</DataTemplate>
|
||||||
|
</ListBox.ItemTemplate>
|
||||||
|
</ListBox>
|
||||||
|
|
||||||
|
<Button Grid.Row="2" Content="Удалить шаг" FontFamily="Consolas" Margin="0,8,0,4" Height="30" Click="DeleteStep_Click"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
<!-- Кнопки управления -->
|
<!-- Кнопки управления -->
|
||||||
<Grid>
|
<Grid>
|
||||||
|
|||||||
@@ -10,6 +10,6 @@ namespace TracePad
|
|||||||
}
|
}
|
||||||
public void MinimizeButtonClick(object sender, EventArgs e) => this.WindowState = WindowState.Minimized; // Minimize Button
|
public void MinimizeButtonClick(object sender, EventArgs e) => this.WindowState = WindowState.Minimized; // Minimize Button
|
||||||
public void ExitButtonClick(object sender, EventArgs e) => Application.Current.Shutdown(); // Exit Button
|
public void ExitButtonClick(object sender, EventArgs e) => Application.Current.Shutdown(); // Exit Button
|
||||||
|
public void DeleteStep_Click(object sender, EventArgs e) { } // Delete Step :)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace TracePad
|
||||||
|
{
|
||||||
|
class StepData
|
||||||
|
{
|
||||||
|
// Основные регистры
|
||||||
|
public string RAX { get; set; } = "0000000000000000";
|
||||||
|
public string RBX { get; set; } = "0000000000000000";
|
||||||
|
public string RCX { get; set; } = "0000000000000000";
|
||||||
|
public string RDX { get; set; } = "0000000000000000";
|
||||||
|
|
||||||
|
// Индексы и указатели
|
||||||
|
public string RSI { get; set; } = "0000000000000000";
|
||||||
|
public string RDI { get; set; } = "0000000000000000";
|
||||||
|
public string RBP { get; set; } = "0000000000000000";
|
||||||
|
public string RSP { get; set; } = "0000000000000000";
|
||||||
|
public string RIP { get; set; } = "0000000000000000";
|
||||||
|
|
||||||
|
// Регистры R8-R15
|
||||||
|
public string R8 { get; set; } = "0000000000000000";
|
||||||
|
public string R9 { get; set; } = "0000000000000000";
|
||||||
|
public string R10 { get; set; } = "0000000000000000";
|
||||||
|
public string R11 { get; set; } = "0000000000000000";
|
||||||
|
public string R12 { get; set; } = "0000000000000000";
|
||||||
|
public string R13 { get; set; } = "0000000000000000";
|
||||||
|
public string R14 { get; set; } = "0000000000000000";
|
||||||
|
public string R15 { get; set; } = "0000000000000000";
|
||||||
|
|
||||||
|
// Флаги состояния
|
||||||
|
public bool CF { get; set; } = false;
|
||||||
|
public bool PF { get; set; } = false;
|
||||||
|
public bool AF { get; set; } = false;
|
||||||
|
public bool ZF { get; set; } = false;
|
||||||
|
public bool SF { get; set; } = false;
|
||||||
|
public bool TF { get; set; } = false;
|
||||||
|
public bool IF { get; set; } = false;
|
||||||
|
public bool DF { get; set; } = false;
|
||||||
|
public bool OF { get; set; } = false;
|
||||||
|
|
||||||
|
// Комментарий к шагу
|
||||||
|
public string Comment { get; set; } = string.Empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user