public static bool Edit(DeployQueueInfo queueConfiguration) { var form = new EditDeployQueueForm { _queueConfiguration = queueConfiguration, txtQueueName = { Text = queueConfiguration.Name } }; return form.ShowDialog() == DialogResult.OK; }
protected override void btnOk_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(txtQueueName.Text.Trim())) MessageBox.Show("Queue field cannot not be empty"); if (_queueConfiguration == null) _queueConfiguration = new DeployQueueInfo(); _queueConfiguration.Name = txtQueueName.Text.Trim(); Close(); DialogResult = DialogResult.OK; }