5,388
社区成员
发帖
与我相关
我的任务
分享
private string classteacher
{
get
{
return this.tbTeacher.Text.Trim();
}
set
{
this.tbTeacher.Text = value;
}
}
private string classseq
{
get
{
return this.dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells["fdClassSeqDataGridViewTextBoxColumn"].Value.ToString();
}
set
{
this.dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells["fdClassSeqDataGridViewTextBoxColumn"].Value = value;
}
}
function GetName:String;
procedure SetName(value:String);
private
{ Private declarations }
public
property classseq:String Read GetName Write SetName;
function tform1.GetName:String;
begin
result:=DBGrid1.DataSource.DataSet.Fields[0].Asstring;
//相当C#的Get...
end;
procedure tform1.SetName(value:String);
begin
value:=DBGrid1.DataSource.DataSet.Fields[0].Asstring;
//相当C#的Set...
end;