Esempio n. 1
0
 private void FrmEditMyAccount_Load(object sender, EventArgs e)
 {
     try
     {
         // Get Current User name Start
         _staticStrCurrentUserName = Security.GetCurrentUser();
         // Get current user name End
         //
         // Loading current user date into form Start
         string strFName     = null;
         string strLName     = null;
         string strAddress   = null;
         string strTelephone = null;
         using (DBAuditDataContext dc = new DBAuditDataContext())
         {
             dc.ProSelectMyUserAccount(_staticStrCurrentUserName, ref strFName, ref strLName,
                                       ref strAddress, ref strTelephone);
             TxtUserName.Text  = _staticStrCurrentUserName;
             TxtFirstName.Text = strFName;
             TxtLastName.Text  = strLName;
             TxtAddress.Text   = strAddress;
             TxtTelephone.Text = strTelephone;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
     // Loading current user date into form End
 }