Ejemplo n.º 1
0
 /// <summary>
 /// 保存数据
 /// </summary>
 public void SaveAllDate()
 {
     try
     {
         foreach (XtraTabPage item in tabcontrol.TabPages)
         {
             if (item == null || item.Controls == null || item.Controls.Count == 0)
             {
                 continue;
             }
             UCIncommonNoteTab   uCIncommonNoteTab   = item.Controls[0] as UCIncommonNoteTab;
             UCInCommonTabSingle uCInCommonTabSingle = item.Controls[0] as UCInCommonTabSingle;
             if (uCIncommonNoteTab != null)
             {
                 uCIncommonNoteTab.btnSave_Click(null, null);
             }
             else if (uCInCommonTabSingle != null)
             {
                 uCInCommonTabSingle.btnSave_Click(null, null);
             }
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }