예제 #1
0
 private void Bind()
 {
     if (DTSettings.Rows.Count > 0)
     {
         TxtRHdr1.Text    = DTSettings.Rows[0]["RHdr1"].ToString();
         TxtRHdr2.Text    = DTSettings.Rows[0]["RHdr2"].ToString();
         TxtRHdr3.Text    = DTSettings.Rows[0]["RHdr3"].ToString();
         TxtLHdr1.Text    = DTSettings.Rows[0]["LHdr1"].ToString();
         TxtLHdr2.Text    = DTSettings.Rows[0]["LHdr2"].ToString();
         TxtLHdr3.Text    = DTSettings.Rows[0]["LHdr3"].ToString();
         TxtFooter.Text   = DTSettings.Rows[0]["Footer"].ToString();
         PictureHdr.Image = CImage.ArrayTextToImage(DTSettings.Rows[0]["PictureHdr"]);
     }
     else
     {
         TxtRHdr1.Text    = "";
         TxtRHdr2.Text    = "";
         TxtRHdr3.Text    = "";
         TxtLHdr1.Text    = "";
         TxtLHdr2.Text    = "";
         TxtLHdr3.Text    = "";
         TxtFooter.Text   = "";
         PictureHdr.Image = null;
     }
 }