摘要:
using System.IO; //导出到execl public void Excel(DataGridView dgv) { SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.Filter = "Execl files (*.xls)|*.xls"; saveFileDialog.FilterIndex = 0; saveFileDialog.RestoreDirecto... 阅读全文
摘要:
using System.Runtime.InteropServices; #region [操作ini文件] [DllImport("kernel32")] private static extern bool WritePrivateProfileString(string section, string key, string val, string filePath); //section:ini文件中的段落;key:ini文件中的关键字;val:ini文件中关键字的数值;filepath:ini文件的完整的路径和名称 ... 阅读全文
摘要:
using System.Security.Cryptography; public class DESEncrypt { #region ========加密======== /// <summary> /// 加密 /// </summary> /// <param name="Text"></param> /// <returns></returns> public static string Encrypt... 阅读全文
摘要:
using System.Reflection; bool exist = false; //实体对象 object myResult = null; int _index = path.IndexOf("Combine"); foreach (object obj in objList) { if ((obj as RdoObject).rosPath == path) { ... 阅读全文
摘要:
string parmes = ""; Process w = new Process(); //指定 调用程序的路径 w.StartInfo.FileName = Application.StartupPath + @"\xmlpkg.exe"; w.StartInfo.UseShellExecu 阅读全文
摘要:
sourcetree github 阅读全文
摘要:
office:http://wiki.mikrotik.com/wiki/Manual:API author: Saturn login命令 /login ,登录命令 使用指定的ROS加密协议 /login=name=admin=response=001ea726ed53ae38520c8334f8 阅读全文