public User(string nickname, string password) { this.nickName = nickname; this.password = password; colorId = MyColor.NameColorId(nickName); color = MyColor.HSI(colorId); }
//用户名框响应 private void TextBox_TextChanged_1(object sender, TextChangedEventArgs e) { string s = textBoxUserName.Text; tartgetColorId = MyColor.NameColorId(s); }