Beispiel #1
0
        /// <summary>
        /// 删除控件数据
        /// </summary>
        /// <param name="infos"></param>
        /// <returns></returns>
        public bool DeleteDatabaseToControl(params ControlEnum[] ce)
        {
            ControlEnumNameDll control = new ControlEnumNameDll();
            int cout = control.Delete(ce.ToList());

            if (cout == ce.Length)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
        private static void DeleControlData()
        {
            string dllPath = AppDomain.CurrentDomain.SetupInformation.ApplicationBase;
            string contr   = dllPath.Replace("application\\", "Cofigure\\SerializeContr.dat");

            if (File.Exists(contr))
            {
                try
                {
                    File.Delete(contr);
                }
                catch
                {
                }
            }
            ControlEnumNameDll contrdata = new ControlEnumNameDll();

            contrdata.Delete(contrdata.GetList());
        }