DapperExTest/Form1.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace DapperExTest
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
//ucPagerControl21.ShowSourceChanged += UcPagerControl21_ShowSourceChanged;
}
private void UcPagerControl21_ShowSourceChanged(object currentSource)
{
dataGridView1.DataSource = currentSource;
//设置列头不可点击
/* foreach (var item in dataGridView1.Columns)
{
this.dataGridView1.Columns[item.ToString()].SortMode = DataGridViewColumnSortMode.NotSortable;
}*/
/* for (int i = 0; i < dataGridView1.Columns.Count; i++)
{
this.dataGridView1.Columns[i]. = DataGridViewColumnSortMode.NotSortable;
}*/
//
/* for (int i = 0; i < this.dataGridView1.Rows.Count; i++)
{
for (int j = 0; j < this.dataGridView1.Columns.Count; j++)
{
//MessageBox.Show(this.dataGridView1.Rows[i].Cells[j].Value.ToString());
//this.dataGridView1.Rows[i].Cells[j].Value = "";
if (this.dataGridView1.Rows[i].Cells[j].Value == null)
{
break;
}
//获得单元格数据查询条件
string v = this.dataGridView1.Rows[i].Cells[j].Value.ToString();
if (v != "")
{
//string[] vArr = v.Split(' ');
string[] vArr = v.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries);
int z = Convert.ToInt32(vArr[0].ToString());
int a = Convert.ToInt32(vArr[1].ToString());
int b = Convert.ToInt32(vArr[2].ToString());
string c = vArr[4].ToString();
Index_DB idb = idblist.Where(p => p.zu == z && p.a == a && p.b == b && p.c == c).FirstOrDefault();
if (idb == null)
continue;
this.dataGridView1.Rows[i].Cells[j].Value = idb.zu.ToString() + " " + idb.a.ToString() + " " + idb.b.ToString() + " — " + idb.c.ToString();
if (Convert.ToInt32(idb.Font) == 0)
{
后面还有 14 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。