- 博客(6)
- 收藏
- 关注
转载 .net 4.0及以下版本,MVVM模式ViewModel基类:使用StackTrace实现INotifyPropertyChanged接口
using System;using System.ComponentModel;namespace SSMart_Model{ public class VModelBase: INotifyPropertyChanged, IDisposable { public event PropertyChangedEventHandler PropertyCha...
2018-10-17 09:31:54
381
转载 .net 4.5版本MVVM模式下ViewModel基类:使用CallerMemberName优雅实现INotifyPropertyChanged接口
using System;using System.Collections.Generic;using System.ComponentModel;using System.Diagnostics;namespace SSMart_Model{ /// <summary> /// Provides common functionality for ViewM...
2018-10-17 09:28:00
879
转载 NPOI导出Excel
public void DataGridViewToExcel(string sheetName, DataGridView dgv) { //创建一个保存对话框 SaveFileDialog save = new SaveFileDialog(); //创建一个流 Stream str...
2018-05-30 17:32:21
178
转载 NPOI加载EXCEL表
private bool ExcelToDataTable(string strFileName, int sheetIndex = 0) { bool b_result = false; DataTable dt = new DataTable(); HSSFWorkbook hssfworkbook = nu...
2018-05-30 17:25:19
239
原创 打开文件对话框里的文件,保存到项目根目录
private void button1_Click(object sender, EventArgs e) { openFileDialog1.Filter = "|*.xml"; if (openFileDialog1.ShowDialog() == DialogResult.OK) { ...
2018-05-30 17:17:23
534
原创 Java Linux 时区同步设置和重启 arm端
import java.io.IOException;public class SetUpToLed {//时区同步设置 public static void setTimeZone(String timeZoneStr) { //timeZoneStr = "Pacific/Guam"; String timezone = "sudo c
2017-05-25 11:13:43
285
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅