Skip to content
Snippets Groups Projects
Select Git revision
  • 20525c4e5bb12c43f962809040b2847c488f2d72
  • master default protected
2 results

MainWindow.xaml

Blame
  • user avatar
    Timon Römer authored
    80baff5f
    History
    MainWindow.xaml 2.30 KiB
    <Window x:Class="FlowForge.MainWindow"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            Title="Flow-Forge" Height="600" Width="800">
        <Grid x:Name="MainGrid">
            <!-- Define two rows: one fixed height for the button and one for the graph viewer -->
            <Grid.RowDefinitions>
                <RowDefinition Height="70"/>  <!-- Fixed height row for button -->
                <RowDefinition Height="*"/>    <!-- Remaining space for the graph viewer -->
            </Grid.RowDefinitions>
    
            <!-- Button in the first row -->
            <Button x:Name="InitializeGraphButton" 
                    Content="Initialize Graph" 
                    Width="150" 
                    Height="40" 
                    VerticalAlignment="Center" 
                    HorizontalAlignment="Left" 
                    Margin="10" 
                    Grid.Row="0"
                    Panel.ZIndex="1"
                    Click="InitializeGraphButton_Click"/>
            
            <!-- Second Button in the first row -->
            <Button x:Name="RunFordFulkersonButton" 
                    Content="Run Ford-Fulkerson" 
                    Width="150" 
                    Height="40" 
                    VerticalAlignment="Center" 
                    HorizontalAlignment="Left" 
                    Margin="350,10,0,10"
                    Grid.Row="0"
                    Click="FordFulkersonButton_Click"/>
            
            <!-- Second Button in the first row -->
            <Button x:Name="RunEdmondsKarpButton" 
                    Content="Run Edmonds–Karp" 
                    Width="150" 
                    Height="40" 
                    VerticalAlignment="Center" 
                    HorizontalAlignment="Left" 
                    Margin="180,10,0,10"
                    Grid.Row="0"
                    Click="EdmondsKarpButton_Click"/>
            
            <!-- Second Button in the first row -->
            <Button x:Name="Export" 
                    Content="Export" 
                    Width="150" 
                    Height="40" 
                    VerticalAlignment="Center" 
                    HorizontalAlignment="Left" 
                    Margin="520,10,0,10"
                    Grid.Row="0"
                    Click="ExportToLatexButton_Click"/>
    
            
            <!-- Placeholder for graph viewer -->
            <Grid x:Name="GraphViewerGrid" Grid.Row="1"/>
        </Grid>
    </Window>