Resize() public méthode

public Resize ( int width, int height ) : void
width int
height int
Résultat void
        private void buttonOK_Click(object sender, EventArgs e)
        {
            if (textName.Text == "")
            {
                MessageBox.Show("Screen must have a name.", "CME Level Editor", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            if (is_new)
            {
                stage.AddScreen(textName.Text, (int)widthField.Value, (int)heightField.Value);
            }
            else
            {
                // Rename the screen
                screen.Name = textName.Text;
                screen.Resize((int)widthField.Value, (int)heightField.Value);
            }

            Close();
        }