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; }
private void buttonFieldAdd_Click(object sender, EventArgs e) { KeeFoxFieldForm kfff = new KeeFoxFieldForm(null, null, null, FormFieldType.FFTtext, 1); if (kfff.ShowDialog() == DialogResult.OK) { FormField ff = new FormField(kfff.Name, kfff.Name, kfff.Value, kfff.Type, kfff.Id, kfff.Page); string type = Utilities.FormFieldTypeToDisplay(kfff.Type,false); int page = kfff.Page; // We know any new passwords are not the main Entry password // Also know that the display name can be same as main name ListViewItem lvi = new ListViewItem(new string[] { kfff.Name, kfff.Type == FormFieldType.FFTpassword ? "********" : kfff.Value, kfff.Id, type, page.ToString() }); lvi.Tag = ff; AddFieldListItem(lvi); UpdateFieldStrings(); } }
public KeeFoxFieldForm(FormField ff) : this(ff.Name, ff.Value, ff.Id, ff.Type, ff.Page) { }