834 lines
51 KiB
C#
834 lines
51 KiB
C#
|
using System;
|
||
|
using System.Drawing;
|
||
|
using System.Collections;
|
||
|
using System.ComponentModel;
|
||
|
using System.Windows.Forms;
|
||
|
using System.Collections.Specialized;
|
||
|
|
||
|
using Novell.SecretStore.NSSCSWrapper;
|
||
|
|
||
|
namespace SecretStoreService
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Summary description for Form3.
|
||
|
/// </summary>
|
||
|
public class AddSecretForm : System.Windows.Forms.Form
|
||
|
{
|
||
|
private System.Windows.Forms.TabControl tabControl1;
|
||
|
private System.Windows.Forms.TabPage tabPage1;
|
||
|
private System.Windows.Forms.TabPage tabPage2;
|
||
|
private System.Windows.Forms.GroupBox EPProtection;
|
||
|
private System.Windows.Forms.Label label2;
|
||
|
private System.Windows.Forms.Label label3;
|
||
|
private System.Windows.Forms.GroupBox groupBox1;
|
||
|
private System.Windows.Forms.CheckBox checkBox2;
|
||
|
/// <summary>
|
||
|
/// Required designer variable.
|
||
|
/// </summary>
|
||
|
private System.ComponentModel.Container components = null;
|
||
|
private SecretStore m_store = null;
|
||
|
private System.Windows.Forms.TextBox SecretID;
|
||
|
internal System.Windows.Forms.ListBox keyValueBox;
|
||
|
private System.Windows.Forms.TextBox EPPwd2;
|
||
|
private System.Windows.Forms.TextBox EPPwd1;
|
||
|
private System.Windows.Forms.CheckBox CheckBoxEP;
|
||
|
private System.Windows.Forms.GroupBox groupBox2;
|
||
|
private System.Windows.Forms.RadioButton credButton1;
|
||
|
private System.Windows.Forms.RadioButton appButton2;
|
||
|
private System.Windows.Forms.Button btnDelete;
|
||
|
private System.Windows.Forms.Button btnEdit;
|
||
|
private Secret m_secret = null;
|
||
|
private System.Windows.Forms.Button btnAdd;
|
||
|
private System.Windows.Forms.Button btnRefresh;
|
||
|
private System.Windows.Forms.Button btnOk;
|
||
|
private System.Windows.Forms.Button btnCancel;
|
||
|
|
||
|
private Boolean m_bShowValue = false;
|
||
|
|
||
|
public AddSecretForm(SecretStore store)
|
||
|
{
|
||
|
//
|
||
|
// Required for Windows Form Designer support
|
||
|
//
|
||
|
InitializeComponent();
|
||
|
|
||
|
//
|
||
|
// TODO: Add any constructor code after InitializeComponent call
|
||
|
//
|
||
|
m_store = store;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// Clean up any resources being used.
|
||
|
/// </summary>
|
||
|
protected override void Dispose( bool disposing )
|
||
|
{
|
||
|
if( disposing )
|
||
|
{
|
||
|
if(components != null)
|
||
|
{
|
||
|
components.Dispose();
|
||
|
}
|
||
|
}
|
||
|
base.Dispose( disposing );
|
||
|
}
|
||
|
|
||
|
#region Windows Form Designer generated code
|
||
|
/// <summary>
|
||
|
/// Required method for Designer support - do not modify
|
||
|
/// the contents of this method with the code editor.
|
||
|
/// </summary>
|
||
|
private void InitializeComponent()
|
||
|
{
|
||
|
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(AddSecretForm));
|
||
|
this.tabControl1 = new System.Windows.Forms.TabControl();
|
||
|
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||
|
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||
|
this.appButton2 = new System.Windows.Forms.RadioButton();
|
||
|
this.credButton1 = new System.Windows.Forms.RadioButton();
|
||
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||
|
this.SecretID = new System.Windows.Forms.TextBox();
|
||
|
this.EPProtection = new System.Windows.Forms.GroupBox();
|
||
|
this.label3 = new System.Windows.Forms.Label();
|
||
|
this.label2 = new System.Windows.Forms.Label();
|
||
|
this.EPPwd2 = new System.Windows.Forms.TextBox();
|
||
|
this.EPPwd1 = new System.Windows.Forms.TextBox();
|
||
|
this.CheckBoxEP = new System.Windows.Forms.CheckBox();
|
||
|
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||
|
this.keyValueBox = new System.Windows.Forms.ListBox();
|
||
|
this.checkBox2 = new System.Windows.Forms.CheckBox();
|
||
|
this.btnDelete = new System.Windows.Forms.Button();
|
||
|
this.btnEdit = new System.Windows.Forms.Button();
|
||
|
this.btnAdd = new System.Windows.Forms.Button();
|
||
|
this.btnRefresh = new System.Windows.Forms.Button();
|
||
|
this.btnOk = new System.Windows.Forms.Button();
|
||
|
this.btnCancel = new System.Windows.Forms.Button();
|
||
|
this.tabControl1.SuspendLayout();
|
||
|
this.tabPage1.SuspendLayout();
|
||
|
this.groupBox2.SuspendLayout();
|
||
|
this.groupBox1.SuspendLayout();
|
||
|
this.EPProtection.SuspendLayout();
|
||
|
this.tabPage2.SuspendLayout();
|
||
|
this.SuspendLayout();
|
||
|
//
|
||
|
// tabControl1
|
||
|
//
|
||
|
this.tabControl1.AccessibleDescription = resources.GetString("tabControl1.AccessibleDescription");
|
||
|
this.tabControl1.AccessibleName = resources.GetString("tabControl1.AccessibleName");
|
||
|
this.tabControl1.Alignment = ((System.Windows.Forms.TabAlignment)(resources.GetObject("tabControl1.Alignment")));
|
||
|
this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("tabControl1.Anchor")));
|
||
|
this.tabControl1.Appearance = ((System.Windows.Forms.TabAppearance)(resources.GetObject("tabControl1.Appearance")));
|
||
|
this.tabControl1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("tabControl1.BackgroundImage")));
|
||
|
this.tabControl1.Controls.Add(this.tabPage1);
|
||
|
this.tabControl1.Controls.Add(this.tabPage2);
|
||
|
this.tabControl1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("tabControl1.Dock")));
|
||
|
this.tabControl1.Enabled = ((bool)(resources.GetObject("tabControl1.Enabled")));
|
||
|
this.tabControl1.Font = ((System.Drawing.Font)(resources.GetObject("tabControl1.Font")));
|
||
|
this.tabControl1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("tabControl1.ImeMode")));
|
||
|
this.tabControl1.ItemSize = ((System.Drawing.Size)(resources.GetObject("tabControl1.ItemSize")));
|
||
|
this.tabControl1.Location = ((System.Drawing.Point)(resources.GetObject("tabControl1.Location")));
|
||
|
this.tabControl1.Name = "tabControl1";
|
||
|
this.tabControl1.Padding = ((System.Drawing.Point)(resources.GetObject("tabControl1.Padding")));
|
||
|
this.tabControl1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("tabControl1.RightToLeft")));
|
||
|
this.tabControl1.SelectedIndex = 0;
|
||
|
this.tabControl1.ShowToolTips = ((bool)(resources.GetObject("tabControl1.ShowToolTips")));
|
||
|
this.tabControl1.Size = ((System.Drawing.Size)(resources.GetObject("tabControl1.Size")));
|
||
|
this.tabControl1.TabIndex = ((int)(resources.GetObject("tabControl1.TabIndex")));
|
||
|
this.tabControl1.Tag = "";
|
||
|
this.tabControl1.Text = resources.GetString("tabControl1.Text");
|
||
|
this.tabControl1.Visible = ((bool)(resources.GetObject("tabControl1.Visible")));
|
||
|
//
|
||
|
// tabPage1
|
||
|
//
|
||
|
this.tabPage1.AccessibleDescription = resources.GetString("tabPage1.AccessibleDescription");
|
||
|
this.tabPage1.AccessibleName = resources.GetString("tabPage1.AccessibleName");
|
||
|
this.tabPage1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("tabPage1.Anchor")));
|
||
|
this.tabPage1.AutoScroll = ((bool)(resources.GetObject("tabPage1.AutoScroll")));
|
||
|
this.tabPage1.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("tabPage1.AutoScrollMargin")));
|
||
|
this.tabPage1.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("tabPage1.AutoScrollMinSize")));
|
||
|
this.tabPage1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("tabPage1.BackgroundImage")));
|
||
|
this.tabPage1.Controls.Add(this.groupBox2);
|
||
|
this.tabPage1.Controls.Add(this.groupBox1);
|
||
|
this.tabPage1.Controls.Add(this.EPProtection);
|
||
|
this.tabPage1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("tabPage1.Dock")));
|
||
|
this.tabPage1.Enabled = ((bool)(resources.GetObject("tabPage1.Enabled")));
|
||
|
this.tabPage1.Font = ((System.Drawing.Font)(resources.GetObject("tabPage1.Font")));
|
||
|
this.tabPage1.ImageIndex = ((int)(resources.GetObject("tabPage1.ImageIndex")));
|
||
|
this.tabPage1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("tabPage1.ImeMode")));
|
||
|
this.tabPage1.Location = ((System.Drawing.Point)(resources.GetObject("tabPage1.Location")));
|
||
|
this.tabPage1.Name = "tabPage1";
|
||
|
this.tabPage1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("tabPage1.RightToLeft")));
|
||
|
this.tabPage1.Size = ((System.Drawing.Size)(resources.GetObject("tabPage1.Size")));
|
||
|
this.tabPage1.TabIndex = ((int)(resources.GetObject("tabPage1.TabIndex")));
|
||
|
this.tabPage1.Text = resources.GetString("tabPage1.Text");
|
||
|
this.tabPage1.ToolTipText = resources.GetString("tabPage1.ToolTipText");
|
||
|
this.tabPage1.Visible = ((bool)(resources.GetObject("tabPage1.Visible")));
|
||
|
//
|
||
|
// groupBox2
|
||
|
//
|
||
|
this.groupBox2.AccessibleDescription = resources.GetString("groupBox2.AccessibleDescription");
|
||
|
this.groupBox2.AccessibleName = resources.GetString("groupBox2.AccessibleName");
|
||
|
this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("groupBox2.Anchor")));
|
||
|
this.groupBox2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("groupBox2.BackgroundImage")));
|
||
|
this.groupBox2.Controls.Add(this.appButton2);
|
||
|
this.groupBox2.Controls.Add(this.credButton1);
|
||
|
this.groupBox2.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("groupBox2.Dock")));
|
||
|
this.groupBox2.Enabled = ((bool)(resources.GetObject("groupBox2.Enabled")));
|
||
|
this.groupBox2.Font = ((System.Drawing.Font)(resources.GetObject("groupBox2.Font")));
|
||
|
this.groupBox2.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("groupBox2.ImeMode")));
|
||
|
this.groupBox2.Location = ((System.Drawing.Point)(resources.GetObject("groupBox2.Location")));
|
||
|
this.groupBox2.Name = "groupBox2";
|
||
|
this.groupBox2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("groupBox2.RightToLeft")));
|
||
|
this.groupBox2.Size = ((System.Drawing.Size)(resources.GetObject("groupBox2.Size")));
|
||
|
this.groupBox2.TabIndex = ((int)(resources.GetObject("groupBox2.TabIndex")));
|
||
|
this.groupBox2.TabStop = false;
|
||
|
this.groupBox2.Text = resources.GetString("groupBox2.Text");
|
||
|
this.groupBox2.Visible = ((bool)(resources.GetObject("groupBox2.Visible")));
|
||
|
//
|
||
|
// appButton2
|
||
|
//
|
||
|
this.appButton2.AccessibleDescription = resources.GetString("appButton2.AccessibleDescription");
|
||
|
this.appButton2.AccessibleName = resources.GetString("appButton2.AccessibleName");
|
||
|
this.appButton2.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("appButton2.Anchor")));
|
||
|
this.appButton2.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("appButton2.Appearance")));
|
||
|
this.appButton2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("appButton2.BackgroundImage")));
|
||
|
this.appButton2.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("appButton2.CheckAlign")));
|
||
|
this.appButton2.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("appButton2.Dock")));
|
||
|
this.appButton2.Enabled = ((bool)(resources.GetObject("appButton2.Enabled")));
|
||
|
this.appButton2.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("appButton2.FlatStyle")));
|
||
|
this.appButton2.Font = ((System.Drawing.Font)(resources.GetObject("appButton2.Font")));
|
||
|
this.appButton2.Image = ((System.Drawing.Image)(resources.GetObject("appButton2.Image")));
|
||
|
this.appButton2.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("appButton2.ImageAlign")));
|
||
|
this.appButton2.ImageIndex = ((int)(resources.GetObject("appButton2.ImageIndex")));
|
||
|
this.appButton2.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("appButton2.ImeMode")));
|
||
|
this.appButton2.Location = ((System.Drawing.Point)(resources.GetObject("appButton2.Location")));
|
||
|
this.appButton2.Name = "appButton2";
|
||
|
this.appButton2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("appButton2.RightToLeft")));
|
||
|
this.appButton2.Size = ((System.Drawing.Size)(resources.GetObject("appButton2.Size")));
|
||
|
this.appButton2.TabIndex = ((int)(resources.GetObject("appButton2.TabIndex")));
|
||
|
this.appButton2.Text = resources.GetString("appButton2.Text");
|
||
|
this.appButton2.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("appButton2.TextAlign")));
|
||
|
this.appButton2.Visible = ((bool)(resources.GetObject("appButton2.Visible")));
|
||
|
//
|
||
|
// credButton1
|
||
|
//
|
||
|
this.credButton1.AccessibleDescription = resources.GetString("credButton1.AccessibleDescription");
|
||
|
this.credButton1.AccessibleName = resources.GetString("credButton1.AccessibleName");
|
||
|
this.credButton1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("credButton1.Anchor")));
|
||
|
this.credButton1.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("credButton1.Appearance")));
|
||
|
this.credButton1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("credButton1.BackgroundImage")));
|
||
|
this.credButton1.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("credButton1.CheckAlign")));
|
||
|
this.credButton1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("credButton1.Dock")));
|
||
|
this.credButton1.Enabled = ((bool)(resources.GetObject("credButton1.Enabled")));
|
||
|
this.credButton1.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("credButton1.FlatStyle")));
|
||
|
this.credButton1.Font = ((System.Drawing.Font)(resources.GetObject("credButton1.Font")));
|
||
|
this.credButton1.Image = ((System.Drawing.Image)(resources.GetObject("credButton1.Image")));
|
||
|
this.credButton1.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("credButton1.ImageAlign")));
|
||
|
this.credButton1.ImageIndex = ((int)(resources.GetObject("credButton1.ImageIndex")));
|
||
|
this.credButton1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("credButton1.ImeMode")));
|
||
|
this.credButton1.Location = ((System.Drawing.Point)(resources.GetObject("credButton1.Location")));
|
||
|
this.credButton1.Name = "credButton1";
|
||
|
this.credButton1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("credButton1.RightToLeft")));
|
||
|
this.credButton1.Size = ((System.Drawing.Size)(resources.GetObject("credButton1.Size")));
|
||
|
this.credButton1.TabIndex = ((int)(resources.GetObject("credButton1.TabIndex")));
|
||
|
this.credButton1.TabStop = true;
|
||
|
this.credButton1.Text = resources.GetString("credButton1.Text");
|
||
|
this.credButton1.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("credButton1.TextAlign")));
|
||
|
this.credButton1.Visible = ((bool)(resources.GetObject("credButton1.Visible")));
|
||
|
//
|
||
|
// groupBox1
|
||
|
//
|
||
|
this.groupBox1.AccessibleDescription = resources.GetString("groupBox1.AccessibleDescription");
|
||
|
this.groupBox1.AccessibleName = resources.GetString("groupBox1.AccessibleName");
|
||
|
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("groupBox1.Anchor")));
|
||
|
this.groupBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("groupBox1.BackgroundImage")));
|
||
|
this.groupBox1.Controls.Add(this.SecretID);
|
||
|
this.groupBox1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("groupBox1.Dock")));
|
||
|
this.groupBox1.Enabled = ((bool)(resources.GetObject("groupBox1.Enabled")));
|
||
|
this.groupBox1.Font = ((System.Drawing.Font)(resources.GetObject("groupBox1.Font")));
|
||
|
this.groupBox1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("groupBox1.ImeMode")));
|
||
|
this.groupBox1.Location = ((System.Drawing.Point)(resources.GetObject("groupBox1.Location")));
|
||
|
this.groupBox1.Name = "groupBox1";
|
||
|
this.groupBox1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("groupBox1.RightToLeft")));
|
||
|
this.groupBox1.Size = ((System.Drawing.Size)(resources.GetObject("groupBox1.Size")));
|
||
|
this.groupBox1.TabIndex = ((int)(resources.GetObject("groupBox1.TabIndex")));
|
||
|
this.groupBox1.TabStop = false;
|
||
|
this.groupBox1.Text = resources.GetString("groupBox1.Text");
|
||
|
this.groupBox1.Visible = ((bool)(resources.GetObject("groupBox1.Visible")));
|
||
|
//
|
||
|
// SecretID
|
||
|
//
|
||
|
this.SecretID.AccessibleDescription = resources.GetString("SecretID.AccessibleDescription");
|
||
|
this.SecretID.AccessibleName = resources.GetString("SecretID.AccessibleName");
|
||
|
this.SecretID.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("SecretID.Anchor")));
|
||
|
this.SecretID.AutoSize = ((bool)(resources.GetObject("SecretID.AutoSize")));
|
||
|
this.SecretID.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("SecretID.BackgroundImage")));
|
||
|
this.SecretID.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("SecretID.Dock")));
|
||
|
this.SecretID.Enabled = ((bool)(resources.GetObject("SecretID.Enabled")));
|
||
|
this.SecretID.Font = ((System.Drawing.Font)(resources.GetObject("SecretID.Font")));
|
||
|
this.SecretID.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("SecretID.ImeMode")));
|
||
|
this.SecretID.Location = ((System.Drawing.Point)(resources.GetObject("SecretID.Location")));
|
||
|
this.SecretID.MaxLength = ((int)(resources.GetObject("SecretID.MaxLength")));
|
||
|
this.SecretID.Multiline = ((bool)(resources.GetObject("SecretID.Multiline")));
|
||
|
this.SecretID.Name = "SecretID";
|
||
|
this.SecretID.PasswordChar = ((char)(resources.GetObject("SecretID.PasswordChar")));
|
||
|
this.SecretID.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("SecretID.RightToLeft")));
|
||
|
this.SecretID.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("SecretID.ScrollBars")));
|
||
|
this.SecretID.Size = ((System.Drawing.Size)(resources.GetObject("SecretID.Size")));
|
||
|
this.SecretID.TabIndex = ((int)(resources.GetObject("SecretID.TabIndex")));
|
||
|
this.SecretID.Text = resources.GetString("SecretID.Text");
|
||
|
this.SecretID.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("SecretID.TextAlign")));
|
||
|
this.SecretID.Visible = ((bool)(resources.GetObject("SecretID.Visible")));
|
||
|
this.SecretID.WordWrap = ((bool)(resources.GetObject("SecretID.WordWrap")));
|
||
|
//
|
||
|
// EPProtection
|
||
|
//
|
||
|
this.EPProtection.AccessibleDescription = resources.GetString("EPProtection.AccessibleDescription");
|
||
|
this.EPProtection.AccessibleName = resources.GetString("EPProtection.AccessibleName");
|
||
|
this.EPProtection.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("EPProtection.Anchor")));
|
||
|
this.EPProtection.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("EPProtection.BackgroundImage")));
|
||
|
this.EPProtection.Controls.Add(this.label3);
|
||
|
this.EPProtection.Controls.Add(this.label2);
|
||
|
this.EPProtection.Controls.Add(this.EPPwd2);
|
||
|
this.EPProtection.Controls.Add(this.EPPwd1);
|
||
|
this.EPProtection.Controls.Add(this.CheckBoxEP);
|
||
|
this.EPProtection.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("EPProtection.Dock")));
|
||
|
this.EPProtection.Enabled = ((bool)(resources.GetObject("EPProtection.Enabled")));
|
||
|
this.EPProtection.Font = ((System.Drawing.Font)(resources.GetObject("EPProtection.Font")));
|
||
|
this.EPProtection.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("EPProtection.ImeMode")));
|
||
|
this.EPProtection.Location = ((System.Drawing.Point)(resources.GetObject("EPProtection.Location")));
|
||
|
this.EPProtection.Name = "EPProtection";
|
||
|
this.EPProtection.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("EPProtection.RightToLeft")));
|
||
|
this.EPProtection.Size = ((System.Drawing.Size)(resources.GetObject("EPProtection.Size")));
|
||
|
this.EPProtection.TabIndex = ((int)(resources.GetObject("EPProtection.TabIndex")));
|
||
|
this.EPProtection.TabStop = false;
|
||
|
this.EPProtection.Text = resources.GetString("EPProtection.Text");
|
||
|
this.EPProtection.Visible = ((bool)(resources.GetObject("EPProtection.Visible")));
|
||
|
//
|
||
|
// label3
|
||
|
//
|
||
|
this.label3.AccessibleDescription = resources.GetString("label3.AccessibleDescription");
|
||
|
this.label3.AccessibleName = resources.GetString("label3.AccessibleName");
|
||
|
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label3.Anchor")));
|
||
|
this.label3.AutoSize = ((bool)(resources.GetObject("label3.AutoSize")));
|
||
|
this.label3.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("label3.Dock")));
|
||
|
this.label3.Enabled = ((bool)(resources.GetObject("label3.Enabled")));
|
||
|
this.label3.Font = ((System.Drawing.Font)(resources.GetObject("label3.Font")));
|
||
|
this.label3.Image = ((System.Drawing.Image)(resources.GetObject("label3.Image")));
|
||
|
this.label3.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label3.ImageAlign")));
|
||
|
this.label3.ImageIndex = ((int)(resources.GetObject("label3.ImageIndex")));
|
||
|
this.label3.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("label3.ImeMode")));
|
||
|
this.label3.Location = ((System.Drawing.Point)(resources.GetObject("label3.Location")));
|
||
|
this.label3.Name = "label3";
|
||
|
this.label3.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label3.RightToLeft")));
|
||
|
this.label3.Size = ((System.Drawing.Size)(resources.GetObject("label3.Size")));
|
||
|
this.label3.TabIndex = ((int)(resources.GetObject("label3.TabIndex")));
|
||
|
this.label3.Text = resources.GetString("label3.Text");
|
||
|
this.label3.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label3.TextAlign")));
|
||
|
this.label3.Visible = ((bool)(resources.GetObject("label3.Visible")));
|
||
|
//
|
||
|
// label2
|
||
|
//
|
||
|
this.label2.AccessibleDescription = resources.GetString("label2.AccessibleDescription");
|
||
|
this.label2.AccessibleName = resources.GetString("label2.AccessibleName");
|
||
|
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label2.Anchor")));
|
||
|
this.label2.AutoSize = ((bool)(resources.GetObject("label2.AutoSize")));
|
||
|
this.label2.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("label2.Dock")));
|
||
|
this.label2.Enabled = ((bool)(resources.GetObject("label2.Enabled")));
|
||
|
this.label2.Font = ((System.Drawing.Font)(resources.GetObject("label2.Font")));
|
||
|
this.label2.Image = ((System.Drawing.Image)(resources.GetObject("label2.Image")));
|
||
|
this.label2.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label2.ImageAlign")));
|
||
|
this.label2.ImageIndex = ((int)(resources.GetObject("label2.ImageIndex")));
|
||
|
this.label2.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("label2.ImeMode")));
|
||
|
this.label2.Location = ((System.Drawing.Point)(resources.GetObject("label2.Location")));
|
||
|
this.label2.Name = "label2";
|
||
|
this.label2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label2.RightToLeft")));
|
||
|
this.label2.Size = ((System.Drawing.Size)(resources.GetObject("label2.Size")));
|
||
|
this.label2.TabIndex = ((int)(resources.GetObject("label2.TabIndex")));
|
||
|
this.label2.Text = resources.GetString("label2.Text");
|
||
|
this.label2.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label2.TextAlign")));
|
||
|
this.label2.Visible = ((bool)(resources.GetObject("label2.Visible")));
|
||
|
//
|
||
|
// EPPwd2
|
||
|
//
|
||
|
this.EPPwd2.AccessibleDescription = resources.GetString("EPPwd2.AccessibleDescription");
|
||
|
this.EPPwd2.AccessibleName = resources.GetString("EPPwd2.AccessibleName");
|
||
|
this.EPPwd2.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("EPPwd2.Anchor")));
|
||
|
this.EPPwd2.AutoSize = ((bool)(resources.GetObject("EPPwd2.AutoSize")));
|
||
|
this.EPPwd2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("EPPwd2.BackgroundImage")));
|
||
|
this.EPPwd2.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("EPPwd2.Dock")));
|
||
|
this.EPPwd2.Enabled = ((bool)(resources.GetObject("EPPwd2.Enabled")));
|
||
|
this.EPPwd2.Font = ((System.Drawing.Font)(resources.GetObject("EPPwd2.Font")));
|
||
|
this.EPPwd2.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("EPPwd2.ImeMode")));
|
||
|
this.EPPwd2.Location = ((System.Drawing.Point)(resources.GetObject("EPPwd2.Location")));
|
||
|
this.EPPwd2.MaxLength = ((int)(resources.GetObject("EPPwd2.MaxLength")));
|
||
|
this.EPPwd2.Multiline = ((bool)(resources.GetObject("EPPwd2.Multiline")));
|
||
|
this.EPPwd2.Name = "EPPwd2";
|
||
|
this.EPPwd2.PasswordChar = ((char)(resources.GetObject("EPPwd2.PasswordChar")));
|
||
|
this.EPPwd2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("EPPwd2.RightToLeft")));
|
||
|
this.EPPwd2.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("EPPwd2.ScrollBars")));
|
||
|
this.EPPwd2.Size = ((System.Drawing.Size)(resources.GetObject("EPPwd2.Size")));
|
||
|
this.EPPwd2.TabIndex = ((int)(resources.GetObject("EPPwd2.TabIndex")));
|
||
|
this.EPPwd2.Text = resources.GetString("EPPwd2.Text");
|
||
|
this.EPPwd2.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("EPPwd2.TextAlign")));
|
||
|
this.EPPwd2.Visible = ((bool)(resources.GetObject("EPPwd2.Visible")));
|
||
|
this.EPPwd2.WordWrap = ((bool)(resources.GetObject("EPPwd2.WordWrap")));
|
||
|
//
|
||
|
// EPPwd1
|
||
|
//
|
||
|
this.EPPwd1.AccessibleDescription = resources.GetString("EPPwd1.AccessibleDescription");
|
||
|
this.EPPwd1.AccessibleName = resources.GetString("EPPwd1.AccessibleName");
|
||
|
this.EPPwd1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("EPPwd1.Anchor")));
|
||
|
this.EPPwd1.AutoSize = ((bool)(resources.GetObject("EPPwd1.AutoSize")));
|
||
|
this.EPPwd1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("EPPwd1.BackgroundImage")));
|
||
|
this.EPPwd1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("EPPwd1.Dock")));
|
||
|
this.EPPwd1.Enabled = ((bool)(resources.GetObject("EPPwd1.Enabled")));
|
||
|
this.EPPwd1.Font = ((System.Drawing.Font)(resources.GetObject("EPPwd1.Font")));
|
||
|
this.EPPwd1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("EPPwd1.ImeMode")));
|
||
|
this.EPPwd1.Location = ((System.Drawing.Point)(resources.GetObject("EPPwd1.Location")));
|
||
|
this.EPPwd1.MaxLength = ((int)(resources.GetObject("EPPwd1.MaxLength")));
|
||
|
this.EPPwd1.Multiline = ((bool)(resources.GetObject("EPPwd1.Multiline")));
|
||
|
this.EPPwd1.Name = "EPPwd1";
|
||
|
this.EPPwd1.PasswordChar = ((char)(resources.GetObject("EPPwd1.PasswordChar")));
|
||
|
this.EPPwd1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("EPPwd1.RightToLeft")));
|
||
|
this.EPPwd1.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("EPPwd1.ScrollBars")));
|
||
|
this.EPPwd1.Size = ((System.Drawing.Size)(resources.GetObject("EPPwd1.Size")));
|
||
|
this.EPPwd1.TabIndex = ((int)(resources.GetObject("EPPwd1.TabIndex")));
|
||
|
this.EPPwd1.Text = resources.GetString("EPPwd1.Text");
|
||
|
this.EPPwd1.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("EPPwd1.TextAlign")));
|
||
|
this.EPPwd1.Visible = ((bool)(resources.GetObject("EPPwd1.Visible")));
|
||
|
this.EPPwd1.WordWrap = ((bool)(resources.GetObject("EPPwd1.WordWrap")));
|
||
|
//
|
||
|
// CheckBoxEP
|
||
|
//
|
||
|
this.CheckBoxEP.AccessibleDescription = resources.GetString("CheckBoxEP.AccessibleDescription");
|
||
|
this.CheckBoxEP.AccessibleName = resources.GetString("CheckBoxEP.AccessibleName");
|
||
|
this.CheckBoxEP.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("CheckBoxEP.Anchor")));
|
||
|
this.CheckBoxEP.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("CheckBoxEP.Appearance")));
|
||
|
this.CheckBoxEP.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("CheckBoxEP.BackgroundImage")));
|
||
|
this.CheckBoxEP.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("CheckBoxEP.CheckAlign")));
|
||
|
this.CheckBoxEP.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("CheckBoxEP.Dock")));
|
||
|
this.CheckBoxEP.Enabled = ((bool)(resources.GetObject("CheckBoxEP.Enabled")));
|
||
|
this.CheckBoxEP.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("CheckBoxEP.FlatStyle")));
|
||
|
this.CheckBoxEP.Font = ((System.Drawing.Font)(resources.GetObject("CheckBoxEP.Font")));
|
||
|
this.CheckBoxEP.Image = ((System.Drawing.Image)(resources.GetObject("CheckBoxEP.Image")));
|
||
|
this.CheckBoxEP.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("CheckBoxEP.ImageAlign")));
|
||
|
this.CheckBoxEP.ImageIndex = ((int)(resources.GetObject("CheckBoxEP.ImageIndex")));
|
||
|
this.CheckBoxEP.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("CheckBoxEP.ImeMode")));
|
||
|
this.CheckBoxEP.Location = ((System.Drawing.Point)(resources.GetObject("CheckBoxEP.Location")));
|
||
|
this.CheckBoxEP.Name = "CheckBoxEP";
|
||
|
this.CheckBoxEP.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("CheckBoxEP.RightToLeft")));
|
||
|
this.CheckBoxEP.Size = ((System.Drawing.Size)(resources.GetObject("CheckBoxEP.Size")));
|
||
|
this.CheckBoxEP.TabIndex = ((int)(resources.GetObject("CheckBoxEP.TabIndex")));
|
||
|
this.CheckBoxEP.Text = resources.GetString("CheckBoxEP.Text");
|
||
|
this.CheckBoxEP.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("CheckBoxEP.TextAlign")));
|
||
|
this.CheckBoxEP.Visible = ((bool)(resources.GetObject("CheckBoxEP.Visible")));
|
||
|
//
|
||
|
// tabPage2
|
||
|
//
|
||
|
this.tabPage2.AccessibleDescription = resources.GetString("tabPage2.AccessibleDescription");
|
||
|
this.tabPage2.AccessibleName = resources.GetString("tabPage2.AccessibleName");
|
||
|
this.tabPage2.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("tabPage2.Anchor")));
|
||
|
this.tabPage2.AutoScroll = ((bool)(resources.GetObject("tabPage2.AutoScroll")));
|
||
|
this.tabPage2.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("tabPage2.AutoScrollMargin")));
|
||
|
this.tabPage2.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("tabPage2.AutoScrollMinSize")));
|
||
|
this.tabPage2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("tabPage2.BackgroundImage")));
|
||
|
this.tabPage2.Controls.Add(this.keyValueBox);
|
||
|
this.tabPage2.Controls.Add(this.checkBox2);
|
||
|
this.tabPage2.Controls.Add(this.btnDelete);
|
||
|
this.tabPage2.Controls.Add(this.btnEdit);
|
||
|
this.tabPage2.Controls.Add(this.btnAdd);
|
||
|
this.tabPage2.Controls.Add(this.btnRefresh);
|
||
|
this.tabPage2.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("tabPage2.Dock")));
|
||
|
this.tabPage2.Enabled = ((bool)(resources.GetObject("tabPage2.Enabled")));
|
||
|
this.tabPage2.Font = ((System.Drawing.Font)(resources.GetObject("tabPage2.Font")));
|
||
|
this.tabPage2.ImageIndex = ((int)(resources.GetObject("tabPage2.ImageIndex")));
|
||
|
this.tabPage2.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("tabPage2.ImeMode")));
|
||
|
this.tabPage2.Location = ((System.Drawing.Point)(resources.GetObject("tabPage2.Location")));
|
||
|
this.tabPage2.Name = "tabPage2";
|
||
|
this.tabPage2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("tabPage2.RightToLeft")));
|
||
|
this.tabPage2.Size = ((System.Drawing.Size)(resources.GetObject("tabPage2.Size")));
|
||
|
this.tabPage2.TabIndex = ((int)(resources.GetObject("tabPage2.TabIndex")));
|
||
|
this.tabPage2.Text = resources.GetString("tabPage2.Text");
|
||
|
this.tabPage2.ToolTipText = resources.GetString("tabPage2.ToolTipText");
|
||
|
this.tabPage2.Visible = ((bool)(resources.GetObject("tabPage2.Visible")));
|
||
|
//
|
||
|
// keyValueBox
|
||
|
//
|
||
|
this.keyValueBox.AccessibleDescription = resources.GetString("keyValueBox.AccessibleDescription");
|
||
|
this.keyValueBox.AccessibleName = resources.GetString("keyValueBox.AccessibleName");
|
||
|
this.keyValueBox.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("keyValueBox.Anchor")));
|
||
|
this.keyValueBox.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("keyValueBox.BackgroundImage")));
|
||
|
this.keyValueBox.ColumnWidth = ((int)(resources.GetObject("keyValueBox.ColumnWidth")));
|
||
|
this.keyValueBox.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("keyValueBox.Dock")));
|
||
|
this.keyValueBox.Enabled = ((bool)(resources.GetObject("keyValueBox.Enabled")));
|
||
|
this.keyValueBox.Font = ((System.Drawing.Font)(resources.GetObject("keyValueBox.Font")));
|
||
|
this.keyValueBox.HorizontalExtent = ((int)(resources.GetObject("keyValueBox.HorizontalExtent")));
|
||
|
this.keyValueBox.HorizontalScrollbar = ((bool)(resources.GetObject("keyValueBox.HorizontalScrollbar")));
|
||
|
this.keyValueBox.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("keyValueBox.ImeMode")));
|
||
|
this.keyValueBox.IntegralHeight = ((bool)(resources.GetObject("keyValueBox.IntegralHeight")));
|
||
|
this.keyValueBox.ItemHeight = ((int)(resources.GetObject("keyValueBox.ItemHeight")));
|
||
|
this.keyValueBox.Location = ((System.Drawing.Point)(resources.GetObject("keyValueBox.Location")));
|
||
|
this.keyValueBox.Name = "keyValueBox";
|
||
|
this.keyValueBox.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("keyValueBox.RightToLeft")));
|
||
|
this.keyValueBox.ScrollAlwaysVisible = ((bool)(resources.GetObject("keyValueBox.ScrollAlwaysVisible")));
|
||
|
this.keyValueBox.Size = ((System.Drawing.Size)(resources.GetObject("keyValueBox.Size")));
|
||
|
this.keyValueBox.Sorted = true;
|
||
|
this.keyValueBox.TabIndex = ((int)(resources.GetObject("keyValueBox.TabIndex")));
|
||
|
this.keyValueBox.Visible = ((bool)(resources.GetObject("keyValueBox.Visible")));
|
||
|
//
|
||
|
// checkBox2
|
||
|
//
|
||
|
this.checkBox2.AccessibleDescription = resources.GetString("checkBox2.AccessibleDescription");
|
||
|
this.checkBox2.AccessibleName = resources.GetString("checkBox2.AccessibleName");
|
||
|
this.checkBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("checkBox2.Anchor")));
|
||
|
this.checkBox2.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("checkBox2.Appearance")));
|
||
|
this.checkBox2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("checkBox2.BackgroundImage")));
|
||
|
this.checkBox2.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("checkBox2.CheckAlign")));
|
||
|
this.checkBox2.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("checkBox2.Dock")));
|
||
|
this.checkBox2.Enabled = ((bool)(resources.GetObject("checkBox2.Enabled")));
|
||
|
this.checkBox2.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("checkBox2.FlatStyle")));
|
||
|
this.checkBox2.Font = ((System.Drawing.Font)(resources.GetObject("checkBox2.Font")));
|
||
|
this.checkBox2.Image = ((System.Drawing.Image)(resources.GetObject("checkBox2.Image")));
|
||
|
this.checkBox2.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("checkBox2.ImageAlign")));
|
||
|
this.checkBox2.ImageIndex = ((int)(resources.GetObject("checkBox2.ImageIndex")));
|
||
|
this.checkBox2.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("checkBox2.ImeMode")));
|
||
|
this.checkBox2.Location = ((System.Drawing.Point)(resources.GetObject("checkBox2.Location")));
|
||
|
this.checkBox2.Name = "checkBox2";
|
||
|
this.checkBox2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("checkBox2.RightToLeft")));
|
||
|
this.checkBox2.Size = ((System.Drawing.Size)(resources.GetObject("checkBox2.Size")));
|
||
|
this.checkBox2.TabIndex = ((int)(resources.GetObject("checkBox2.TabIndex")));
|
||
|
this.checkBox2.Text = resources.GetString("checkBox2.Text");
|
||
|
this.checkBox2.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("checkBox2.TextAlign")));
|
||
|
this.checkBox2.Visible = ((bool)(resources.GetObject("checkBox2.Visible")));
|
||
|
this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged);
|
||
|
//
|
||
|
// btnDelete
|
||
|
//
|
||
|
this.btnDelete.AccessibleDescription = resources.GetString("btnDelete.AccessibleDescription");
|
||
|
this.btnDelete.AccessibleName = resources.GetString("btnDelete.AccessibleName");
|
||
|
this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnDelete.Anchor")));
|
||
|
this.btnDelete.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnDelete.BackgroundImage")));
|
||
|
this.btnDelete.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnDelete.Dock")));
|
||
|
this.btnDelete.Enabled = ((bool)(resources.GetObject("btnDelete.Enabled")));
|
||
|
this.btnDelete.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnDelete.FlatStyle")));
|
||
|
this.btnDelete.Font = ((System.Drawing.Font)(resources.GetObject("btnDelete.Font")));
|
||
|
this.btnDelete.Image = ((System.Drawing.Image)(resources.GetObject("btnDelete.Image")));
|
||
|
this.btnDelete.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnDelete.ImageAlign")));
|
||
|
this.btnDelete.ImageIndex = ((int)(resources.GetObject("btnDelete.ImageIndex")));
|
||
|
this.btnDelete.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnDelete.ImeMode")));
|
||
|
this.btnDelete.Location = ((System.Drawing.Point)(resources.GetObject("btnDelete.Location")));
|
||
|
this.btnDelete.Name = "btnDelete";
|
||
|
this.btnDelete.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnDelete.RightToLeft")));
|
||
|
this.btnDelete.Size = ((System.Drawing.Size)(resources.GetObject("btnDelete.Size")));
|
||
|
this.btnDelete.TabIndex = ((int)(resources.GetObject("btnDelete.TabIndex")));
|
||
|
this.btnDelete.Text = resources.GetString("btnDelete.Text");
|
||
|
this.btnDelete.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnDelete.TextAlign")));
|
||
|
this.btnDelete.Visible = ((bool)(resources.GetObject("btnDelete.Visible")));
|
||
|
this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
|
||
|
//
|
||
|
// btnEdit
|
||
|
//
|
||
|
this.btnEdit.AccessibleDescription = resources.GetString("btnEdit.AccessibleDescription");
|
||
|
this.btnEdit.AccessibleName = resources.GetString("btnEdit.AccessibleName");
|
||
|
this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnEdit.Anchor")));
|
||
|
this.btnEdit.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnEdit.BackgroundImage")));
|
||
|
this.btnEdit.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnEdit.Dock")));
|
||
|
this.btnEdit.Enabled = ((bool)(resources.GetObject("btnEdit.Enabled")));
|
||
|
this.btnEdit.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnEdit.FlatStyle")));
|
||
|
this.btnEdit.Font = ((System.Drawing.Font)(resources.GetObject("btnEdit.Font")));
|
||
|
this.btnEdit.Image = ((System.Drawing.Image)(resources.GetObject("btnEdit.Image")));
|
||
|
this.btnEdit.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnEdit.ImageAlign")));
|
||
|
this.btnEdit.ImageIndex = ((int)(resources.GetObject("btnEdit.ImageIndex")));
|
||
|
this.btnEdit.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnEdit.ImeMode")));
|
||
|
this.btnEdit.Location = ((System.Drawing.Point)(resources.GetObject("btnEdit.Location")));
|
||
|
this.btnEdit.Name = "btnEdit";
|
||
|
this.btnEdit.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnEdit.RightToLeft")));
|
||
|
this.btnEdit.Size = ((System.Drawing.Size)(resources.GetObject("btnEdit.Size")));
|
||
|
this.btnEdit.TabIndex = ((int)(resources.GetObject("btnEdit.TabIndex")));
|
||
|
this.btnEdit.Text = resources.GetString("btnEdit.Text");
|
||
|
this.btnEdit.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnEdit.TextAlign")));
|
||
|
this.btnEdit.Visible = ((bool)(resources.GetObject("btnEdit.Visible")));
|
||
|
this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
|
||
|
//
|
||
|
// btnAdd
|
||
|
//
|
||
|
this.btnAdd.AccessibleDescription = resources.GetString("btnAdd.AccessibleDescription");
|
||
|
this.btnAdd.AccessibleName = resources.GetString("btnAdd.AccessibleName");
|
||
|
this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnAdd.Anchor")));
|
||
|
this.btnAdd.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnAdd.BackgroundImage")));
|
||
|
this.btnAdd.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnAdd.Dock")));
|
||
|
this.btnAdd.Enabled = ((bool)(resources.GetObject("btnAdd.Enabled")));
|
||
|
this.btnAdd.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnAdd.FlatStyle")));
|
||
|
this.btnAdd.Font = ((System.Drawing.Font)(resources.GetObject("btnAdd.Font")));
|
||
|
this.btnAdd.Image = ((System.Drawing.Image)(resources.GetObject("btnAdd.Image")));
|
||
|
this.btnAdd.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnAdd.ImageAlign")));
|
||
|
this.btnAdd.ImageIndex = ((int)(resources.GetObject("btnAdd.ImageIndex")));
|
||
|
this.btnAdd.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnAdd.ImeMode")));
|
||
|
this.btnAdd.Location = ((System.Drawing.Point)(resources.GetObject("btnAdd.Location")));
|
||
|
this.btnAdd.Name = "btnAdd";
|
||
|
this.btnAdd.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnAdd.RightToLeft")));
|
||
|
this.btnAdd.Size = ((System.Drawing.Size)(resources.GetObject("btnAdd.Size")));
|
||
|
this.btnAdd.TabIndex = ((int)(resources.GetObject("btnAdd.TabIndex")));
|
||
|
this.btnAdd.Text = resources.GetString("btnAdd.Text");
|
||
|
this.btnAdd.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnAdd.TextAlign")));
|
||
|
this.btnAdd.Visible = ((bool)(resources.GetObject("btnAdd.Visible")));
|
||
|
this.btnAdd.Click += new System.EventHandler(this.button2_Click);
|
||
|
//
|
||
|
// btnRefresh
|
||
|
//
|
||
|
this.btnRefresh.AccessibleDescription = resources.GetString("btnRefresh.AccessibleDescription");
|
||
|
this.btnRefresh.AccessibleName = resources.GetString("btnRefresh.AccessibleName");
|
||
|
this.btnRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnRefresh.Anchor")));
|
||
|
this.btnRefresh.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnRefresh.BackgroundImage")));
|
||
|
this.btnRefresh.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnRefresh.Dock")));
|
||
|
this.btnRefresh.Enabled = ((bool)(resources.GetObject("btnRefresh.Enabled")));
|
||
|
this.btnRefresh.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnRefresh.FlatStyle")));
|
||
|
this.btnRefresh.Font = ((System.Drawing.Font)(resources.GetObject("btnRefresh.Font")));
|
||
|
this.btnRefresh.Image = ((System.Drawing.Image)(resources.GetObject("btnRefresh.Image")));
|
||
|
this.btnRefresh.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnRefresh.ImageAlign")));
|
||
|
this.btnRefresh.ImageIndex = ((int)(resources.GetObject("btnRefresh.ImageIndex")));
|
||
|
this.btnRefresh.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnRefresh.ImeMode")));
|
||
|
this.btnRefresh.Location = ((System.Drawing.Point)(resources.GetObject("btnRefresh.Location")));
|
||
|
this.btnRefresh.Name = "btnRefresh";
|
||
|
this.btnRefresh.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnRefresh.RightToLeft")));
|
||
|
this.btnRefresh.Size = ((System.Drawing.Size)(resources.GetObject("btnRefresh.Size")));
|
||
|
this.btnRefresh.TabIndex = ((int)(resources.GetObject("btnRefresh.TabIndex")));
|
||
|
this.btnRefresh.Text = resources.GetString("btnRefresh.Text");
|
||
|
this.btnRefresh.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnRefresh.TextAlign")));
|
||
|
this.btnRefresh.Visible = ((bool)(resources.GetObject("btnRefresh.Visible")));
|
||
|
this.btnRefresh.Click += new System.EventHandler(this.BtnRefresh_Click);
|
||
|
//
|
||
|
// btnOk
|
||
|
//
|
||
|
this.btnOk.AccessibleDescription = resources.GetString("btnOk.AccessibleDescription");
|
||
|
this.btnOk.AccessibleName = resources.GetString("btnOk.AccessibleName");
|
||
|
this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnOk.Anchor")));
|
||
|
this.btnOk.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnOk.BackgroundImage")));
|
||
|
this.btnOk.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnOk.Dock")));
|
||
|
this.btnOk.Enabled = ((bool)(resources.GetObject("btnOk.Enabled")));
|
||
|
this.btnOk.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnOk.FlatStyle")));
|
||
|
this.btnOk.Font = ((System.Drawing.Font)(resources.GetObject("btnOk.Font")));
|
||
|
this.btnOk.Image = ((System.Drawing.Image)(resources.GetObject("btnOk.Image")));
|
||
|
this.btnOk.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnOk.ImageAlign")));
|
||
|
this.btnOk.ImageIndex = ((int)(resources.GetObject("btnOk.ImageIndex")));
|
||
|
this.btnOk.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnOk.ImeMode")));
|
||
|
this.btnOk.Location = ((System.Drawing.Point)(resources.GetObject("btnOk.Location")));
|
||
|
this.btnOk.Name = "btnOk";
|
||
|
this.btnOk.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnOk.RightToLeft")));
|
||
|
this.btnOk.Size = ((System.Drawing.Size)(resources.GetObject("btnOk.Size")));
|
||
|
this.btnOk.TabIndex = ((int)(resources.GetObject("btnOk.TabIndex")));
|
||
|
this.btnOk.Text = resources.GetString("btnOk.Text");
|
||
|
this.btnOk.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnOk.TextAlign")));
|
||
|
this.btnOk.Visible = ((bool)(resources.GetObject("btnOk.Visible")));
|
||
|
this.btnOk.Click += new System.EventHandler(this.button5_Click);
|
||
|
//
|
||
|
// btnCancel
|
||
|
//
|
||
|
this.btnCancel.AccessibleDescription = resources.GetString("btnCancel.AccessibleDescription");
|
||
|
this.btnCancel.AccessibleName = resources.GetString("btnCancel.AccessibleName");
|
||
|
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnCancel.Anchor")));
|
||
|
this.btnCancel.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnCancel.BackgroundImage")));
|
||
|
this.btnCancel.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnCancel.Dock")));
|
||
|
this.btnCancel.Enabled = ((bool)(resources.GetObject("btnCancel.Enabled")));
|
||
|
this.btnCancel.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnCancel.FlatStyle")));
|
||
|
this.btnCancel.Font = ((System.Drawing.Font)(resources.GetObject("btnCancel.Font")));
|
||
|
this.btnCancel.Image = ((System.Drawing.Image)(resources.GetObject("btnCancel.Image")));
|
||
|
this.btnCancel.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnCancel.ImageAlign")));
|
||
|
this.btnCancel.ImageIndex = ((int)(resources.GetObject("btnCancel.ImageIndex")));
|
||
|
this.btnCancel.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnCancel.ImeMode")));
|
||
|
this.btnCancel.Location = ((System.Drawing.Point)(resources.GetObject("btnCancel.Location")));
|
||
|
this.btnCancel.Name = "btnCancel";
|
||
|
this.btnCancel.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnCancel.RightToLeft")));
|
||
|
this.btnCancel.Size = ((System.Drawing.Size)(resources.GetObject("btnCancel.Size")));
|
||
|
this.btnCancel.TabIndex = ((int)(resources.GetObject("btnCancel.TabIndex")));
|
||
|
this.btnCancel.Text = resources.GetString("btnCancel.Text");
|
||
|
this.btnCancel.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnCancel.TextAlign")));
|
||
|
this.btnCancel.Visible = ((bool)(resources.GetObject("btnCancel.Visible")));
|
||
|
this.btnCancel.Click += new System.EventHandler(this.button6_Click);
|
||
|
//
|
||
|
// AddSecretForm
|
||
|
//
|
||
|
this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
|
||
|
this.AccessibleName = resources.GetString("$this.AccessibleName");
|
||
|
this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
|
||
|
this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
|
||
|
this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
|
||
|
this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
|
||
|
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
|
||
|
this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
|
||
|
this.Controls.Add(this.btnCancel);
|
||
|
this.Controls.Add(this.tabControl1);
|
||
|
this.Controls.Add(this.btnOk);
|
||
|
this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
|
||
|
this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
|
||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||
|
this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
|
||
|
this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
|
||
|
this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
|
||
|
this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
|
||
|
this.Name = "AddSecretForm";
|
||
|
this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
|
||
|
this.ShowInTaskbar = false;
|
||
|
this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
|
||
|
this.Text = resources.GetString("$this.Text");
|
||
|
this.Load += new System.EventHandler(this.AddSecretForm_Load);
|
||
|
this.tabControl1.ResumeLayout(false);
|
||
|
this.tabPage1.ResumeLayout(false);
|
||
|
this.groupBox2.ResumeLayout(false);
|
||
|
this.groupBox1.ResumeLayout(false);
|
||
|
this.EPProtection.ResumeLayout(false);
|
||
|
this.tabPage2.ResumeLayout(false);
|
||
|
this.ResumeLayout(false);
|
||
|
|
||
|
}
|
||
|
#endregion
|
||
|
|
||
|
private void button5_Click(object sender, System.EventArgs e)
|
||
|
{
|
||
|
int iSecretType = Secret.SS_CREDSET;
|
||
|
|
||
|
if (this.EPPwd1.Text != null && this.EPPwd1.Text.Length > 0)
|
||
|
{
|
||
|
m_secret.setEnhancedProtectionPassword(EPPwd1.Text);
|
||
|
}
|
||
|
|
||
|
if (appButton2.Checked)
|
||
|
iSecretType = Secret.SS_APP;
|
||
|
|
||
|
// save secret
|
||
|
m_store.setSecret(1, m_secret, iSecretType);
|
||
|
|
||
|
|
||
|
this.Close();
|
||
|
}
|
||
|
|
||
|
private void button2_Click(object sender, System.EventArgs e)
|
||
|
{
|
||
|
if (SecretID.Text != null)
|
||
|
{
|
||
|
if (m_secret == null)
|
||
|
m_secret = m_store.getSecret(0, SecretID.Text.ToString(), Secret.SS_CREDSET, "");
|
||
|
|
||
|
NewEntry ne = new NewEntry(this, m_secret);
|
||
|
ne.ShowDialog();
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
// display no id
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private void button6_Click(object sender, System.EventArgs e)
|
||
|
{
|
||
|
this.Close();
|
||
|
}
|
||
|
|
||
|
private void AddSecretForm_Load(object sender, System.EventArgs e)
|
||
|
{
|
||
|
credButton1.Checked = true;
|
||
|
}
|
||
|
|
||
|
private void btnEdit_Click(object sender, System.EventArgs e)
|
||
|
{
|
||
|
NewEntry ne = new NewEntry(this, m_secret);
|
||
|
|
||
|
if (keyValueBox.SelectedItem != null)
|
||
|
{
|
||
|
// get selected item
|
||
|
string sKeyValue = keyValueBox.SelectedItem.ToString();
|
||
|
string sKey = sKeyValue.Substring(0, sKeyValue.IndexOf("="));
|
||
|
string sValue = sKeyValue.Substring(sKeyValue.IndexOf("=")+1);
|
||
|
|
||
|
ne.setKeyValue(sKey, sValue);
|
||
|
ne.ShowDialog();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private void button1_Click(object sender, System.EventArgs e)
|
||
|
{
|
||
|
this.Text = "View Secret";
|
||
|
this.groupBox1.Enabled = false;
|
||
|
this.groupBox2.Enabled = false;
|
||
|
this.EPProtection.Enabled = false;
|
||
|
this.Refresh();
|
||
|
}
|
||
|
|
||
|
private void btnEditSecret_Click(object sender, System.EventArgs e)
|
||
|
{
|
||
|
this.Text = "Edit Secret";
|
||
|
this.groupBox1.Enabled = true;
|
||
|
this.groupBox2.Enabled = true;
|
||
|
this.EPProtection.Enabled = true;
|
||
|
this.Refresh();
|
||
|
}
|
||
|
|
||
|
private void disableTab1()
|
||
|
{
|
||
|
this.Text = "View Secret";
|
||
|
this.groupBox1.Enabled = false;
|
||
|
this.groupBox2.Enabled = false;
|
||
|
this.EPProtection.Enabled = false;
|
||
|
}
|
||
|
|
||
|
public void loadSecret(SecretStore store, string sSecretID, int iSecretType, string sEPPassword)
|
||
|
{
|
||
|
this.m_store = store;
|
||
|
this.m_secret = store.getSecret(0, sSecretID, iSecretType, sEPPassword);
|
||
|
|
||
|
this.SecretID.Text = sSecretID;
|
||
|
|
||
|
refreshKeyValueBox();
|
||
|
tabControl1.TabIndex = 1;
|
||
|
disableTab1();
|
||
|
}
|
||
|
|
||
|
public void refreshKeyValueBox()
|
||
|
{
|
||
|
this.keyValueBox.Items.Clear();
|
||
|
NameValueCollection nvc = this.m_secret.getKeyValueCollection();
|
||
|
if (nvc != null)
|
||
|
{
|
||
|
for (int i=0; i<nvc.Count; i++)
|
||
|
{
|
||
|
string key = nvc.GetKey(i);
|
||
|
if (m_bShowValue)
|
||
|
this.keyValueBox.Items.Add(key + "=" + nvc.Get(key));
|
||
|
else
|
||
|
this.keyValueBox.Items.Add(key + "=" + "*******");
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private void BtnRefresh_Click(object sender, System.EventArgs e)
|
||
|
{
|
||
|
refreshKeyValueBox();
|
||
|
}
|
||
|
|
||
|
private void btnDelete_Click(object sender, System.EventArgs e)
|
||
|
{
|
||
|
if (keyValueBox.SelectedItem != null)
|
||
|
{
|
||
|
// get selected item
|
||
|
string sKeyValue = keyValueBox.SelectedItem.ToString();
|
||
|
string sKey = sKeyValue.Substring(0, sKeyValue.IndexOf("="));
|
||
|
string sValue = sKeyValue.Substring(sKeyValue.IndexOf("=")+1);
|
||
|
|
||
|
m_secret.removeKey(sKey, 0);
|
||
|
refreshKeyValueBox();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private void checkBox2_CheckedChanged(object sender, System.EventArgs e)
|
||
|
{
|
||
|
if (checkBox2.Checked)
|
||
|
m_bShowValue = true;
|
||
|
else
|
||
|
m_bShowValue = false;
|
||
|
|
||
|
refreshKeyValueBox();
|
||
|
}
|
||
|
}
|
||
|
}
|