public Form1() { InitializeComponent(); MCS = new MMCredentialStore("local"); string[] args = Environment.GetCommandLineArgs(); if ((args.Length > 1) && (args[1].Trim() != "") && (File.Exists(args[1]))) { string sFile = args[1]; string sPwd = MCS["LockBox"].ParseString(" ", 1); ox = new LockBox(sFile, sPwd); buildTree(); } }
private void toolStripMenuItem1_Click(object sender, EventArgs e) { // open LockBox. odMain.FileName = "*.lxb"; //string sPassword = ""; if (odMain.ShowDialog() == DialogResult.OK) { string sFile = odMain.FileName; string sPwd = MCS["LockBox"].ParseString(" ", 1); ox = new LockBox(sFile, sPwd); buildTree(); // } } }
private void closeBoxToolStripMenuItem_Click(object sender, EventArgs e) { ox = null; buildTree(); }