Tag: 可访问性

不一致的可访问性:参数types不如方法可访问

我试图传递一个对象(基本上是当前login用户的引用)之间的两种forms。 目前,我在login表单中有这样几行: private ACTInterface oActInterface; public void button1_Click(object sender, EventArgs e) { oActInterface = new ACTInterface(@"\\actserver\Database\Premier.pad",this.textUser.Text,this.textPass.Text); if (oActInterface.checkLoggedIn()) { //user has authed against ACT, so we can carry on clients oClientForm = new clients(oActInterface); this.Hide(); oClientForm.Show(); } else… 在下一个表格(客户),我有: public partial class clients : Form { private ACTInterface oActInt {get; set;} public clients(ACTInterface _oActInt) …这导致我得到: […]