Problem With Paramaters

Oct 22 2010 2:15 PM
I have the following code in my form:

 
public
partial class FrmViewAccidentDetails : Form
{

#region
"Fields"
//Main Form Instance.
public Form MainFormInstance;
//Data Objects.
private AutoClaimDataSet.TblClaimsRow ClaimData;
public AutoClaimDataSet.TblClaimsRow SetClaimData
{
set { ClaimData = value; }
}

#endregion

#region
"Constructor"
public FrmViewAccidentDetails(Form MainFormInst, AutoClaimDataSet.TblClaimsRow Row)
{

#region
"General"
InitializeComponent();
MainFormInstance = MainFormInst;
STSDate.Text =
"Date: " + System.DateTime.Now.ToString("dd/MM/yyyy");
STSTime.Text =
"Time: " + System.DateTime.Now.ToString("HH:mm");
#endregion

#region
"Load Data Into Form"


#endregion

}

#endregion

#region
"Events"
#region
"Tree View - Click"
private void TVMain_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
if (e.Node.Tag == null)
{
return;
}
else
{
if (e.Node.Tag.ToString() == "CloseNode")
{
this.Close();
this.Dispose();
}
}
}

#endregion

#region
"Main Timer - Tick"
private void TMRMain_Tick(object sender, EventArgs e)
{
STSTime.Text =
"Time: " + System.DateTime.Now.ToString("HH:mm");
}

#endregion

#endregion

}
 
When I create a new instance of the form it only asks for the first parameter in the constructor. If I pass a TblClaimsRow as a parameter I get an error saying that it only takes one parameter?

Can anyone think of why this may b?

Thanks

Answers (1)