Beispiel #1
0
        public static CSecurityData CreateNew()
        {
            CSecurityData lResult = new CSecurityData();

            lResult.AppendChild(lResult.CreateXmlDeclaration("1.0", "utf-8", ""));
            XmlTools.CreateXmlNode(lResult, XML_NODE_SECURITY, lResult);
            return(lResult);
        }
Beispiel #2
0
        public static CSecurityNode AddSecNode(CSecurityData aSecDoc, string aService, string aType)
        {
            CSecurityNode lResult = new CSecurityNode(XmlTools.CreateXmlNode(aSecDoc, XML_NODE_KEY, aSecDoc.SecRootNode));

            lResult.Service = aService;
            lResult.Type    = aType;

            return(lResult);
        }
Beispiel #3
0
        public static CSecurityNode AddSecNode(CSecurityData aSecDoc, string aService, string aType)
        {
            CSecurityNode lResult = new CSecurityNode(XmlTools.CreateXmlNode(aSecDoc, XML_NODE_KEY, aSecDoc.SecRootNode));

            lResult.Service = aService;
            lResult.Type = aType;

            return lResult;
        }
Beispiel #4
0
        public static CSecurityNode AddSecNode(CSecurityData aSecDoc, string aService, string aType, string aUsr, string aPwd)
        {
            CSecurityNode lResult = new CSecurityNode(XmlTools.CreateXmlNode(aSecDoc, XML_NODE_KEY, aSecDoc.SecRootNode));

            lResult.Service  = aService;
            lResult.Type     = aType;
            lResult.UserName = aUsr;
            lResult.Password = aPwd;

            return(lResult);
        }
Beispiel #5
0
        public static CSecurityNode AddSecNode(CSecurityData aSecDoc, string aService, string aType, string aUsr, string aPwd)
        {
            CSecurityNode lResult = new CSecurityNode(XmlTools.CreateXmlNode(aSecDoc, XML_NODE_KEY, aSecDoc.SecRootNode));

            lResult.Service = aService;
            lResult.Type = aType;
            lResult.UserName = aUsr;
            lResult.Password = aPwd;

            return lResult;
        }
Beispiel #6
0
 public static CSecurityData CreateNew()
 {
     CSecurityData lResult = new CSecurityData();
     lResult.AppendChild(lResult.CreateXmlDeclaration("1.0", "utf-8", ""));
     XmlTools.CreateXmlNode(lResult, XML_NODE_SECURITY, lResult);
     return lResult;
 }
Beispiel #7
0
        private static void loadSecurity()
        {
            string lFile = RsViewEngine.ProfileManager.SecurityFile;

            if (!File.Exists(lFile))
            {
                _Security = CSecurityData.CreateNew();
                _Security.Save(lFile);
            }
            else
            {
                if (RsOldSecurity.IsOldFormat(lFile))
                    RsOldSecurity.ConvertToNew(lFile);

                _Security = new CSecurityData();
                _Security.Load(lFile);
            }
        }
Beispiel #8
0
        public static void InitializeCore()
        {
            System.Windows.Forms.Application.ThreadException += new ThreadExceptionEventHandler(EH_ThreadException);
            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(EH_UnhandledException);

            _Security = null;
            _Version = CApplicationVersion.StringToApplicationVersion(RsApplicationInfo.VersionString);
            //_Collections = new ArrayList();
            _ChildApps = new CChildApplications();
        }