|
4 | 4 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
5 | 5 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
6 | 6 | mc:Ignorable="d" |
7 | | - Title="Fetch Data From XML File" Height="820" Width="1500"> |
8 | | - |
9 | | - <Grid Background="#FFD0FFFF"> |
10 | | - <!-- Input area for input channel name --> |
11 | | - <DockPanel Background="#FFD0FFFF" Margin="5,10,5,50"> |
12 | | - <WrapPanel HorizontalAlignment="Left" DockPanel.Dock="Top" Margin="0,0,0,10"> |
13 | | - <Label Content="Enter XML file" Margin="5"/> |
14 | | - <Button Width="75" Height="30" Name="btnOpenFile" Click="btnOpenFile_Click" BorderBrush="White" Background="#FF00FF90">Open file</Button> |
15 | | - <Label Visibility="Hidden" Content=" Enter Input Count" Margin="5"/> |
16 | | - <ComboBox Name="Count" Height="30" Visibility="Hidden"> |
17 | | - <ComboBoxItem IsSelected="True">1</ComboBoxItem> |
18 | | - <ComboBoxItem>2</ComboBoxItem> |
19 | | - <ComboBoxItem>3</ComboBoxItem> |
20 | | - <ComboBoxItem>4</ComboBoxItem> |
21 | | - <ComboBoxItem>5</ComboBoxItem> |
22 | | - <ComboBoxItem>6</ComboBoxItem> |
23 | | - <ComboBoxItem>7</ComboBoxItem> |
24 | | - </ComboBox> |
25 | | - <Label Content="Export File"/> |
26 | | - <CheckBox Visibility="Visible" IsChecked="True" Margin="5" Name="exportFile"/> |
27 | | - <Grid Margin="5,15,0,0"> |
28 | | - <Grid.ColumnDefinitions> |
29 | | - <ColumnDefinition /> |
30 | | - <ColumnDefinition /> |
31 | | - <ColumnDefinition /> |
32 | | - <ColumnDefinition /> |
33 | | - <ColumnDefinition /> |
34 | | - <ColumnDefinition /> |
35 | | - <ColumnDefinition /> |
36 | | - <ColumnDefinition /> |
37 | | - <ColumnDefinition /> |
38 | | - <ColumnDefinition /> |
39 | | - <ColumnDefinition /> |
40 | | - </Grid.ColumnDefinitions> |
41 | | - <Grid.RowDefinitions> |
42 | | - <RowDefinition/> |
43 | | - |
44 | | - </Grid.RowDefinitions> |
45 | | - <TextBox Name="text0" Grid.Column = "0" Margin="0,0,10,0" FontSize="30" Width= "250" /> |
46 | | - <TextBox Name="text1" Grid.Column = "1" Margin="0,0,10,0" FontSize="30" Width= "250" /> |
47 | | - <TextBox Name="text2" Grid.Column = "2" Margin="0,0,10,0" FontSize="30" Width= "250"/> |
48 | | - <TextBox Name="text3" Grid.Column = "3" Margin="0,0,10,0" FontSize="30" Width= "250" /> |
49 | | - <TextBox Name="text4" Grid.Column = "4" Margin="0,0,10,0" FontSize="30" Width= "250" /> |
50 | | - <TextBox Name="text5" Grid.Column = "5" Margin="0,0,10,0" FontSize="30" Width= "250" /> |
51 | | - <TextBox Name="text6" Grid.Column = "6" Margin="0,0,10,0" FontSize="30" Width= "250" /> |
52 | | - <TextBox Name="text7" Grid.Column = "7" Margin="0,0,10,0" FontSize="30" Width= "250"/> |
53 | | - <TextBox Name="text8" Grid.Column = "8" Margin="0,0,10,0" FontSize="30" Width= "250" /> |
54 | | - <TextBox Name="text9" Grid.Column = "9" Margin="0,0,10,0" FontSize="30" Width= "250" /> |
55 | | - </Grid> |
56 | | - <Button Click="Fetch_Data" Height="26" Margin="0,0,0,10" VerticalAlignment="Bottom" Background="#FF00FF90" Content="Fetch Data" Width="78"/> |
57 | | - </WrapPanel> |
58 | | - <TextBox Padding="5,5,0,0" Name="history" Text="History" FontWeight="Bold" FontSize="25" Margin="5,80,5,0" Width="250" Height="451" VerticalAlignment="Top"/> |
59 | | - <TextBox Padding="5,5,0,0" FontSize="24" Text="" Name="txtEditor" FontWeight="Bold" Margin="5,80,5,0"/> |
60 | | - </DockPanel> |
61 | | - <Label Content="History" VerticalAlignment="Top" Margin="5,165,95,0" Height="28"/> |
62 | | - <Button Margin="10,5,0,80" Height="35" Background="#FF00FF90" Width="150" HorizontalAlignment="Left" VerticalAlignment="Bottom" Click="Clear_history">Clear History</Button> |
63 | | - <ProgressBar Minimum="0" Maximum="1" Name="progressBar" Height="20" VerticalAlignment="Bottom" Margin="5,779,5,0" Foreground="#FF12FDCD" BorderBrush="#FFD0FFFF" Background="#FFD3F9EE"/> |
64 | | - |
65 | | -<!-- ComboBox for select channel name --> |
66 | | - <ComboBox Width="150" VerticalAlignment="Top" Height="50" Name="selectId" HorizontalAlignment="Left" Margin="10,115,0,629"> |
67 | | - <ComboBoxItem IsSelected="True">--Select Channel ID--</ComboBoxItem> |
68 | | - </ComboBox> |
69 | | - <ComboBox Width="150" VerticalAlignment="Top" Height="50" Name="selectId1" HorizontalAlignment="Left" Margin="165,115,0,629" > |
70 | | - <ComboBoxItem IsSelected="True">--Select Channel ID--</ComboBoxItem> |
71 | | - </ComboBox> |
72 | | - <ComboBox Width="150" VerticalAlignment="Top" Height="50" Name="selectId2" HorizontalAlignment="Left" Margin="320,115,0,629" > |
73 | | - <ComboBoxItem IsSelected="True">--Select Channel ID--</ComboBoxItem> |
74 | | - </ComboBox> |
75 | | - <ComboBox Width="150" VerticalAlignment="Top" Height="50" Name="selectId3" HorizontalAlignment="Left" Margin="475,115,0,629" > |
76 | | - <ComboBoxItem IsSelected="True">--Select Channel ID--</ComboBoxItem> |
77 | | - </ComboBox> |
78 | | - <ComboBox Width="150" VerticalAlignment="Top" Height="50" Name="selectId4" HorizontalAlignment="Left" Margin="630,115,0,629" > |
79 | | - <ComboBoxItem IsSelected="True">--Select Channel ID--</ComboBoxItem> |
80 | | - </ComboBox> |
81 | | - <Label VerticalAlignment="Top" Content="Select Channel ID" Margin="788,113,5,0"/> |
82 | | - <Button Height="26" Background="#FF00FF90" Content="Select Channel from file" Width="200" VerticalAlignment="Top" Click="GetChannelFromFile" Margin="15"/> |
| 7 | + Title="Fetch Data From XML File" Height="1000" Width="1500"> |
83 | 8 |
|
| 9 | + <Grid Background="#0a3d62"> |
| 10 | + |
| 11 | + <Grid.RowDefinitions> |
| 12 | + <RowDefinition Height="100"/> |
| 13 | + <RowDefinition Height="280"/> |
| 14 | + <RowDefinition/> |
| 15 | + </Grid.RowDefinitions> |
| 16 | + |
| 17 | + <!-- File I/O --> |
| 18 | + <Grid x:Name="InpOut" Grid.Row="0" Background="#82ccdd" Height="90" Margin="5" VerticalAlignment="Top"> |
| 19 | + <Grid.RowDefinitions> |
| 20 | + <RowDefinition Height="30"/> |
| 21 | + <RowDefinition /> |
| 22 | + </Grid.RowDefinitions> |
| 23 | + <Grid.ColumnDefinitions> |
| 24 | + <ColumnDefinition/> |
| 25 | + <ColumnDefinition/> |
| 26 | + <ColumnDefinition/> |
| 27 | + <ColumnDefinition/> |
| 28 | + </Grid.ColumnDefinitions> |
| 29 | + <Label FontWeight="Bold" Grid.Row="0" Grid.Column="1" VerticalAlignment="Top" HorizontalContentAlignment="Right" Content="Fetching"/> |
| 30 | + <Label FontWeight="Bold" Grid.Row="0" Grid.Column="2" VerticalAlignment="Top" HorizontalContentAlignment="Left" Content="Data"/> |
| 31 | + |
| 32 | + <Label Grid.Column="0" VerticalAlignment="Top" Grid.Row="1" HorizontalAlignment="Center" Content="Enter XML file"/> |
| 33 | + <Button Grid.Column="0" VerticalAlignment="Bottom" Grid.Row="1" Height="26" Name="btnOpenFile" Margin="15,0,15,5" BorderBrush="#0c2461" Background="#079992" Click="btnOpenFile_Click">Open file</Button> |
| 34 | + |
| 35 | + <Label Grid.Column="1" Grid.Row="1" VerticalAlignment="Top" HorizontalAlignment="Center" Content="Select Channel From File" /> |
| 36 | + <Button Height="26" Grid.Row="1" Grid.Column="1" VerticalAlignment="Bottom" BorderBrush="#0c2461" Background="#079992" Content="Select Channel" Margin="15,0,15,5" Click="GetChannelFromFile" /> |
| 37 | + |
| 38 | + <Label Grid.Column="2" Grid.Row="1" VerticalAlignment="Top" HorizontalAlignment="Center" Content="Export File"/> |
| 39 | + <CheckBox Grid.Column="2" Grid.Row="1" VerticalAlignment="Bottom" HorizontalAlignment="Center" IsChecked="True" Margin="5" Name="exportFile"/> |
| 40 | + |
| 41 | + <Label Visibility="Hidden" Grid.Row="1" Grid.Column="3" VerticalAlignment="Top" HorizontalAlignment="Center" Content="Enter Input Count"/> |
| 42 | + <ComboBox Visibility="Hidden" Name="Count" Height="26" Margin="15,0,15,5" Grid.Row="1" VerticalAlignment="Bottom" Grid.Column="3"> |
| 43 | + <ComboBoxItem IsSelected="True">5</ComboBoxItem> |
| 44 | + <ComboBoxItem>10</ComboBoxItem> |
| 45 | + <ComboBoxItem>15</ComboBoxItem> |
| 46 | + <ComboBoxItem>20</ComboBoxItem> |
| 47 | + <ComboBoxItem>25</ComboBoxItem> |
| 48 | + <ComboBoxItem>30</ComboBoxItem> |
| 49 | + </ComboBox> |
| 50 | + </Grid> |
| 51 | + |
| 52 | + <!-- Channel name input area --> |
| 53 | + <Grid x:Name="ChannelInput" Grid.Row="1" Margin="5,0,5,5" Height="250" Background="#82ccdd" > |
| 54 | + <Grid.RowDefinitions> |
| 55 | + <RowDefinition/> |
| 56 | + <RowDefinition/> |
| 57 | + <RowDefinition/> |
| 58 | + <RowDefinition/> |
| 59 | + <RowDefinition/> |
| 60 | + <RowDefinition/> |
| 61 | + <RowDefinition/> |
| 62 | + </Grid.RowDefinitions> |
| 63 | + <Grid.ColumnDefinitions> |
| 64 | + <ColumnDefinition/> |
| 65 | + <ColumnDefinition/> |
| 66 | + <ColumnDefinition/> |
| 67 | + <ColumnDefinition/> |
| 68 | + <ColumnDefinition/> |
| 69 | + </Grid.ColumnDefinitions> |
| 70 | + |
| 71 | + <TextBox Name="text0" Grid.Column = "0" Grid.Row="0" Margin="2" FontSize="18" /> |
| 72 | + <TextBox Name="text1" Grid.Column = "1" Grid.Row="0" Margin="2" FontSize="18" /> |
| 73 | + <TextBox Name="text2" Grid.Column = "2" Grid.Row="0" Margin="2" FontSize="18" /> |
| 74 | + <TextBox Name="text3" Grid.Column = "3" Grid.Row="0" Margin="2" FontSize="18" /> |
| 75 | + <TextBox Name="text4" Grid.Column = "4" Grid.Row="0" Margin="2" FontSize="18" /> |
| 76 | + |
| 77 | + <TextBox Name="text5" Grid.Column = "0" Grid.Row="1" Margin="2" FontSize="18" /> |
| 78 | + <TextBox Name="text6" Grid.Column = "1" Grid.Row="1" Margin="2" FontSize="18" /> |
| 79 | + <TextBox Name="text7" Grid.Column = "2" Grid.Row="1" Margin="2" FontSize="18" /> |
| 80 | + <TextBox Name="text8" Grid.Column = "3" Grid.Row="1" Margin="2" FontSize="18" /> |
| 81 | + <TextBox Name="text9" Grid.Column = "4" Grid.Row="1" Margin="2" FontSize="18" /> |
| 82 | + |
| 83 | + <TextBox Name="text10" Grid.Column = "0" Grid.Row="2" Margin="2" FontSize="18" /> |
| 84 | + <TextBox Name="text11" Grid.Column = "1" Grid.Row="2" Margin="2" FontSize="18" /> |
| 85 | + <TextBox Name="text12" Grid.Column = "2" Grid.Row="2" Margin="2" FontSize="18" /> |
| 86 | + <TextBox Name="text13" Grid.Column = "3" Grid.Row="2" Margin="2" FontSize="18" /> |
| 87 | + <TextBox Name="text14" Grid.Column = "4" Grid.Row="2" Margin="2" FontSize="18" /> |
| 88 | + |
| 89 | + <TextBox Name="text15" Grid.Column = "0" Grid.Row="3" Margin="2" FontSize="18" /> |
| 90 | + <TextBox Name="text16" Grid.Column = "1" Grid.Row="3" Margin="2" FontSize="18" /> |
| 91 | + <TextBox Name="text17" Grid.Column = "2" Grid.Row="3" Margin="2" FontSize="18" /> |
| 92 | + <TextBox Name="text18" Grid.Column = "3" Grid.Row="3" Margin="2" FontSize="18" /> |
| 93 | + <TextBox Name="text19" Grid.Column = "4" Grid.Row="3" Margin="2" FontSize="18" /> |
| 94 | + |
| 95 | + <TextBox Name="text20" Grid.Column = "0" Grid.Row="4" Margin="2" FontSize="18" /> |
| 96 | + <TextBox Name="text21" Grid.Column = "1" Grid.Row="4" Margin="2" FontSize="18" /> |
| 97 | + <TextBox Name="text22" Grid.Column = "2" Grid.Row="4" Margin="2" FontSize="18" /> |
| 98 | + <TextBox Name="text23" Grid.Column = "3" Grid.Row="4" Margin="2" FontSize="18" /> |
| 99 | + <TextBox Name="text24" Grid.Column = "4" Grid.Row="4" Margin="2" FontSize="18" /> |
| 100 | + |
| 101 | + <TextBox Name="text25" Grid.Column = "0" Grid.Row="5" Margin="2" FontSize="18" /> |
| 102 | + <TextBox Name="text26" Grid.Column = "1" Grid.Row="5" Margin="2" FontSize="18" /> |
| 103 | + <TextBox Name="text27" Grid.Column = "2" Grid.Row="5" Margin="2" FontSize="18" /> |
| 104 | + <TextBox Name="text28" Grid.Column = "3" Grid.Row="5" Margin="2" FontSize="18" /> |
| 105 | + <TextBox Name="text29" Grid.Column = "4" Grid.Row="5" Margin="2" FontSize="18" /> |
| 106 | + |
| 107 | + <ComboBox Grid.Column="0" Grid.Row="6" Margin="2" Name="selectId0"> |
| 108 | + <ComboBoxItem IsSelected="True">--Select Channel ID--</ComboBoxItem> |
| 109 | + </ComboBox> |
| 110 | + |
| 111 | + <ComboBox Grid.Column="1" Grid.Row="6" Margin="2" Name="selectId1"> |
| 112 | + <ComboBoxItem IsSelected="True">--Select Channel ID--</ComboBoxItem> |
| 113 | + </ComboBox> |
| 114 | + |
| 115 | + <ComboBox Grid.Column="2" Grid.Row="6" Margin="2" Name="selectId2"> |
| 116 | + <ComboBoxItem IsSelected="True">--Select Channel ID--</ComboBoxItem> |
| 117 | + </ComboBox> |
| 118 | + |
| 119 | + <ComboBox Grid.Column="3" Grid.Row="6" Margin="2" Name="selectId3"> |
| 120 | + <ComboBoxItem IsSelected="True">--Select Channel ID--</ComboBoxItem> |
| 121 | + </ComboBox> |
| 122 | + |
| 123 | + <Button Grid.Row="6" Grid.Column="4" BorderBrush="#0c2461" Background="#079992" Content="Fetch Data" FontWeight="Bold" Margin="2" Click="Fetch_Data" /> |
| 124 | + </Grid> |
| 125 | + |
| 126 | + <!-- History/Data --> |
| 127 | + <Grid x:Name="Data" Grid.Row="2" Margin="5,0,5,5" Background="#82ccdd"> |
| 128 | + <Grid.ColumnDefinitions> |
| 129 | + <ColumnDefinition Width="200"/> |
| 130 | + <ColumnDefinition/> |
| 131 | + </Grid.ColumnDefinitions> |
| 132 | + <Grid.RowDefinitions> |
| 133 | + <RowDefinition Height="30"/> |
| 134 | + <RowDefinition/> |
| 135 | + <RowDefinition Height="30"/> |
| 136 | + </Grid.RowDefinitions> |
| 137 | + |
| 138 | + <Label Content="History" Grid.Row="0" Grid.Column="0" VerticalAlignment="Bottom" HorizontalAlignment="Center" FontWeight="Bold" FontSize="16"/> |
| 139 | + <TextBox x:Name="history" Grid.Row="1" Grid.Column="0" Margin="5,5,5,0" /> |
| 140 | + <Button Grid.Row="2" Grid.Column="0" BorderBrush="#0c2461" Background="#079992" Content="Clear History" FontWeight="Bold" Margin="5" Click="Clear_history" /> |
| 141 | + |
| 142 | + <Label Content="Data" Grid.Row="0" Grid.Column="1" HorizontalAlignment="Center" FontWeight="Bold" FontSize="16"/> |
| 143 | + <TextBox Grid.Row="1" Grid.Column="1" Padding="5,5,0,0" FontSize="24" Text="" Name="txtEditor" FontWeight="Bold" Margin="5,5,5,0"/> |
| 144 | + </Grid> |
84 | 145 | </Grid> |
85 | 146 | </Window> |
0 commit comments