Rev 2381 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2381 | Rev 2385 | ||
---|---|---|---|
Line 821... | Line 821... | ||
821 | 821 | ||
822 | </Grid> |
822 | </Grid> |
823 | </TabItem> |
823 | </TabItem> |
824 | </TabControl> |
824 | </TabControl> |
825 | </Grid> |
825 | </Grid> |
826 | <Grid x:Name="GridSettings" Background="#7B000000" HorizontalAlignment="Left" Width="233" Margin="23,36,0,0"> |
826 | <Grid x:Name="GridSettings" Background="#7B000000" HorizontalAlignment="Left" Width="233" Margin="23,36,0,0" Visibility="Collapsed"> |
827 | <TabControl x:Name="tabControlSettings" HorizontalAlignment="Left" Width="229" Background="{x:Null}" Margin="4,0,0,0"> |
827 | <TabControl x:Name="tabControlSettings" HorizontalAlignment="Left" Width="229" Background="{x:Null}" Margin="4,0,0,0"> |
828 | <TabItem Header="General" Margin="0,0,5.849,0"> |
828 | <TabItem Header="General" Margin="0,0,5.849,0"> |
829 | <Grid x:Name="TabGridGeneral"> |
829 | <Grid x:Name="TabGridGeneral"> |
830 | <local:SerialPortCtrl x:Name="serialPortCtrl" HorizontalAlignment="Left" Height="256" Margin="11,5,0,0" VerticalAlignment="Top" Width="210"/> |
830 | <local:SerialPortCtrl x:Name="serialPortCtrl" HorizontalAlignment="Left" Height="256" Margin="11,5,0,0" VerticalAlignment="Top" Width="210"/> |
Line 1118... | Line 1118... | ||
1118 | <ComboBoxItem Content="blue"/> |
1118 | <ComboBoxItem Content="blue"/> |
1119 | <ComboBoxItem Content="yellow"/> |
1119 | <ComboBoxItem Content="yellow"/> |
1120 | <ComboBoxItem Content="pink"/> |
1120 | <ComboBoxItem Content="pink"/> |
1121 | </ComboBox> |
1121 | </ComboBox> |
1122 | <Label x:Name="label4_Copy31" Content="Landing color" HorizontalAlignment="Right" Margin="0,137,12,0" VerticalAlignment="Top" Width="96" Foreground="White"/> |
1122 | <Label x:Name="label4_Copy31" Content="Landing color" HorizontalAlignment="Right" Margin="0,137,12,0" VerticalAlignment="Top" Width="96" Foreground="White"/> |
- | 1123 | <ComboBox x:Name="comboBoxCopterHeadingColor" Margin="0,29,11,0" SelectedIndex="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="16" HorizontalAlignment="Right" Width="95" Height="33" VerticalAlignment="Top" DropDownClosed="comboBoxCopterHeadingColor_DropDownClosed"> |
|
- | 1124 | <ComboBoxItem Content="red"/> |
|
- | 1125 | <ComboBoxItem Content="green"/> |
|
- | 1126 | <ComboBoxItem Content="blue"/> |
|
- | 1127 | <ComboBoxItem Content="yellow"/> |
|
- | 1128 | <ComboBoxItem Content="pink"/> |
|
- | 1129 | </ComboBox> |
|
- | 1130 | <Label x:Name="label4_Copy33" Content="Heading color" HorizontalAlignment="Right" Margin="0,3,12,0" VerticalAlignment="Top" Width="96" Foreground="White"/> |
|
Line 1123... | Line 1131... | ||
1123 | 1131 | ||
1124 | </Grid> |
1132 | </Grid> |
Line 1125... | Line 1133... | ||
1125 | </Border> |
1133 | </Border> |
Line 1195... | Line 1203... | ||
1195 | <GradientStop Color="#FFFFD07F" Offset="0.391"/> |
1203 | <GradientStop Color="#FFFFD07F" Offset="0.391"/> |
1196 | <GradientStop Color="#FFFFA261" Offset="1"/> |
1204 | <GradientStop Color="#FFFFA261" Offset="1"/> |
1197 | </LinearGradientBrush> |
1205 | </LinearGradientBrush> |
1198 | </Label.Background> |
1206 | </Label.Background> |
1199 | </Label> |
1207 | </Label> |
1200 | <Grid x:Name="GridWP" Margin="23,36,25,0" Background="#7F000000" Height="526" VerticalAlignment="Top" Visibility="Collapsed"> |
1208 | <Grid x:Name="GridWP" Margin="23,36,25,0" Background="#7F000000" Height="526" VerticalAlignment="Top"> |
1201 | <Label x:Name="label4" Content="points" HorizontalAlignment="Right" Margin="0,480,51,0" VerticalAlignment="Top" Width="53" Foreground="White" Height="19" HorizontalContentAlignment="Right" Padding="0" VerticalContentAlignment="Center" FontSize="13"/> |
1209 | <Label x:Name="label4" Content="points" HorizontalAlignment="Right" Margin="0,480,51,0" VerticalAlignment="Top" Width="53" Foreground="White" Height="19" HorizontalContentAlignment="Right" Padding="0" VerticalContentAlignment="Center" FontSize="13"/> |
1202 | <Label x:Name="lblWPCount" Content="##" HorizontalAlignment="Right" Margin="0,482,19,0" VerticalAlignment="Top" Width="26" Foreground="White" HorizontalContentAlignment="Right" Padding="0" Height="16" FontSize="13"/> |
1210 | <Label x:Name="lblWPCount" Content="##" HorizontalAlignment="Right" Margin="0,482,19,0" VerticalAlignment="Top" Width="26" Foreground="White" HorizontalContentAlignment="Right" Padding="0" Height="16" FontSize="13"/> |
1203 | <Label x:Name="label4_Copy" Content="WP Index" HorizontalAlignment="Left" Margin="94,194,0,0" VerticalAlignment="Top" Width="80" Foreground="White" Visibility="Hidden"/> |
1211 | <Label x:Name="label4_Copy" Content="WP Index" HorizontalAlignment="Left" Margin="94,194,0,0" VerticalAlignment="Top" Width="80" Foreground="White" Visibility="Hidden"/> |
1204 | <Label x:Name="lblWPIndex" Content="##" HorizontalAlignment="Left" Margin="170,194,0,0" VerticalAlignment="Top" Width="28" Foreground="White" Visibility="Hidden"/> |
1212 | <Label x:Name="lblWPIndex" Content="##" HorizontalAlignment="Left" Margin="170,194,0,0" VerticalAlignment="Top" Width="28" Foreground="White" Visibility="Hidden"/> |
1205 | <Border Margin="10,458,0,1" BorderBrush="White" BorderThickness="0.5" CornerRadius="5" HorizontalAlignment="Left" Width="640"> |
1213 | <Border Margin="10,458,0,1" BorderBrush="White" BorderThickness="0.5" CornerRadius="5" HorizontalAlignment="Left" Width="584"> |
1206 | <Grid Margin="-0.5,-0.5,-0.5,4.5"> |
1214 | <Grid Margin="0,0,-1,4"> |
1207 | <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="111,0,0,-1" Height="40" VerticalAlignment="Bottom"> |
1215 | <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="111,0,0,-1" Height="40" VerticalAlignment="Bottom"> |
1208 | <Rectangle.Style> |
1216 | <Rectangle.Style> |
1209 | <Style TargetType="{x:Type Rectangle}"> |
1217 | <Style TargetType="{x:Type Rectangle}"> |
1210 | <Style.Triggers> |
1218 | <Style.Triggers> |
1211 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnGetWPList}" Value="True"> |
1219 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnGetWPList}" Value="True"> |
Line 1234... | Line 1242... | ||
1234 | <Button x:Name="btnSendWPList" Content="" HorizontalAlignment="Left" Height="36" Margin="13,0,0,0" VerticalAlignment="Bottom" Width="92" ToolTip="Upload WP-list to copter" BorderBrush="#FFBDBDBD" Click="btnSendWPList_Click" Style="{DynamicResource ButtonWithoutEffectStyle}"> |
1242 | <Button x:Name="btnSendWPList" Content="" HorizontalAlignment="Left" Height="36" Margin="13,0,0,0" VerticalAlignment="Bottom" Width="92" ToolTip="Upload WP-list to copter" BorderBrush="#FFBDBDBD" Click="btnSendWPList_Click" Style="{DynamicResource ButtonWithoutEffectStyle}"> |
1235 | <Button.Background> |
1243 | <Button.Background> |
1236 | <ImageBrush ImageSource="Images/WPToCopter1.png" Stretch="Uniform"/> |
1244 | <ImageBrush ImageSource="Images/WPToCopter1.png" Stretch="Uniform"/> |
1237 | </Button.Background> |
1245 | </Button.Background> |
1238 | </Button> |
1246 | </Button> |
1239 | <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="229,0,0,-1" Height="40" VerticalAlignment="Bottom"> |
1247 | <Rectangle HorizontalAlignment="Left" Width="68" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="228,0,0,-1" Height="40" VerticalAlignment="Bottom"> |
1240 | <Rectangle.Style> |
1248 | <Rectangle.Style> |
1241 | <Style TargetType="{x:Type Rectangle}"> |
1249 | <Style TargetType="{x:Type Rectangle}"> |
1242 | <Style.Triggers> |
1250 | <Style.Triggers> |
1243 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnLoadWPLFile}" Value="True"> |
1251 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnLoadWPLFile}" Value="True"> |
1244 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
1252 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
1245 | </DataTrigger> |
1253 | </DataTrigger> |
1246 | </Style.Triggers> |
1254 | </Style.Triggers> |
1247 | </Style> |
1255 | </Style> |
1248 | </Rectangle.Style> |
1256 | </Rectangle.Style> |
1249 | </Rectangle> |
1257 | </Rectangle> |
1250 | <Button x:Name="btnLoadWPLFile" Content="" HorizontalAlignment="Left" Height="37" Margin="229,0,0,0" VerticalAlignment="Bottom" Width="94" ToolTip="load wp-list from file" BorderBrush="#FFBDBDBD" HorizontalContentAlignment="Center" Click="btnLoadWPLFile_Click" Style="{DynamicResource ButtonWithoutEffectStyle}"> |
1258 | <Button x:Name="btnLoadWPLFile" Content="" HorizontalAlignment="Left" Height="37" Margin="228,0,0,0" VerticalAlignment="Bottom" Width="68" ToolTip="load wp-list from file" BorderBrush="#FFBDBDBD" HorizontalContentAlignment="Center" Click="btnLoadWPLFile_Click" Style="{DynamicResource ButtonWithoutEffectStyle}"> |
1251 | <Button.Background> |
1259 | <Button.Background> |
1252 | <ImageBrush ImageSource="Images/LoadFile.png" Stretch="Uniform"/> |
1260 | <ImageBrush ImageSource="Images/LoadFile.png" Stretch="Uniform"/> |
1253 | </Button.Background> |
1261 | </Button.Background> |
1254 | </Button> |
1262 | </Button> |
1255 | <Label x:Name="label4_Copy5" Content="receive from copter" HorizontalAlignment="Left" Margin="106,0,0,36" VerticalAlignment="Bottom" Width="116" Foreground="White" Height="26"/> |
1263 | <Label x:Name="label4_Copy5" Content="receive from copter" HorizontalAlignment="Left" Margin="106,0,0,36" VerticalAlignment="Bottom" Width="116" Foreground="White" Height="26"/> |
1256 | <Label x:Name="label4_Copy6" Content="send to copter" HorizontalAlignment="Left" Margin="9,0,0,36" VerticalAlignment="Bottom" Width="86" Foreground="White" Height="26"/> |
1264 | <Label x:Name="label4_Copy6" Content="send to copter" HorizontalAlignment="Left" Margin="9,0,0,36" VerticalAlignment="Bottom" Width="86" Foreground="White" Height="26"/> |
1257 | <Label x:Name="label4_Copy7" Content="load from file" HorizontalAlignment="Left" Margin="225,0,0,35" VerticalAlignment="Bottom" Width="86" Foreground="White"/> |
1265 | <Label x:Name="label4_Copy7" Content="load file" HorizontalAlignment="Left" Margin="225,0,0,35" VerticalAlignment="Bottom" Width="62" Foreground="White"/> |
1258 | <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="434,0,0,-1" Height="40" VerticalAlignment="Bottom"> |
1266 | <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="384,0,0,-1" Height="40" VerticalAlignment="Bottom"> |
1259 | <Rectangle.Style> |
1267 | <Rectangle.Style> |
1260 | <Style TargetType="{x:Type Rectangle}"> |
1268 | <Style TargetType="{x:Type Rectangle}"> |
1261 | <Style.Triggers> |
1269 | <Style.Triggers> |
1262 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnClearWPList}" Value="True"> |
1270 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnClearWPList}" Value="True"> |
1263 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
1271 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
1264 | </DataTrigger> |
1272 | </DataTrigger> |
1265 | </Style.Triggers> |
1273 | </Style.Triggers> |
1266 | </Style> |
1274 | </Style> |
1267 | </Rectangle.Style> |
1275 | </Rectangle.Style> |
1268 | </Rectangle> |
1276 | </Rectangle> |
1269 | <Button x:Name="btnClearWPList" Content="" HorizontalAlignment="Left" Height="36" Margin="434,0,0,1" VerticalAlignment="Bottom" Width="94" ToolTip="clear all items from the local WP list" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnClearWPList_Click"> |
1277 | <Button x:Name="btnClearWPList" Content="" HorizontalAlignment="Left" Height="36" Margin="384,0,0,1" VerticalAlignment="Bottom" Width="94" ToolTip="clear all items from the local WP list" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnClearWPList_Click"> |
1270 | <Button.Background> |
1278 | <Button.Background> |
1271 | <ImageBrush ImageSource="Images/DeleteList.png" Stretch="Uniform"/> |
1279 | <ImageBrush ImageSource="Images/DeleteList.png" Stretch="Uniform"/> |
1272 | </Button.Background> |
1280 | </Button.Background> |
1273 | </Button> |
1281 | </Button> |
1274 | <Label x:Name="label4_Copy11" Content="clear local list" HorizontalAlignment="Left" Margin="430,0,0,35" VerticalAlignment="Bottom" Width="93" Foreground="White"/> |
1282 | <Label x:Name="label4_Copy11" Content="clear local list" HorizontalAlignment="Left" Margin="380,0,0,35" VerticalAlignment="Bottom" Width="93" Foreground="White"/> |
1275 | <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="533,0,0,-1" Height="40" VerticalAlignment="Bottom"> |
1283 | <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="483,0,0,-1" Height="40" VerticalAlignment="Bottom"> |
1276 | <Rectangle.Style> |
1284 | <Rectangle.Style> |
1277 | <Style TargetType="{x:Type Rectangle}"> |
1285 | <Style TargetType="{x:Type Rectangle}"> |
1278 | <Style.Triggers> |
1286 | <Style.Triggers> |
1279 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnClearCopterList}" Value="True"> |
1287 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnClearCopterList}" Value="True"> |
1280 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
1288 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
1281 | </DataTrigger> |
1289 | </DataTrigger> |
1282 | </Style.Triggers> |
1290 | </Style.Triggers> |
1283 | </Style> |
1291 | </Style> |
1284 | </Rectangle.Style> |
1292 | </Rectangle.Style> |
1285 | </Rectangle> |
1293 | </Rectangle> |
1286 | <Button x:Name="btnClearCopterList" Content="" HorizontalAlignment="Left" Height="36" Margin="535,0,0,1" VerticalAlignment="Bottom" Width="92" ToolTip="clear all items from the WP list in the copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnClearCopterList_Click"> |
1294 | <Button x:Name="btnClearCopterList" Content="" HorizontalAlignment="Left" Height="36" Margin="485,0,0,1" VerticalAlignment="Bottom" Width="92" ToolTip="clear all items from the WP list in the copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnClearCopterList_Click"> |
1287 | <Button.Background> |
1295 | <Button.Background> |
1288 | <ImageBrush ImageSource="Images/DeleteCopterList.png" Stretch="Uniform"/> |
1296 | <ImageBrush ImageSource="Images/DeleteCopterList.png" Stretch="Uniform"/> |
1289 | </Button.Background> |
1297 | </Button.Background> |
1290 | </Button> |
1298 | </Button> |
1291 | <Label x:Name="label4_Copy12" Content="clear copter list" HorizontalAlignment="Left" Margin="529,0,0,36" VerticalAlignment="Bottom" Width="93" Foreground="White" Height="26"/> |
1299 | <Label x:Name="label4_Copy12" Content="clear copter list" HorizontalAlignment="Left" Margin="479,0,0,36" VerticalAlignment="Bottom" Width="93" Foreground="White" Height="26"/> |
1292 | <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="328,0,0,-1" Height="40" VerticalAlignment="Bottom"> |
1300 | <Rectangle HorizontalAlignment="Left" Width="68" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="300,0,0,-1" Height="40" VerticalAlignment="Bottom"> |
1293 | <Rectangle.Style> |
1301 | <Rectangle.Style> |
1294 | <Style TargetType="{x:Type Rectangle}"> |
1302 | <Style TargetType="{x:Type Rectangle}"> |
1295 | <Style.Triggers> |
1303 | <Style.Triggers> |
1296 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnSaveWPLFile}" Value="True"> |
1304 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnSaveWPLFile}" Value="True"> |
1297 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
1305 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
1298 | </DataTrigger> |
1306 | </DataTrigger> |
1299 | </Style.Triggers> |
1307 | </Style.Triggers> |
1300 | </Style> |
1308 | </Style> |
1301 | </Rectangle.Style> |
1309 | </Rectangle.Style> |
1302 | </Rectangle> |
1310 | </Rectangle> |
1303 | <Button x:Name="btnSaveWPLFile" Content="" HorizontalAlignment="Left" Height="37" Margin="328,0,0,0" VerticalAlignment="Bottom" Width="94" ToolTip="save list to *.wpl file" BorderBrush="#FFBDBDBD" HorizontalContentAlignment="Center" Click="btnSaveWPLFile_Click" Style="{DynamicResource ButtonWithoutEffectStyle}"> |
1311 | <Button x:Name="btnSaveWPLFile" Content="" HorizontalAlignment="Left" Height="37" Margin="300,0,0,0" VerticalAlignment="Bottom" Width="68" ToolTip="save list to *.wpl file" BorderBrush="#FFBDBDBD" HorizontalContentAlignment="Center" Click="btnSaveWPLFile_Click" Style="{DynamicResource ButtonWithoutEffectStyle}"> |
1304 | <Button.Background> |
1312 | <Button.Background> |
1305 | <ImageBrush ImageSource="Images/SaveFile.png" Stretch="Uniform"/> |
1313 | <ImageBrush ImageSource="Images/SaveFile.png" Stretch="Uniform"/> |
1306 | </Button.Background> |
1314 | </Button.Background> |
1307 | </Button> |
1315 | </Button> |
1308 | <Label x:Name="label4_Copy13" Content="save to file (.wpl)" HorizontalAlignment="Left" Margin="324,0,0,35" VerticalAlignment="Bottom" Width="98" Foreground="White"/> |
1316 | <Label x:Name="label4_Copy13" Content="save file" HorizontalAlignment="Left" Margin="297,0,0,35" VerticalAlignment="Bottom" Width="71" Foreground="White"/> |
1309 | </Grid> |
1317 | </Grid> |
1310 | </Border> |
1318 | </Border> |
1311 | <Border Margin="10,338,0,73" BorderBrush="White" BorderThickness="0.5" CornerRadius="5" HorizontalAlignment="Left" Width="831"> |
1319 | <Border Margin="10,338,0,73" BorderBrush="White" BorderThickness="0.5" CornerRadius="5" HorizontalAlignment="Left" Width="831"> |
1312 | <Grid Margin="-0.5,-0.5,-0.5,4.5"> |
1320 | <Grid Margin="-0.5,-0.5,-0.5,4.5"> |
1313 | <ComboBox x:Name="cbWPEditType" HorizontalAlignment="Left" Height="22" Margin="10,24,0,0" VerticalAlignment="Top" Width="66"> |
1321 | <ComboBox x:Name="cbWPEditType" HorizontalAlignment="Left" Height="22" Margin="10,24,0,0" VerticalAlignment="Top" Width="66"> |
Line 1365... | Line 1373... | ||
1365 | <ComboBoxItem Content="AUTO"/> |
1373 | <ComboBoxItem Content="AUTO"/> |
1366 | <ComboBoxItem Content="degree"/> |
1374 | <ComboBoxItem Content="degree"/> |
1367 | </ComboBox> |
1375 | </ComboBox> |
1368 | <Label x:Name="label4_Copy26" Content="Out1Timer" HorizontalAlignment="Left" Margin="762,6,0,0" Width="63" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/> |
1376 | <Label x:Name="label4_Copy26" Content="Out1Timer" HorizontalAlignment="Left" Margin="762,6,0,0" Width="63" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/> |
1369 | <TextBox x:Name="tbWPEditOut1" HorizontalAlignment="Left" Height="22" Margin="762,24,0,0" VerticalAlignment="Top" Width="42" IsUndoEnabled="False" MaxLines="1" MaxLength="2" Foreground="White" Background="{x:Null}" VerticalContentAlignment="Center" TouchDown="tbWPEdit_TouchDown" KeyDown="tbWPEdit_KeyDown" PreviewMouseLeftButtonDown="tbWPEdit_MouseDown" IsTabStop="False" IsReadOnly="True"/> |
1377 | <TextBox x:Name="tbWPEditOut1" HorizontalAlignment="Left" Height="22" Margin="762,24,0,0" VerticalAlignment="Top" Width="42" IsUndoEnabled="False" MaxLines="1" MaxLength="2" Foreground="White" Background="{x:Null}" VerticalContentAlignment="Center" TouchDown="tbWPEdit_TouchDown" KeyDown="tbWPEdit_KeyDown" PreviewMouseLeftButtonDown="tbWPEdit_MouseDown" IsTabStop="False" IsReadOnly="True"/> |
1370 | <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="12,0,0,-2" Height="40" VerticalAlignment="Bottom"> |
1378 | <Rectangle HorizontalAlignment="Left" Width="81" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="8,0,0,-2" Height="40" VerticalAlignment="Bottom"> |
1371 | <Rectangle.Style> |
1379 | <Rectangle.Style> |
1372 | <Style TargetType="{x:Type Rectangle}"> |
1380 | <Style TargetType="{x:Type Rectangle}"> |
1373 | <Style.Triggers> |
1381 | <Style.Triggers> |
1374 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnEditWPSave}" Value="True"> |
1382 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnEditWPSave}" Value="True"> |
1375 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
1383 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
1376 | </DataTrigger> |
1384 | </DataTrigger> |
1377 | </Style.Triggers> |
1385 | </Style.Triggers> |
1378 | </Style> |
1386 | </Style> |
1379 | </Rectangle.Style> |
1387 | </Rectangle.Style> |
1380 | </Rectangle> |
1388 | </Rectangle> |
1381 | <Button x:Name="btnEditWPSave" Content="" HorizontalAlignment="Left" Height="36" Margin="13,0,0,-1" VerticalAlignment="Bottom" Width="93" ToolTip="save the changes made to the list" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnEditWPSave_Click"> |
1389 | <Button x:Name="btnEditWPSave" Content="" HorizontalAlignment="Left" Height="36" Margin="9,0,0,-1" VerticalAlignment="Bottom" Width="80" ToolTip="save the changes made to the list" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnEditWPSave_Click"> |
1382 | <Button.Background> |
1390 | <Button.Background> |
1383 | <ImageBrush ImageSource="Images/Save.png" Stretch="Uniform"/> |
1391 | <ImageBrush ImageSource="Images/Save.png" Stretch="Uniform"/> |
1384 | </Button.Background> |
1392 | </Button.Background> |
1385 | </Button> |
1393 | </Button> |
1386 | <Label x:Name="label4_Copy27" Content="save changes" HorizontalAlignment="Left" Margin="10,0,0,34" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/> |
1394 | <Label x:Name="label4_Copy27" Content="save changes" HorizontalAlignment="Left" Margin="6,0,0,34" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/> |
1387 | <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="113,0,0,-2" Height="40" VerticalAlignment="Bottom"> |
1395 | <Rectangle HorizontalAlignment="Left" Width="81" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="93,0,0,-2" Height="40" VerticalAlignment="Bottom"> |
1388 | <Rectangle.Style> |
1396 | <Rectangle.Style> |
1389 | <Style TargetType="{x:Type Rectangle}"> |
1397 | <Style TargetType="{x:Type Rectangle}"> |
1390 | <Style.Triggers> |
1398 | <Style.Triggers> |
1391 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnEditWPDel}" Value="True"> |
1399 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnEditWPDel}" Value="True"> |
1392 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
1400 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
1393 | </DataTrigger> |
1401 | </DataTrigger> |
1394 | </Style.Triggers> |
1402 | </Style.Triggers> |
1395 | </Style> |
1403 | </Style> |
1396 | </Rectangle.Style> |
1404 | </Rectangle.Style> |
1397 | </Rectangle> |
1405 | </Rectangle> |
1398 | <Button x:Name="btnEditWPDel" Content="" HorizontalAlignment="Left" Height="36" Margin="114,0,0,-1" VerticalAlignment="Bottom" Width="93" ToolTip="delete WP from list" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnEditWPDel_Click"> |
1406 | <Button x:Name="btnEditWPDel" Content="" HorizontalAlignment="Left" Height="36" Margin="93,0,0,-1" VerticalAlignment="Bottom" Width="81" ToolTip="delete WP from list" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnEditWPDel_Click"> |
1399 | <Button.Background> |
1407 | <Button.Background> |
1400 | <ImageBrush ImageSource="Images/Delete.png" Stretch="Uniform"/> |
1408 | <ImageBrush ImageSource="Images/Delete.png" Stretch="Uniform"/> |
1401 | </Button.Background> |
1409 | </Button.Background> |
1402 | </Button> |
1410 | </Button> |
1403 | <Label x:Name="label4_Copy30" Content="delete WP" HorizontalAlignment="Left" Margin="111,0,0,34" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/> |
1411 | <Label x:Name="label4_Copy30" Content="delete WP" HorizontalAlignment="Left" Margin="93,0,0,34" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/> |
1404 | <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="566,0,0,-2" Height="40" VerticalAlignment="Bottom" RenderTransformOrigin="0.5,0.525"> |
1412 | <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="566,0,0,-2" Height="40" VerticalAlignment="Bottom" RenderTransformOrigin="0.5,0.525"> |
1405 | <Rectangle.Style> |
1413 | <Rectangle.Style> |
1406 | <Style TargetType="{x:Type Rectangle}"> |
1414 | <Style TargetType="{x:Type Rectangle}"> |
1407 | <Style.Triggers> |
1415 | <Style.Triggers> |
1408 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnSendActiveWP_Copy1}" Value="True"> |
1416 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnSendActiveWP_Copy1}" Value="True"> |
Line 1416... | Line 1424... | ||
1416 | <Button.Background> |
1424 | <Button.Background> |
1417 | <ImageBrush ImageSource="Images/Blitz.png" Stretch="Uniform"/> |
1425 | <ImageBrush ImageSource="Images/Blitz.png" Stretch="Uniform"/> |
1418 | </Button.Background> |
1426 | </Button.Background> |
1419 | </Button> |
1427 | </Button> |
1420 | <Label x:Name="label4_Copy29" Content="set as active WP" HorizontalAlignment="Left" Margin="564,0,0,34" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/> |
1428 | <Label x:Name="label4_Copy29" Content="set as active WP" HorizontalAlignment="Left" Margin="564,0,0,34" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/> |
- | 1429 | <Rectangle HorizontalAlignment="Left" Width="81" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="191,0,0,-2" Height="40" VerticalAlignment="Bottom"> |
|
- | 1430 | <Rectangle.Style> |
|
- | 1431 | <Style TargetType="{x:Type Rectangle}"> |
|
- | 1432 | <Style.Triggers> |
|
- | 1433 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnEditWPSendToCopter}" Value="True"> |
|
- | 1434 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
|
- | 1435 | </DataTrigger> |
|
- | 1436 | </Style.Triggers> |
|
- | 1437 | </Style> |
|
- | 1438 | </Rectangle.Style> |
|
- | 1439 | </Rectangle> |
|
- | 1440 | <Button x:Name="btnEditWPSendToCopter" Content="" HorizontalAlignment="Left" Height="36" Margin="191,0,0,-1" VerticalAlignment="Bottom" Width="81" ToolTip="send selected WP to copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnEditWPSendToCopter_Click"> |
|
- | 1441 | <Button.Background> |
|
- | 1442 | <ImageBrush ImageSource="Images/SendToCopter.png" Stretch="Uniform"/> |
|
- | 1443 | </Button.Background> |
|
- | 1444 | </Button> |
|
- | 1445 | <Label x:Name="label4_Copy34" Content="send to copter" HorizontalAlignment="Left" Margin="191,0,0,34" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/> |
|
1421 | </Grid> |
1446 | </Grid> |
1422 | </Border> |
1447 | </Border> |
1423 | <DataGrid x:Name="dgvWP" Margin="10,5,10,195" Background="{x:Null}" ItemsSource="{Binding}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="14" HorizontalGridLinesBrush="#FF688CAF" VerticalGridLinesBrush="#FF688CAF" HeadersVisibility="Column" BorderBrush="{x:Null}" Padding="0" AutoGenerateColumns="False" MouseUp="dgvWP_MouseUp" CanUserAddRows="False" CanUserDeleteRows="False" CanUserResizeRows="False" MouseDoubleClick="dgvWP_MouseDoubleClick" CanUserReorderColumns="False" CanUserResizeColumns="False" CanUserSortColumns="False" IsReadOnly="True"> |
1448 | <DataGrid x:Name="dgvWP" Margin="10,5,10,195" Background="{x:Null}" ItemsSource="{Binding}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="14" HorizontalGridLinesBrush="#FF688CAF" VerticalGridLinesBrush="#FF688CAF" HeadersVisibility="Column" BorderBrush="{x:Null}" Padding="0" AutoGenerateColumns="False" MouseUp="dgvWP_MouseUp" CanUserAddRows="False" CanUserDeleteRows="False" CanUserResizeRows="False" MouseDoubleClick="dgvWP_MouseDoubleClick" CanUserReorderColumns="False" CanUserResizeColumns="False" CanUserSortColumns="False" IsReadOnly="True"> |
1424 | <DataGrid.Columns> |
1449 | <DataGrid.Columns> |
1425 | <DataGridTextColumn Header="Index" Binding="{Binding Path=Index}"/> |
1450 | <DataGridTextColumn Header="Index" Binding="{Binding Path=Index}"/> |
Line 1470... | Line 1495... | ||
1470 | <GradientStop Color="#FF70E2AF" Offset="0.39"/> |
1495 | <GradientStop Color="#FF70E2AF" Offset="0.39"/> |
1471 | <GradientStop Color="#FF4FCF8F" Offset="1"/> |
1496 | <GradientStop Color="#FF4FCF8F" Offset="1"/> |
1472 | </LinearGradientBrush> |
1497 | </LinearGradientBrush> |
1473 | </Rectangle.Fill> |
1498 | </Rectangle.Fill> |
1474 | </Rectangle> |
1499 | </Rectangle> |
1475 | <Rectangle HorizontalAlignment="Left" Width="59" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="892,0,0,72" Height="43" VerticalAlignment="Bottom"> |
1500 | <Rectangle HorizontalAlignment="Left" Width="59" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="608,0,0,7" Height="37" VerticalAlignment="Bottom"> |
1476 | <Rectangle.Style> |
1501 | <Rectangle.Style> |
1477 | <Style TargetType="{x:Type Rectangle}"> |
1502 | <Style TargetType="{x:Type Rectangle}"> |
1478 | <Style.Triggers> |
1503 | <Style.Triggers> |
1479 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnWPSimulateStart}" Value="True"> |
1504 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnWPSimulateStart}" Value="True"> |
1480 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
1505 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
1481 | </DataTrigger> |
1506 | </DataTrigger> |
1482 | </Style.Triggers> |
1507 | </Style.Triggers> |
1483 | </Style> |
1508 | </Style> |
1484 | </Rectangle.Style> |
1509 | </Rectangle.Style> |
1485 | </Rectangle> |
1510 | </Rectangle> |
1486 | <Button x:Name="btnWPSimulateStart" Content="" HorizontalAlignment="Left" Height="36" Margin="893,0,0,76" VerticalAlignment="Bottom" Width="58" ToolTip="Start/stop simulationmode on copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnWPSimulateStart_Click"> |
1511 | <Button x:Name="btnWPSimulateStart" Content="" HorizontalAlignment="Left" Height="33" Margin="608,0,0,9" VerticalAlignment="Bottom" Width="58" ToolTip="Start/stop simulationmode on copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnWPSimulateStart_Click"> |
1487 | <Button.Background> |
1512 | <Button.Background> |
1488 | <ImageBrush ImageSource="Images/Test.png" Stretch="Uniform"/> |
1513 | <ImageBrush ImageSource="Images/Test.png" Stretch="Uniform"/> |
1489 | </Button.Background> |
1514 | </Button.Background> |
1490 | </Button> |
1515 | </Button> |
1491 | <Label x:Name="label4_Copy32" Content="Simulation" HorizontalAlignment="Left" Margin="888,0,-1,111" VerticalAlignment="Bottom" Width="74" Foreground="White" Height="26"/> |
1516 | <Label x:Name="label4_Copy32" Content="Simulation" HorizontalAlignment="Left" Margin="603,0,0,40" VerticalAlignment="Bottom" Width="74" Foreground="White" Height="26"/> |
1492 | </Grid> |
1517 | </Grid> |
1493 | <Grid x:Name="GridSideBarR" Background="#66000000" Margin="0,36,0,0" HorizontalAlignment="Right" Width="23"> |
1518 | <Grid x:Name="GridSideBarR" Background="#66000000" Margin="0,36,0,0" HorizontalAlignment="Right" Width="23"> |
1494 | <Label x:Name="labelMotordata" Content="Motors" Padding="0" RenderTransformOrigin="0.5,0.5" Margin="-25,233,-26,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" MouseDown="labelMotorData_MouseDown" FontSize="14" HorizontalAlignment="Left" Width="74" Height="22" VerticalAlignment="Top"> |
1519 | <Label x:Name="labelMotordata" Content="Motors" Padding="0" RenderTransformOrigin="0.5,0.5" Margin="-25,233,-26,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" MouseDown="labelMotorData_MouseDown" FontSize="14" HorizontalAlignment="Left" Width="74" Height="22" VerticalAlignment="Top"> |
1495 | <Label.RenderTransform> |
1520 | <Label.RenderTransform> |
1496 | <TransformGroup> |
1521 | <TransformGroup> |