Improving measure tool render
This commit is contained in:
parent
6eefe80286
commit
c2dfccf6b0
4 changed files with 31 additions and 18 deletions
|
|
@ -40,7 +40,7 @@ namespace MatterHackers.MatterControl.Library
|
|||
{
|
||||
public GitHubLibraryItem(string name, string url)
|
||||
{
|
||||
this.Name = name;
|
||||
this.FileName = name;
|
||||
this.Url = url;
|
||||
}
|
||||
|
||||
|
|
@ -54,7 +54,7 @@ namespace MatterHackers.MatterControl.Library
|
|||
|
||||
public DateTime DateModified { get; } = DateTime.Now;
|
||||
|
||||
public string FileName => Name;
|
||||
public string FileName { get; set; }
|
||||
|
||||
public long FileSize { get; private set; }
|
||||
|
||||
|
|
@ -68,7 +68,18 @@ namespace MatterHackers.MatterControl.Library
|
|||
|
||||
public virtual bool LocalContentExists => File.Exists(CachePath);
|
||||
|
||||
public string Name { get; set; }
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Path.GetExtension(FileName).ToLower() == ".mcx")
|
||||
{
|
||||
return Path.GetFileNameWithoutExtension(FileName);
|
||||
}
|
||||
|
||||
return FileName;
|
||||
}
|
||||
}
|
||||
|
||||
public string Url { get; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue