我正在为诊所软件编写Patient
类,想要添加一个Photo
属性,但是Image
类似乎在我的代码中无法正常工作,不知道为什么,因为我已经包含了System.Drawing
。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
namespace ClinicFiles
{
public partial class Patient : Person
{
public Image Photo { get; set; }
//etc. etc.
}
}
附言:你在哪个网站上找到了最好的Windows应用程序设计指南?:)美观和专业的用户界面,所有细节都被关注到,例如字体等。:)
System.Drawing
,你是指你将其添加为引用还是只是添加了using
语句? - itsme86