private void buttonUpdate_Click(object sender, EventArgs e) { int n = listBox1.SelectedIndex; if (n >= 0) { AsmxURL au = listBox1.Items[n] as AsmxURL; DlgAddWebService dlg = new DlgAddWebService(); dlg.SetData(_folder, _namespace); dlg.SetFixedAsmxUrl(au); if (dlg.ShowDialog(this) == DialogResult.OK) { } } }
internal void SetFixedAsmxUrl(AsmxURL asmx) { textBoxAsmx.Text = asmx.AsmxUrl; textBoxAsmx.ReadOnly = true; textBoxDll.Text = asmx.DllFile; textBoxDll.ReadOnly = true; textBoxWsdl.Text = asmx.Wsdl; textBoxWsdl.ReadOnly = true; textBoxProxy.Text = asmx.Proxy; textBoxProxy.ReadOnly = true; rdbAsmx.Checked = true; rdbWsdl.Enabled = false; rdbAsmx.Enabled = false; buttonAdd.Text = "Update"; _filesFixed = true; }