Esempio n. 1
0
 public MessageBox(Rectangle size)
 {
     _X = size.X;
     _Y = size.Y;
     _width = size.Width;
     _height = size.Height;
     _rect = size;
     _maxLines = (int)Math.Floor((_height - 16) / 11.0d);
     bgWindow = new Window();
     bgWindow.SetPosition(_X, _Y);
     bgWindow.SetSize(_width, _height);
     Init();
 }
Esempio n. 2
0
 public MessageBox(int lines, int X, int Y)
 {
     messages = new List<string>();
     _maxLines = lines;
     _X = X;
     _Y = Y;
     _width = 400;
     _height = lines * 11 + 16;
     _rect = new Rectangle(_X, _Y, _width, _height);
     bgWindow = new Window();
     bgWindow.SetPosition(_X + (_width / 2), _Y + (_height / 2));
     bgWindow.SetSize(_width, _height);
     Init();
 }