添加项目文件。

This commit is contained in:
GG Z
2026-02-23 14:35:54 +08:00
parent de381a07f6
commit 196af6105f
54 changed files with 5698 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CivilModelCreator
{
internal class ProgressMonitorControl : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
public double MaxValue { get; set; }
public double CurrentValue { get; set; }
public string CurrentContext { get; set; }
public ProgressMonitorControl()
{
//最大值
MaxValue = 100;
//当前进度
CurrentValue = 0;
CurrentContext = string.Empty;
}
public void NotifyUI()
{
Type classType = this.GetType();
if (classType != null)
{
System.Reflection.PropertyInfo[] currentProperties = classType.GetProperties();
foreach (System.Reflection.PropertyInfo currentProperty in currentProperties)
OnPropertyChanged(currentProperty.Name);
}
}
private void OnPropertyChanged(string targetProperty)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(targetProperty));
}
}
}