Exemplo n.º 1
0
        private Database GetDatabaseFromPwDatabase(PwDatabase pwd, bool fullDetail, bool noDetail)
        {
            //Debug.Indent();
               // Stopwatch sw = Stopwatch.StartNew();
            if (fullDetail && noDetail)
                throw new ArgumentException("Don't be silly");

            PwGroup pwg = GetRootPwGroup(pwd);
            Group rt = GetGroupFromPwGroup(pwg);
            if (fullDetail)
                rt.ChildEntries = (Entry[])GetChildEntries(pwd, pwg, fullDetail);
            else if (!noDetail)
                rt.ChildLightEntries = GetChildEntries(pwd, pwg, fullDetail);

            if (!noDetail)
                rt.ChildGroups = GetChildGroups(pwd, pwg, true, fullDetail);
            //host.Database.RootGroup.

            Database kpd = new Database(pwd.Name, pwd.IOConnectionInfo.GetDisplayName(), rt, (pwd == host.Database) ? true : false);

              //  sw.Stop();
              //  Debug.WriteLine("GetDatabaseFromPwDatabase execution time: " + sw.Elapsed);
              //  Debug.Unindent();
            return kpd;
        }
Exemplo n.º 2
0
 public Entry(
     string[] urls,
     string formActionURL,
     string hTTPRealm,
     string title,
     FormField[] formFieldList,
     string uniqueID,
     bool alwaysAutoFill,
     bool neverAutoFill,
     bool alwaysAutoSubmit,
     bool neverAutoSubmit,
     int priority,
     Group parent,
     string iconImageData,
     Database db)
 {
     URLs = urls;
     FormActionURL = formActionURL;
     HTTPRealm = hTTPRealm;
     Title = title;
     FormFieldList = formFieldList;
     UniqueID = uniqueID;
     AlwaysAutoFill = alwaysAutoFill;
     NeverAutoFill = neverAutoFill;
     AlwaysAutoSubmit = alwaysAutoSubmit;
     NeverAutoSubmit = neverAutoSubmit;
     Priority = priority;
     Parent = parent;
     IconImageData = iconImageData;
     Db = db;
 }