private void btnOK_Click(object sender, EventArgs e) { routingItem.remarks = txtRemarks.Text.Trim(); routingItem.url = txtUrl.Text.Trim(); if (ConfigHandler.AddRoutingItem(ref config, routingItem, EditIndex) == 0) { this.DialogResult = DialogResult.OK; } else { UI.ShowWarning(UIRes.I18N("OperationFailed")); } }
private void btnOK_Click(object sender, EventArgs e) { routingItem.remarks = txtRemarks.Text.Trim(); routingItem.url = txtUrl.Text.Trim(); routingItem.customIcon = txtCustomIcon.Text.Trim(); if (ConfigHandler.AddRoutingItem(ref config, routingItem, EditIndex) == 0) { DialogResult = DialogResult.OK; } else { UI.ShowWarning(ResUI.OperationFailed); } }