示例#1
0
        private void Button1Click(object sender, EventArgs e)
        {
            World = new VGWorld(Convert.ToInt32(textBox1.Text), Convert.ToInt32(textBox2.Text), Convert.ToInt32(textBox3.Text));
            World.WorldArea.SetBorder(1);

            richTextBox1.Text = World.WorldArea.ToString();
        }
示例#2
0
        public Form1()
        {
            InitializeComponent();

            World = new VGWorld(199, 119, 0);
            World.WorldArea.SetBorder(1);

            richTextBox1.Text = World.WorldArea.ToString();
        }