Commit 1bcc1718 by liulongfei

提示调整

parent f6119fae
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<!-- 項目名 --> <!-- 項目名 -->
<TextBlock Text="项目:" Margin="10,0,0,0" Opacity="0.6"></TextBlock> <TextBlock Text="项目:" Margin="10,0,0,0" Opacity="0.6"></TextBlock>
<TextBlock Text="{Binding ProjectName}" Margin="10,0,0,0" <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="场景:" Margin="40,0,0,0" Opacity="0.6"></TextBlock>
<TextBlock Text="{Binding Scene}" Margin="10,0,0,0" <TextBlock Text="{Binding Scene}" Margin="10,0,0,0"
......
...@@ -63,6 +63,20 @@ namespace VIZ.Package.Module ...@@ -63,6 +63,20 @@ namespace VIZ.Package.Module
#endregion #endregion
#region ProjectPath -- 项目路径
private string projectPath;
/// <summary>
/// 项目路径
/// </summary>
public string ProjectPath
{
get { return projectPath; }
set { projectPath = value; this.RaisePropertyChanged(nameof(ProjectPath)); }
}
#endregion
#region Scene -- 当前打开的场景 #region Scene -- 当前打开的场景
private string scene; private string scene;
...@@ -141,13 +155,15 @@ namespace VIZ.Package.Module ...@@ -141,13 +155,15 @@ namespace VIZ.Package.Module
/// <param name="msg">消息</param> /// <param name="msg">消息</param>
private void OnProjectOpenMessage(ProjectOpenMessage msg) private void OnProjectOpenMessage(ProjectOpenMessage msg)
{ {
if (ApplicationDomainEx.ProjectDbContext == null) if (string.IsNullOrWhiteSpace(ApplicationDomainEx.VizConfig.ProjectPath))
{ {
this.ProjectPath = null;
this.ProjectName = null; this.ProjectName = null;
return; 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> /// <summary>
......
...@@ -152,7 +152,7 @@ ...@@ -152,7 +152,7 @@
</dxg:GridColumn> </dxg:GridColumn>
</dxg:GridControl.Columns> </dxg:GridControl.Columns>
<dxg:GridControl.View> <dxg:GridControl.View>
<dxg:TableView IsColumnMenuEnabled="False" RowMinHeight="30" <dxg:TableView IsColumnMenuEnabled="False" RowMinHeight="32"
AllowEditing="True" ShowIndicator="False" AllowEditing="True" ShowIndicator="False"
NavigationStyle="Cell" ShowVerticalLines="False" NavigationStyle="Cell" ShowVerticalLines="False"
ShowGroupPanel="False" EditorShowMode="MouseDown" 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