예제 #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;
     }
 }
예제 #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;
     }
 }