/// <summary> /// 编辑 ListFamily /// </summary> /// <param name="dialogType"></param> private void EditListFamily(DialogType dialogType) { ListFamilyInfoDialog listFamilyInfoDialog = null; switch (dialogType) { case DialogType.Add: listFamilyInfoDialog = new ListFamilyInfoDialog(listFamiliesDataTable.Rows.Count); break; case DialogType.Edit: listFamilyInfoDialog = new ListFamilyInfoDialog(selectedListFamily); break; } if (listFamilyInfoDialog != null) { listFamilyInfoDialog.Owner = this; listFamilyInfoDialog.ShowDialog(); } ReadListFamiles(); }