private void Init() { // DTO 객체에 db정보 초기화 UserDto userDto = new UserDto(); FriendDto dto = new FriendDto(); userDto.Load(); dto.Load(); if (FriendDto.Friends.Find(x => x.id == LoginInfo.selectedUser.id) == null && FriendDto.Received_Requests.Find(x => x.id == LoginInfo.selectedUser.id) == null && LoginInfo.login.id != LoginInfo.selectedUser.id) { button1.Visible = true; } // 로그인된 유저의 정보를 폼에 띄우기 label1.Text = LoginInfo.selectedUser.name + " (" + LoginInfo.selectedUser.id + ")"; label2.Text = LoginInfo.selectedUser.message; MemoryStream ms = new MemoryStream(LoginInfo.selectedUser.image); pictureBox1.Image = Image.FromStream(ms); pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage; this.OnLoad(new EventArgs()); }
private void Init() { // DTO 객체에 db정보 초기화 UserDto userDto = new UserDto(); FriendDto dto = new FriendDto(); userDto.Load(); dto.Load(); // 로그인된 유저의 정보를 폼에 띄우기 textBox5.Text = LoginInfo.login.id; textBox1.Text = LoginInfo.login.name; textBox4.Text = LoginInfo.login.message; MemoryStream ms = new MemoryStream(LoginInfo.login.image); pictureBox1.Image = Image.FromStream(ms); pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage; }
private void Init() { userDto.Load(); friendDto.Load(); this.OnLoad(new EventArgs()); }