C#编译时总出现“应输入类型,命名空间或文件尾”,怎么解决?
usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Da...
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace ConsoleApplication1
{
public partial class 仓库信息管理 : Form
{
public 仓库信息管理()
{
InitializeComponent();
}
private void 添加button_Click(object sender, EventArgs e)
{
int amount =0;
Model.WareHouse house=new CarSale.Model.WareHouse(amount);
if (warehouse.Insert(house))
{
MessageBox.Show("添加一个仓库成功!");
ManageHouse_Load(sender,e);
}
else
MessageBox.Show("添加一个仓库失败!");
}
}
}
} 展开
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace ConsoleApplication1
{
public partial class 仓库信息管理 : Form
{
public 仓库信息管理()
{
InitializeComponent();
}
private void 添加button_Click(object sender, EventArgs e)
{
int amount =0;
Model.WareHouse house=new CarSale.Model.WareHouse(amount);
if (warehouse.Insert(house))
{
MessageBox.Show("添加一个仓库成功!");
ManageHouse_Load(sender,e);
}
else
MessageBox.Show("添加一个仓库失败!");
}
}
}
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询