Ejemplo n.º 1
0
        /// <summary>
        /// 存在数据未保存
        /// </summary>
        /// <returns></returns>
        public bool HasInfoSave()
        {
            bool HasSave = false;

            foreach (XtraTabPage item in tabcontrol.TabPages)
            {
                if (item == null || item.Controls == null || item.Controls.Count == 0)
                {
                    continue;
                }
                UCIncommonNoteTab uCIncommonNoteTab = item.Controls[0] as UCIncommonNoteTab;
                if (uCIncommonNoteTab == null)
                {
                    continue;
                }
                HasSave = uCIncommonNoteTab.HasSave();
                if (HasSave)
                {
                    return(HasSave);
                }
            }
            return(HasSave);
        }