- 博客(11)
- 资源 (2)
- 收藏
- 关注
原创 C#获取cpu/主板/硬盘序列号
MessageBox.Show("硬盘序列号:" + id.Trim(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);MessageBox.Show("cpu序列号:" + cpuInfo.Trim(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);//获取cpu序列号。
2023-12-16 11:26:50
3466
1
原创 正则地址匹配省市县乡/镇详细地址
town>[^乡镇]+乡镇|.*?区|.+镇|.+乡|.*?中法武汉生态示范城|.*?阿荣旗林业和草原局|.*?<province>[^省]+^自治区|.*?市)|上海|北京|天津|重庆)(?<city>上海城区|北京城区|天津城区|重庆城区|重庆郊县|[^市]+自治州|.*?行政单位|.+盟|市辖区|香港岛|九龙半岛|新界|澳门半岛|海南州|屯昌县|临高县|定安县|澄迈县|神农架林区|路环岛|非堂区|氹仔|离岛|.*?<county>[^县]+县|.*?
2023-03-27 17:58:52
1398
1
原创 c#禁止防止重复打开窗口
static class Program { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRende...
2021-01-12 11:31:38
471
原创 设置ComboBox的DisplayMember和ValueMember属性并取值
//数据转换dynamic model = JsonConvert.DeserializeObject(result);this.comboBoxExp.DataSource = model;this.comboBoxExp.DisplayMember = "name";this.comboBoxExp.ValueMember = "id";//获取dynamic expItem = this.comboBoxExp.SelectedItem as dynamic;string e..
2021-01-06 16:14:44
1546
1
原创 c#datagridview获取选中复选框总数
private void dataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e) { int rowInde = e.RowIndex; if ((Convert.ToBoolean(dataGridView.Rows[rowInde].Cells[0].Value) == true)) { da...
2020-12-10 20:00:19
815
原创 C#圆通订单创建接口测试类
class YtoUtil { private static string requestURL = "http://opentestapi.yto.net.cn/service/order_create/v1/"; //请求地址 private static string clientId = "TEST"; //客户编码 private static string partnerId = "123456"; //商家秘钥 .
2020-11-06 11:27:30
507
翻译 DataGridView获取行中的数据
1.获取知道的第一行第一列的数据:<span style="color:#000000"><code>dataGridView1<span style="color:#009900 !important">.Rows</span>[<span style="color:#006666 !important">0</span>]<span style="color:#009900 !important">.Cells&l
2020-11-06 11:20:57
4336
原创 c#获取combox选中的value
dynamic test = this.comboBoxStore.SelectedItem as dynamic;MessageBox.Show(test.Row.ItemArray[1]);
2020-11-03 17:06:10
3299
原创 单例线程池newFixedThreadPool
public class FixedThreadUtil { private ExecutorService fixedThreadPool; private FixedThreadUtil() { if (fixedThreadPool == null) { fixedThreadPool = Executors.newFixedThreadPool(20); } } private static FixedT.
2020-10-20 15:52:37
333
通过jarjar.jar来替换jar包名jarjar0.2/0.6/1.1/1.4
2018-03-28
spring框架项目+jQueryAjax提交实例。jquery-3.3.1.min.js
2018-03-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人