예제 #1
0
        /// <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();
        }
예제 #2
0
 /// <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();
 }