摘要: public class DGVCopy { public DataGridView DataGridViewCopy { get; set; } public int X { get; set; } public int Y { get; set; } public void CopyData() 阅读全文
posted @ 2017-06-06 12:49 Magic_Cc 阅读(884) 评论(0) 推荐(0) 编辑
摘要: <html><head><script>var array=[1,'a',true,10.1];//alert(array);//alert(array.length);//for(i=0;i<array.length;i++)//{//alert(array[i]);//}//for(var i 阅读全文
posted @ 2016-10-28 21:19 Magic_Cc 阅读(155) 评论(0) 推荐(0) 编辑
摘要: <html><head><script> var a=10; function f1(){//a=11; // ①//var a; // ② a=11; b=20; //如果在函数内部没有申明变量,变量视为全局变量 编译时自动会给b声明变量 var b } f1(); alert(a); //在①的 阅读全文
posted @ 2016-09-27 09:06 Magic_Cc 阅读(161) 评论(0) 推荐(0) 编辑
摘要: var a=10; alert(Boolean(a)); 这句话输出的是true,变量a只要有值输出的结果都是true,因为二进制转换只要不为空结果都是1,就是true。 //undefiend,null,'',0只要不是这几个情况都有值 判断 == 值是否相同 先判断类型在判断值是否相同 aler 阅读全文
posted @ 2016-09-26 21:34 Magic_Cc 阅读(171) 评论(0) 推荐(0) 编辑
摘要: public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button2_MouseEnter(object sender, EventArgs e) { button2_Mo 阅读全文
posted @ 2016-09-05 16:48 Magic_Cc 阅读(210) 评论(0) 推荐(0) 编辑
摘要: if ((!Regex.IsMatch(textBox1.Text, @"^(^\d{15}$|^\d{18}$|^\d{17}(\d|X|x))$", RegexOptions.IgnoreCase))) { MessageBox.Show("请输入正确的身份证号码!", "提示", Messag 阅读全文
posted @ 2016-06-15 16:29 Magic_Cc 阅读(251) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 地块自动编号 /// </summary> /// <param name="cmbNumber">嘎查村编号</param> /// <param name="maxBlockNumber">SDE中查出的最大编号</param> /// <returns>返回 阅读全文
posted @ 2016-05-11 16:23 Magic_Cc 阅读(168) 评论(0) 推荐(0) 编辑
摘要: private void button2_Click(object sender, EventArgs e) { CheckRadioButton(); } List<RadioButton> rList = new List<RadioButton>(); private void CheckRa 阅读全文
posted @ 2016-04-02 11:14 Magic_Cc 阅读(512) 评论(0) 推荐(0) 编辑
摘要: USE [Ecological]GO/****** Object: StoredProcedure [dbo].[SP_Ecological] Script Date: 2016/3/24 15:02:15 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIE 阅读全文
posted @ 2016-03-24 15:27 Magic_Cc 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 这些功能的实现都是通过ICommand来实现的,引用的是Esri.Arcgis.SystemUI;//这里的xxxxxxx就是你要实现的具体功能,xxxxxxx都是Controls点后都会看到的。ICommand command = new ESRI.ArcGIS.Controls.xxxxxxxx... 阅读全文
posted @ 2015-12-23 10:57 Magic_Cc 阅读(1759) 评论(0) 推荐(0) 编辑