Daila/frmtbProPathNew.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Daila.NewClass;
using System.Data.OleDb;
using System.Data;
using Daila.NewMehod;
namespace Daila
{
public partial class frmtbProPathNew : Form
{
public frmtbProPathNew()
{
InitializeComponent();
}
private void frmtbProPathNew_Load(object sender, EventArgs e)
{
bntOK.Enabled = false;
}
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (textBox1.Text != "")
{
bntOK.Enabled = true;
}
}
private void bntEsce_Click(object sender, EventArgs e)
{
this.Close();
}
private void bntOK_Click(object sender, EventArgs e)
{
tbProPathClass tbCalss = new tbProPathClass();
tbProPathMenthod tbMenthod = new tbProPathMenthod();
if (textBox1.Text == "")
{
MessageBox.Show("名称:不能为空!","提示");
}
tbCalss.ProID = tbMenthod.tbProPathID();
tbCalss.ProName = textBox1.Text;
tbCalss.ProPath = "0";
int intResult = tbMenthod.tbProPathMenthodAdd(tbCalss);
if (intResult == 1)
{
MessageBox.Show("添加成功!");
frmtbProPath frm = (frmtbProPath)this.Owner;
tbMenthod.filltbProPath(frm.treeView1, frm.imageList1);
this.Close();
}
后面还有 7 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
