ShowInfoLibrary/ShowAddRoomType.cs

(完整代码) 1KB

using System;
using System.Windows.Forms;
using SetupOperDBLibrary;

namespace ShowInfoLibrary
{
	/// <summary>
	/// ShowAddRoomType 的摘要说明。
	/// </summary>
	public class ShowAddRoomType
	{
		public bool checkedRoomtype(string type,string priceday,string pricehour,string istimeroom,string setNum)
		{
			
			bool bl=true;
			if(type==""||priceday==""||pricehour==""||istimeroom==""||setNum=="")
			{
				MessageBox.Show("请填写完整");
				bl=false;
			}
			try
			{
				float.Parse(priceday);
				float.Parse(pricehour);
				int.Parse(setNum);
			}
			catch
			{
				MessageBox.Show("数据格式不正确");
				bl=false;
			}
			return bl;
		}
		public bool AddRoomType(string type,string priceday,string pricehour,string istimeroom,string setNum)
		{
			bool bl=false;;
			try
			{
				SetupAddRoomtype add=new SetupAddRoomtype();
				bl= add.AddRoomtype(type,priceday,pricehour,istimeroom,setNum);
			}
			catch(Exception ex)
			{
				throw new ApplicationException("ShowInfoLibrary==",ex);
				
			}
			return bl;
		}
	}
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。