Пример #1
0
 private void Resize()
 {
     _border.Width       = Width;
     _border.Height      = Height;
     _button.X           = Width - 6;
     _button.Y           = Height - 6;
     _viewport.Width     = _worldWidth;
     _viewport.Height    = _worldHeight;
     _chatControl.Width  = _worldWidth;
     _chatControl.Height = _worldHeight;
     _chatControl.Resize();
 }
Пример #2
0
 private void Resize()
 {
     _border.Width       = Width;
     _border.Height      = Height;
     _button.X           = Width - _button.Width / 2;
     _button.Y           = Height - _button.Height / 2;
     _viewport.Width     = _worldWidth;
     _viewport.Height    = _worldHeight;
     _chatControl.Width  = _worldWidth;
     _chatControl.Height = _worldHeight;
     _chatControl.Resize();
     WantUpdateSize = true;
 }