摘要:
1、将样式放入一个文件进行引用@import url("../media/css/bootstrap.min.css");@import url("../media/css/bootstrap-responsive.min.css");@import url("../media/css/font-a... 阅读全文
摘要:
/// /// /// /// /// private void dataGridView3_CurrentCellDirtyStateChanged(object sender, EventArgs e) ... 阅读全文
摘要:
一、菜单数据表中的存储结构 二、转换后的数据结构 三、 转换过程 1、确定菜单数据的最大级别 /// /// 获得Nature定义的最大目录级别,以便于确定Nature的DataTable表结构中的列数目 /// /// ... 阅读全文
摘要:
private void btnPrev_Click(object sender, RoutedEventArgs e) { scrollRule = (scrollRule-200) >= 0 ?(scrollRule-200): 0; MessageBox.Show(scrollRule.ToString() + "原来宽度:" + sv.ScrollableWidth); sv.ScrollToHorizontalOffset(scrollRule); ... 阅读全文
摘要:
/// /// 复制文件夹 /// /// private void ExcuteXCopyCmd(string sCmd) { System.Diagnostics.Process proIP = new System.Diagnostics.Process(); proIP.StartInfo.FileName = "cmd.exe"; proIP.StartInfo.UseShellExecute = false; pr... 阅读全文
摘要:
操作方法:在管理员身份打开命令行,运行以下命令:C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -i 阅读全文
摘要:
1 private Configuration config; 2 public OperateConfig() 3 : this(HttpContext.Current.Request.ApplicationPath) 4 { 5 } 6 7 public OperateConfig(string path) 8 { 9 config = WebConfigurationManager.OpenWebConfiguration(path);10 ... 阅读全文
摘要:
private void Button_Click_1(object sender, RoutedEventArgs e) { WebClient wb = new WebClient(); wb.DownloadStringCompleted += new DownloadStringCompletedEventHandler(wb_DownloadStringCompleted); wb.DownloadStringAsync(new Uri("http://localhost:49380/Ex... 阅读全文
摘要:
1 private bool CopyFolderFromSrcToDest(string sourcePath, string targetPath) 2 { 3 bool isCopyFlag = false; 4 try 5 { 6 if (Directory.Exists(sourcePath)) 7 { 8 Directory.CreateDirectory(targetPath); 9 1... 阅读全文
摘要:
文件上传类 1 using System; 2 using System.Collections.Generic; 3 using System.Diagnostics; 4 using System.IO; 5 using System.Linq; 6 using System.Net; 7 using System.Text; 8 using System.Threading.Tasks; 9 10 namespace ImageResize 11 { 12 public class FtpClient 13 { 14 public str... 阅读全文