mvvm模式升级从 packages.config 迁移到 PackageReference
This commit is contained in:
commit
83a38deaa6
56 files changed
+612
-1158
No files matched your search
@@ -1,17 +1,5 @@
|
||||
using formula_manage.UserClass;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace formula_manage.EX
|
||||
{
|
||||
|
||||
+8
-18
@@ -1,20 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Threading;
|
||||
|
||||
namespace formula_manage.EX
|
||||
{
|
||||
@@ -31,7 +21,7 @@ namespace formula_manage.EX
|
||||
{
|
||||
WindowStartupLocation = WindowStartupLocation.CenterScreen;
|
||||
InitializeComponent();
|
||||
|
||||
|
||||
logdataTable.Columns.Add("Name", typeof(string));
|
||||
logdataTable.Columns.Add("Length", typeof(int));
|
||||
logdataTable.Columns.Add("CreationTimeUtc", typeof(string));
|
||||
@@ -48,7 +38,7 @@ namespace formula_manage.EX
|
||||
DataRow FileRow = logdataTable.NewRow();
|
||||
|
||||
FileRow["Name"] = item.Name;
|
||||
FileRow["Length"] = item.Length/1024;
|
||||
FileRow["Length"] = item.Length / 1024;
|
||||
FileRow["CreationTimeUtc"] = item.CreationTimeUtc;
|
||||
FileRow["LastWriteTimeUtc"] = item.LastWriteTimeUtc;
|
||||
logdataTable.Rows.Add(FileRow);
|
||||
@@ -67,18 +57,18 @@ namespace formula_manage.EX
|
||||
/*定位选中行及指定列单元格文本信息*/
|
||||
LOGDATA_file((gridLog.Columns[0].GetCellContent(gridLog.Items[rownum]) as TextBlock).Text.TrimEnd());//
|
||||
}
|
||||
|
||||
logR.Visibility = Visibility.Hidden;
|
||||
|
||||
logR.Visibility = Visibility.Hidden;
|
||||
}
|
||||
|
||||
private void LOGDATA_file(string dat) //读取文件显示到前端
|
||||
{
|
||||
{
|
||||
Logtext.Document = new FlowDocument();
|
||||
string filePath = System.Environment.CurrentDirectory + "\\Exchange\\";
|
||||
try
|
||||
{
|
||||
// 使用StreamReader读取文件
|
||||
using (StreamReader reader = new StreamReader(filePath + dat))
|
||||
// 使用StreamReader读取文件
|
||||
using (StreamReader reader = new StreamReader(filePath + dat))
|
||||
{
|
||||
// 读取文件直到文件的末尾
|
||||
while (!reader.EndOfStream)
|
||||
@@ -92,7 +82,7 @@ namespace formula_manage.EX
|
||||
{
|
||||
// 处理可能发生的任何异常
|
||||
MessageBox.Show("Error reading file: " + ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user