-
Notifications
You must be signed in to change notification settings - Fork 3
/
MainWindow.xaml
91 lines (89 loc) · 3.41 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<Window x:Class="JobsScheduler.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:JobsScheduler"
mc:Ignorable="d"
Title="Home" Height="500" Width="1000">
<Grid>
<TextBlock
Margin="5"
FontWeight="Bold"
FontSize="20"
TextAlignment="Center"
>Job Schedulers App</TextBlock>
<TextBlock
FontSize="15"
TextDecorations="Underline"
Margin="35,35,35,117"
>Choose your prefered Scheduler:</TextBlock>
<StackPanel Margin="51,64,135,101" RenderTransformOrigin="0.5,0.5">
<StackPanel.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="0.109"/>
<TranslateTransform/>
</TransformGroup>
</StackPanel.RenderTransform>
<ComboBox
SelectionChanged="ComboBox_SelectionChanged"
x:Name="Combo_Value"
HorizontalAlignment="Left"
Width="200"
>
<ComboBoxItem >FCFS</ComboBoxItem>
<ComboBoxItem >SJF Preemptive</ComboBoxItem>
<ComboBoxItem>SJF Non-Preemptive</ComboBoxItem>
<ComboBoxItem>Priority Preemptive</ComboBoxItem>
<ComboBoxItem>Priority Non-Preemptive</ComboBoxItem>
<ComboBoxItem>Round Robin</ComboBoxItem>
</ComboBox>
<TextBlock
TextDecorations="Underline"
Margin="50"
FontSize="15"
>Please Enter number of Processes:</TextBlock>
<TextBox
Text="1"
x:Name="ProcessesNo_Input"
PreviewTextInput="ProcessesNo_Input_PreviewTextInput"
InputScope="Number"
Width="50"
Height="30"
HorizontalContentAlignment="Center"
VerticalContentAlignment="Center"
/>
<TextBlock
Visibility="Visible"
TextAlignment="Center"
x:Name="errorMessage"
FontStyle="Italic"
Width="300"
Height="24"
Foreground="Red"
></TextBlock>
<Button
Click="Next_Button_Click"
Cursor="Hand"
Padding="3"
BorderThickness="1.5"
FontSize="15"
Height="30"
Width="150"
Content="Next"
/>
</StackPanel>
<TextBlock
Visibility="Hidden"
x:Name="quantumBlock"
TextAlignment="Center"
Margin="98,338,597,78"
TextDecorations="Underline"
>Enter the quantum:</TextBlock>
<TextBox Visibility="Hidden" x:Name="quantumValue" Width="50" Height="50" Margin="238,347,512,37" HorizontalContentAlignment="Center"
VerticalContentAlignment="Center">
1</TextBox>
</Grid>
</Window>