Commit 1bcc1718 by liulongfei

提示调整

parent f6119fae
......@@ -16,7 +16,7 @@
<!-- 項目名 -->
<TextBlock Text="项目:" Margin="10,0,0,0" Opacity="0.6"></TextBlock>
<TextBlock Text="{Binding ProjectName}" Margin="10,0,0,0"
ToolTip="{Binding ProjectName}"></TextBlock>
ToolTip="{Binding ProjectPath}"></TextBlock>
<!-- 场景 -->
<TextBlock Text="场景:" Margin="40,0,0,0" Opacity="0.6"></TextBlock>
<TextBlock Text="{Binding Scene}" Margin="10,0,0,0"
......
......@@ -63,6 +63,20 @@ namespace VIZ.Package.Module
#endregion
#region ProjectPath -- 项目路径
private string projectPath;
/// <summary>
/// 项目路径
/// </summary>
public string ProjectPath
{
get { return projectPath; }
set { projectPath = value; this.RaisePropertyChanged(nameof(ProjectPath)); }
}
#endregion
#region Scene -- 当前打开的场景
private string scene;
......@@ -141,13 +155,15 @@ namespace VIZ.Package.Module
/// <param name="msg">消息</param>
private void OnProjectOpenMessage(ProjectOpenMessage msg)
{
if (ApplicationDomainEx.ProjectDbContext == null)
if (string.IsNullOrWhiteSpace(ApplicationDomainEx.VizConfig.ProjectPath))
{
this.ProjectPath = null;
this.ProjectName = null;
return;
}
this.ProjectName = System.IO.Path.GetFileNameWithoutExtension(ApplicationDomainEx.ProjectDbContext.Path);
this.ProjectPath = ApplicationDomainEx.VizConfig.ProjectPath;
this.ProjectName = System.IO.Path.GetFileNameWithoutExtension(ApplicationDomainEx.VizConfig.ProjectPath);
}
/// <summary>
......
......@@ -152,7 +152,7 @@
</dxg:GridColumn>
</dxg:GridControl.Columns>
<dxg:GridControl.View>
<dxg:TableView IsColumnMenuEnabled="False" RowMinHeight="30"
<dxg:TableView IsColumnMenuEnabled="False" RowMinHeight="32"
AllowEditing="True" ShowIndicator="False"
NavigationStyle="Cell" ShowVerticalLines="False"
ShowGroupPanel="False" EditorShowMode="MouseDown"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment