|
|
@@ -100,6 +100,18 @@ namespace BPASmartClient.ViewModel |
|
|
|
ExcellOrder(); |
|
|
|
}); |
|
|
|
|
|
|
|
OpenCommand = new RelayCommand(() => |
|
|
|
{ |
|
|
|
string msg = string.Format("已找到日志文件,是否打开! \n 1.如选中不打开,则弹出日志文件夹目录。\n 2.打开,则弹出日志文件夹目录,并打开文件。"); |
|
|
|
if (System.Windows.MessageBox.Show(msg, "提示", MessageBoxButton.OKCancel) == MessageBoxResult.OK) |
|
|
|
{ |
|
|
|
System.Diagnostics.Process.Start("Explorer", "/select," + logHelper.GetLogConfigInstance().directRollfileAppender.File); |
|
|
|
OpenFile(logHelper.GetLogConfigInstance().directRollfileAppender.File); |
|
|
|
}else |
|
|
|
System.Diagnostics.Process.Start("Explorer", "/select," + logHelper.GetLogConfigInstance().directRollfileAppender.File); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
dispatcherTimer = new DispatcherTimer(); |
|
|
|
dispatcherTimer.Tick += delegate |
|
|
|
{ |
|
|
@@ -246,7 +258,7 @@ namespace BPASmartClient.ViewModel |
|
|
|
} |
|
|
|
|
|
|
|
public RelayCommand ExcelCommand { get; set; } |
|
|
|
|
|
|
|
public RelayCommand OpenCommand { get; set; } |
|
|
|
} |
|
|
|
|
|
|
|
public class LogModel : ObservableObject |
|
|
|