public void SetData(JTsafeInfo info) { this.StrCarNum.Text = info.StrCarNum; this.IsProf.Text = info.IsProf; this.TranBy.Text = info.TranBy; this.TranType.Text = info.TranType; }
public JTsafeInfo GetData() { JTsafeInfo info = new JTsafeInfo(); info.StrCarNum = this.StrCarNum.Text; info.IsProf = this.IsProf.Text; info.TranBy = this.TranBy.Text; info.TranType = this.TranType.SelectedText; return(info); }
private void clearBtn_Click(object sender, EventArgs e) { JTsafeInfo jtinfo = new JTsafeInfo(); jtinfo.StrCarNum = null; jtinfo.IsProf = null; jtinfo.TranBy = null; jtinfo.TranType = null; SetData(jtinfo); }