Exemplo n.º 1
0
 public QueryResult(DataBaseUser data)
 {
     InitializeComponent();
     OK.Focus();
     if (data == null)
     {
         Result.Text = "No such user in the database!";
     }
     else
     {
         Result.Text = "User ID\t" + "User Name\t" + "User Group\n"
                         + data.UserID + "\t" + data.UserName + "\t" + data.UserGroup;
     }
 }
Exemplo n.º 2
0
 public QueryResult(DataBaseUser data)
 {
     InitializeComponent();
     OK.Focus();
     if (data == null)
     {
         Result.Text = "No such user in the database!";
     }
     else
     {
         Result.Text = "User ID\t" + "User Name\t" + "User Group\n"
                       + data.UserID + "\t" + data.UserName + "\t" + data.UserGroup;
     }
 }