コード例 #1
0
 public static bool Edit(DeployQueueInfo queueConfiguration)
 {
     var form = new EditDeployQueueForm
     {
         _queueConfiguration = queueConfiguration,
         txtQueueName = { Text = queueConfiguration.Name }
     };
     return form.ShowDialog() == DialogResult.OK;
 }
コード例 #2
0
        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;
        }