Cannot access properties in a public class

  • Thread starter Thread starter labjac
  • Start date Start date
L

labjac

Guest
Hallo

Sure I'm missing something simple, but for some reason I cannot access the properties of this class, when hovering over the error the message is cannot access the properties due to it's access level, but the class is public and in reference is correct and in the scope of this project. :-(

Below is just a snippet of the part of the code:

using System.Windows.Forms;
using WCS_Cap.BOL;
using WCS_Cap.BAL;

namespace WCS_Cap
{
public partial class frFurnaceFoundryMain : Form
{
DataTable dtFurnData = new DataTable();
FurnaceInfoBA objFurnace = new FurnaceInfoBA();
FurnaceInfoBO objFurnSymbols = new FurnaceInfoBO();
int CastNrID;
int FurnaceSelectedID = 1;
int CastSelectedID;
int MaterialSourceID = 1;
int MaterialTypeID = 1;
float MaterialWeight = 0;

public frFurnaceFoundryMain()
{
InitializeComponent();

}


private void btnAddMaterial_Click(object sender, EventArgs e)
{
objFurnSymbols.LoggedDateTime = //Cannot access these properties.. ???



}
}

}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WCS_Cap.BOL
{
public class FurnaceInfoBO
{
DateTime LoggedDateTime { get; set; }
int FurnID { get; set; }
int CastNrID { get; set; }
int CastSizeID { get; set; }
int MaterialSourceID { get; set; }
int MaterialTypeID { get; set; }
int MaterialWeight { get; set; }
}
}






labjac

Continue reading...
 
Back
Top