private void btCreate_Click(object sender, EventArgs e) { try { FormCreateCardboardProfile dlg = new FormCreateCardboardProfile(); if (DialogResult.OK == dlg.ShowDialog()) { // get client PLMPackServiceClient client = WCFClientSingleton.Instance.Client; client.CreateNewCardboardProfile(dlg.ProfileName, dlg.Description, dlg.Code, dlg.Thickness); // fill list view again FillListView(); } } catch (Exception ex) { _log.Debug(ex.ToString()); } }