Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }