删除了修改航点名的日志

修改了发送千寻RTK的配置界面
This commit is contained in:
zxd 2019-07-18 11:33:43 +08:00
parent 3f9317a6bd
commit 9a1ec7384a
5 changed files with 19 additions and 12 deletions

View File

@ -66,7 +66,6 @@ namespace Plane.FormationCreator.Formation
{
get
{
Windows.Messages.Message.Show(_TaskName);
string name = "";
switch (TaskType)
{
@ -77,10 +76,7 @@ namespace Plane.FormationCreator.Formation
//name = (TaskIndex + 1).ToString() + "." + name;
return name;
}
set {
Set(nameof(TaskCnName), ref _TaskName, value);
Windows.Messages.Message.Show(_TaskName);
}
set { Set(nameof(TaskCnName), ref _TaskName, value); }
}
public int TaskTypeIndex

View File

@ -9,9 +9,9 @@
WindowStartupLocation="CenterScreen"
TitleForeground="White"
FontSize="15"
Title="PlaneMessageBox" Height="200" Width="500"
MinHeight="200" MinWidth="500"
MaxHeight="200" MaxWidth="500"
Title="PlaneMessageBox" Height="200" Width="600"
MinHeight="200" MinWidth="600"
MaxHeight="200" MaxWidth="600"
WindowStyle="ToolWindow" Visibility="Visible" ShowMinButton="False" ShowMaxRestoreButton="False" ShowCloseButton="False" IsCloseButtonEnabled="False" IsMinButtonEnabled="False" IsMaxRestoreButtonEnabled="False" IsWindowDraggable="False"
>
<Grid>
@ -21,7 +21,7 @@
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock Name="messageBoxText" Text="提示" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<TextBox Name="textbox" Width="350" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"
<TextBox Name="textbox" Width="450" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"
PreviewKeyDown="Box_OnKeyDown"/>
<WrapPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center">
<Button Width="80" Margin="25,0" Content="确认" Click="ButtonOK_Click"/>

View File

@ -29,7 +29,7 @@ namespace Plane.FormationCreator
{
staticInstance = new PlaneMessageBox();
}
Windows.Messages.Message.Show("content = " + content);
staticInstance.messageBoxText.Text = planmeMessageBox;
staticInstance.Title = caption;
staticInstance.textbox.Text = content;

View File

@ -20,6 +20,7 @@ using Plane.Util;
using System.Windows.Media;
using Plane.CommunicationManagement;
using Plane.FormationCreator.Views;
using Plane.Windows.IniHelper;
namespace Plane.FormationCreator.ViewModels
{
@ -933,13 +934,23 @@ namespace Plane.FormationCreator.ViewModels
rtcmthreadrun = !rtcmthreadrun;
if (rtcmthreadrun)
{
string messagetips = "格式http://差分账号:差分密码@域名:端口/坐标系\r\n例如http://account:password@rtk.ntrip.qxwz.com:8002/RTCM32_GGB";
string url = "";
IniFiles inifilse = new IniFiles();
url = inifilse.IniReadvalue("Default","RTKurl");
if (PlaneMessageBox.OnShow(messagetips, "发送RTK", ref url) == false) return;
inifilse.IniWritevalue("Default", "RTKurl", url);
RTKState = "RTK数据发送中";
NTRIPbtntxt = "停止RTCM";
Alert.Show("RTCM数据开始发送", "提示", MessageBoxButton.OK, MessageBoxImage.Information);
await Task.Run(async () =>
{
string url = "http://qxarpz003:1dc880b@rtk.ntrip.qxwz.com:8002/RTCM32_GGB";
//string url = "http://qxarpz003:1dc880b@rtk.ntrip.qxwz.com:8002/RTCM32_GGB";
CommNTRIP commNTRIP = new CommNTRIP(url, _flightTaskManager.OriginLat, _flightTaskManager.OriginLng);
rtcm3 rtcm3 = new rtcm3();
commNTRIP.doConnect();

View File

@ -136,7 +136,7 @@
<Button Content="{Binding Path=RTKbtntxt}"
Command="{Binding SendRTKCommand}" />
<Button Content="{Binding Path=NTRIPbtntxt}"
Command="{Binding SendRTCMCommand}"
/>