Beispiel #1
0
        private void ButtonApply_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrWhiteSpace(textBoxHeight.Text) || string.IsNullOrWhiteSpace(textBoxWidth.Text) ||
                string.IsNullOrWhiteSpace(textBoxX.Text) || string.IsNullOrWhiteSpace(textBoxY.Text))
            {
                MessageBox.Show(LocalizedMessageProvider.GetMessage("SET_HEIGHT_WIDTH"),
                                LocalizedMessageProvider.GetMessage("ERROR"), MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            Borders.EditWindow(process, int.Parse(textBoxX.Text), int.Parse(textBoxY.Text),
                               int.Parse(textBoxHeight.Text), int.Parse(textBoxWidth.Text));
            Close();
        }