Added import/export logins
This commit is contained in:
parent
07e8793183
commit
aed2e8e6bc
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
|
||||||
|
|||||||
2
OnePass/Form1.Designer.cs
generated
2
OnePass/Form1.Designer.cs
generated
@ -338,7 +338,7 @@ namespace OnePass
|
|||||||
this.MaximumSize = new System.Drawing.Size(442, 222);
|
this.MaximumSize = new System.Drawing.Size(442, 222);
|
||||||
this.MinimumSize = new System.Drawing.Size(442, 222);
|
this.MinimumSize = new System.Drawing.Size(442, 222);
|
||||||
this.Name = "Form1";
|
this.Name = "Form1";
|
||||||
this.Text = "OnePass V5.1";
|
this.Text = "OnePass V5.2";
|
||||||
this.Load += new System.EventHandler(this.Form1_Load);
|
this.Load += new System.EventHandler(this.Form1_Load);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.passCycle)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.passCycle)).EndInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.passLength)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.passLength)).EndInit();
|
||||||
|
|||||||
@ -5,6 +5,7 @@ using System.Drawing;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
using System.Windows;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace OnePass
|
namespace OnePass
|
||||||
@ -59,19 +60,19 @@ namespace OnePass
|
|||||||
isvowel = !isvowel;
|
isvowel = !isvowel;
|
||||||
}
|
}
|
||||||
return pass;
|
return pass;
|
||||||
}
|
}//using Microsoft.WindowsAPICodePack.Dialogs;
|
||||||
private void label7_Click(object sender, EventArgs e)
|
private void label7_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
label7.BackColor = SystemColors.Highlight;
|
label7.BackColor = System.Drawing.SystemColors.Highlight;
|
||||||
atoz.BackColor = SystemColors.InactiveCaption;
|
atoz.BackColor = System.Drawing.SystemColors.InactiveCaption;
|
||||||
uAtoZ.BackColor = SystemColors.InactiveCaption;
|
uAtoZ.BackColor = System.Drawing.SystemColors.InactiveCaption;
|
||||||
numbers.BackColor = SystemColors.InactiveCaption;
|
numbers.BackColor = System.Drawing.SystemColors.InactiveCaption;
|
||||||
special.BackColor = SystemColors.InactiveCaption;
|
special.BackColor = System.Drawing.SystemColors.InactiveCaption;
|
||||||
extspc.BackColor = SystemColors.InactiveCaption;
|
extspc.BackColor = System.Drawing.SystemColors.InactiveCaption;
|
||||||
}
|
}
|
||||||
private void atoz_Click(object sender, EventArgs e)
|
private void atoz_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
label7.BackColor = SystemColors.InactiveCaption;
|
label7.BackColor = System.Drawing.SystemColors.InactiveCaption;
|
||||||
if (atoz.BackColor == System.Drawing.SystemColors.InactiveCaption)
|
if (atoz.BackColor == System.Drawing.SystemColors.InactiveCaption)
|
||||||
{
|
{
|
||||||
atoz.BackColor = System.Drawing.SystemColors.Highlight;
|
atoz.BackColor = System.Drawing.SystemColors.Highlight;
|
||||||
@ -83,7 +84,7 @@ namespace OnePass
|
|||||||
|
|
||||||
private void uAtoZ_Click(object sender, EventArgs e)
|
private void uAtoZ_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
label7.BackColor = SystemColors.InactiveCaption;
|
label7.BackColor = System.Drawing.SystemColors.InactiveCaption;
|
||||||
if (uAtoZ.BackColor == System.Drawing.SystemColors.InactiveCaption)
|
if (uAtoZ.BackColor == System.Drawing.SystemColors.InactiveCaption)
|
||||||
{
|
{
|
||||||
uAtoZ.BackColor = System.Drawing.SystemColors.Highlight;
|
uAtoZ.BackColor = System.Drawing.SystemColors.Highlight;
|
||||||
@ -96,7 +97,7 @@ namespace OnePass
|
|||||||
|
|
||||||
private void numbers_Click(object sender, EventArgs e)
|
private void numbers_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
label7.BackColor = SystemColors.InactiveCaption;
|
label7.BackColor = System.Drawing.SystemColors.InactiveCaption;
|
||||||
if (numbers.BackColor == System.Drawing.SystemColors.InactiveCaption)
|
if (numbers.BackColor == System.Drawing.SystemColors.InactiveCaption)
|
||||||
{
|
{
|
||||||
numbers.BackColor = System.Drawing.SystemColors.Highlight;
|
numbers.BackColor = System.Drawing.SystemColors.Highlight;
|
||||||
@ -109,7 +110,7 @@ namespace OnePass
|
|||||||
|
|
||||||
private void special_Click(object sender, EventArgs e)
|
private void special_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
label7.BackColor = SystemColors.InactiveCaption;
|
label7.BackColor = System.Drawing.SystemColors.InactiveCaption;
|
||||||
if (special.BackColor == System.Drawing.SystemColors.InactiveCaption)
|
if (special.BackColor == System.Drawing.SystemColors.InactiveCaption)
|
||||||
{
|
{
|
||||||
special.BackColor = System.Drawing.SystemColors.Highlight;
|
special.BackColor = System.Drawing.SystemColors.Highlight;
|
||||||
@ -179,7 +180,7 @@ namespace OnePass
|
|||||||
{
|
{
|
||||||
if (sitename.Text == "" || username.Text == "" || masterpass.Text == "")
|
if (sitename.Text == "" || username.Text == "" || masterpass.Text == "")
|
||||||
{
|
{
|
||||||
MessageBox.Show("Cannot leave a field blank!");
|
System.Windows.MessageBox.Show("Cannot leave a field blank!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ArrayList chars = new ArrayList();
|
ArrayList chars = new ArrayList();
|
||||||
@ -193,13 +194,13 @@ namespace OnePass
|
|||||||
addUpper(ref chars);
|
addUpper(ref chars);
|
||||||
if (extspc.BackColor == System.Drawing.SystemColors.Highlight)
|
if (extspc.BackColor == System.Drawing.SystemColors.Highlight)
|
||||||
addExtended(ref chars);
|
addExtended(ref chars);
|
||||||
if(label7.BackColor == SystemColors.Highlight)
|
if(label7.BackColor == System.Drawing.SystemColors.Highlight)
|
||||||
{
|
{
|
||||||
chars.Add('A');
|
chars.Add('A');
|
||||||
}
|
}
|
||||||
if (chars.Count == 0)
|
if (chars.Count == 0)
|
||||||
{
|
{
|
||||||
MessageBox.Show("Must have at least one option turned on to generate a password!");
|
System.Windows.MessageBox.Show("Must have at least one option turned on to generate a password!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
byte[] sn_bytes = Encoding.ASCII.GetBytes(sitename.Text);
|
byte[] sn_bytes = Encoding.ASCII.GetBytes(sitename.Text);
|
||||||
@ -224,20 +225,20 @@ namespace OnePass
|
|||||||
}
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (label7.BackColor == SystemColors.Highlight)
|
if (label7.BackColor == System.Drawing.SystemColors.Highlight)
|
||||||
Clipboard.SetText(GeneratePassword((int)passLength.Value, (int)seed));
|
System.Windows.Clipboard.SetText(GeneratePassword((int)passLength.Value, (int)seed));
|
||||||
else
|
else
|
||||||
Clipboard.SetText(GenerateKey((uint)passLength.Value, seed, ref chars));
|
System.Windows.Clipboard.SetText(GenerateKey((uint)passLength.Value, seed, ref chars));
|
||||||
} catch
|
} catch
|
||||||
{
|
{
|
||||||
MessageBox.Show("Attempt to capture clipboard data over the network! (Are you using remote desktop w/clipboard)");
|
System.Windows.MessageBox.Show("Attempt to capture clipboard data over the network! (Are you using remote desktop w/clipboard)");
|
||||||
}
|
}
|
||||||
masterpass.Text = "";
|
masterpass.Text = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
private void extspc_Click(object sender, EventArgs e)
|
private void extspc_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
label7.BackColor = SystemColors.InactiveCaption;
|
label7.BackColor = System.Drawing.SystemColors.InactiveCaption;
|
||||||
if (extspc.BackColor == System.Drawing.SystemColors.InactiveCaption)
|
if (extspc.BackColor == System.Drawing.SystemColors.InactiveCaption)
|
||||||
{
|
{
|
||||||
extspc.BackColor = System.Drawing.SystemColors.Highlight;
|
extspc.BackColor = System.Drawing.SystemColors.Highlight;
|
||||||
@ -250,7 +251,7 @@ namespace OnePass
|
|||||||
|
|
||||||
private void help_Click(object sender, EventArgs e)
|
private void help_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
MessageBox.Show("When a password is generated the password will live on your clipboard for 7 seconds (paste it quick). Then your master password and the clipboard is also cleared out! Make sure nothing important is on the clipboard!","Help!");
|
System.Windows.MessageBox.Show("When a password is generated the password will live on your clipboard for 7 seconds (paste it quick). Then your master password and the clipboard is also cleared out! Make sure nothing important is on the clipboard!","Help!");
|
||||||
}
|
}
|
||||||
private string MakeValidFileName(string name)
|
private string MakeValidFileName(string name)
|
||||||
{
|
{
|
||||||
@ -271,12 +272,12 @@ namespace OnePass
|
|||||||
username.Text = form2.login;
|
username.Text = form2.login;
|
||||||
passCycle.Value = (decimal)form2.cycle;
|
passCycle.Value = (decimal)form2.cycle;
|
||||||
passLength.Value = (decimal)form2.length;
|
passLength.Value = (decimal)form2.length;
|
||||||
special.BackColor = (form2.opt1) ? SystemColors.Highlight : SystemColors.InactiveCaption;
|
special.BackColor = (form2.opt1) ? System.Drawing.SystemColors.Highlight : System.Drawing.SystemColors.InactiveCaption;
|
||||||
numbers.BackColor = (form2.opt2) ? SystemColors.Highlight : SystemColors.InactiveCaption;
|
numbers.BackColor = (form2.opt2) ? System.Drawing.SystemColors.Highlight : System.Drawing.SystemColors.InactiveCaption;
|
||||||
atoz.BackColor = (form2.opt3) ? SystemColors.Highlight : SystemColors.InactiveCaption;
|
atoz.BackColor = (form2.opt3) ? System.Drawing.SystemColors.Highlight : System.Drawing.SystemColors.InactiveCaption;
|
||||||
uAtoZ.BackColor = (form2.opt4) ? SystemColors.Highlight : SystemColors.InactiveCaption;
|
uAtoZ.BackColor = (form2.opt4) ? System.Drawing.SystemColors.Highlight : System.Drawing.SystemColors.InactiveCaption;
|
||||||
extspc.BackColor = (form2.opt5) ? SystemColors.Highlight : SystemColors.InactiveCaption;
|
extspc.BackColor = (form2.opt5) ? System.Drawing.SystemColors.Highlight : System.Drawing.SystemColors.InactiveCaption;
|
||||||
label7.BackColor = (form2.opt6) ? SystemColors.Highlight : SystemColors.InactiveCaption;
|
label7.BackColor = (form2.opt6) ? System.Drawing.SystemColors.Highlight : System.Drawing.SystemColors.InactiveCaption;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -284,7 +285,7 @@ namespace OnePass
|
|||||||
{
|
{
|
||||||
if(sitename.Text=="" || username.Text == "")
|
if(sitename.Text=="" || username.Text == "")
|
||||||
{
|
{
|
||||||
MessageBox.Show("Cannot save data if fields are incomplete!");
|
System.Windows.MessageBox.Show("Cannot save data if fields are incomplete!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try
|
try
|
||||||
@ -294,18 +295,18 @@ namespace OnePass
|
|||||||
writer.Write(username.Text);
|
writer.Write(username.Text);
|
||||||
writer.Write((int)passCycle.Value);
|
writer.Write((int)passCycle.Value);
|
||||||
writer.Write((int)passLength.Value);
|
writer.Write((int)passLength.Value);
|
||||||
writer.Write(special.BackColor == SystemColors.Highlight);
|
writer.Write(special.BackColor == System.Drawing.SystemColors.Highlight);
|
||||||
writer.Write(numbers.BackColor == SystemColors.Highlight);
|
writer.Write(numbers.BackColor == System.Drawing.SystemColors.Highlight);
|
||||||
writer.Write(atoz.BackColor == SystemColors.Highlight);
|
writer.Write(atoz.BackColor == System.Drawing.SystemColors.Highlight);
|
||||||
writer.Write(uAtoZ.BackColor == SystemColors.Highlight);
|
writer.Write(uAtoZ.BackColor == System.Drawing.SystemColors.Highlight);
|
||||||
writer.Write(extspc.BackColor == SystemColors.Highlight);
|
writer.Write(extspc.BackColor == System.Drawing.SystemColors.Highlight);
|
||||||
writer.Write(label7.BackColor == SystemColors.Highlight);
|
writer.Write(label7.BackColor == System.Drawing.SystemColors.Highlight);
|
||||||
writer.Flush();
|
writer.Flush();
|
||||||
writer.Dispose();
|
writer.Dispose();
|
||||||
}
|
}
|
||||||
catch(Exception ex)
|
catch(Exception ex)
|
||||||
{
|
{
|
||||||
MessageBox.Show(ex.Message);
|
System.Windows.MessageBox.Show(ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
43
OnePass/Form2.Designer.cs
generated
43
OnePass/Form2.Designer.cs
generated
@ -34,6 +34,8 @@ namespace OnePass
|
|||||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||||
this.select_login = new System.Windows.Forms.Button();
|
this.select_login = new System.Windows.Forms.Button();
|
||||||
this.remove_login = new System.Windows.Forms.Button();
|
this.remove_login = new System.Windows.Forms.Button();
|
||||||
|
this.button1 = new System.Windows.Forms.Button();
|
||||||
|
this.button2 = new System.Windows.Forms.Button();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// Logins
|
// Logins
|
||||||
@ -55,9 +57,9 @@ namespace OnePass
|
|||||||
//
|
//
|
||||||
// select_login
|
// select_login
|
||||||
//
|
//
|
||||||
this.select_login.Location = new System.Drawing.Point(13, 153);
|
this.select_login.Location = new System.Drawing.Point(13, 152);
|
||||||
this.select_login.Name = "select_login";
|
this.select_login.Name = "select_login";
|
||||||
this.select_login.Size = new System.Drawing.Size(132, 23);
|
this.select_login.Size = new System.Drawing.Size(84, 23);
|
||||||
this.select_login.TabIndex = 2;
|
this.select_login.TabIndex = 2;
|
||||||
this.select_login.Text = "Select Login Info";
|
this.select_login.Text = "Select Login Info";
|
||||||
this.select_login.UseVisualStyleBackColor = true;
|
this.select_login.UseVisualStyleBackColor = true;
|
||||||
@ -65,28 +67,51 @@ namespace OnePass
|
|||||||
//
|
//
|
||||||
// remove_login
|
// remove_login
|
||||||
//
|
//
|
||||||
this.remove_login.Location = new System.Drawing.Point(177, 153);
|
this.remove_login.Location = new System.Drawing.Point(13, 179);
|
||||||
this.remove_login.Name = "remove_login";
|
this.remove_login.Name = "remove_login";
|
||||||
this.remove_login.Size = new System.Drawing.Size(132, 23);
|
this.remove_login.Size = new System.Drawing.Size(84, 23);
|
||||||
this.remove_login.TabIndex = 3;
|
this.remove_login.TabIndex = 3;
|
||||||
this.remove_login.Text = "Delete Login Info";
|
this.remove_login.Text = "Delete Login Info";
|
||||||
this.remove_login.UseVisualStyleBackColor = true;
|
this.remove_login.UseVisualStyleBackColor = true;
|
||||||
this.remove_login.Click += new System.EventHandler(this.remove_login_Click);
|
this.remove_login.Click += new System.EventHandler(this.remove_login_Click);
|
||||||
//
|
//
|
||||||
|
// button1
|
||||||
|
//
|
||||||
|
this.button1.Location = new System.Drawing.Point(222, 152);
|
||||||
|
this.button1.Name = "button1";
|
||||||
|
this.button1.Size = new System.Drawing.Size(87, 23);
|
||||||
|
this.button1.TabIndex = 4;
|
||||||
|
this.button1.Text = "Export Logins";
|
||||||
|
this.button1.UseVisualStyleBackColor = true;
|
||||||
|
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||||
|
//
|
||||||
|
// button2
|
||||||
|
//
|
||||||
|
this.button2.Location = new System.Drawing.Point(222, 179);
|
||||||
|
this.button2.Name = "button2";
|
||||||
|
this.button2.Size = new System.Drawing.Size(87, 23);
|
||||||
|
this.button2.TabIndex = 5;
|
||||||
|
this.button2.Text = "Import Logins";
|
||||||
|
this.button2.UseVisualStyleBackColor = true;
|
||||||
|
this.button2.Click += new System.EventHandler(this.button2_Click);
|
||||||
|
//
|
||||||
// Form2
|
// Form2
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.ClientSize = new System.Drawing.Size(321, 182);
|
this.ClientSize = new System.Drawing.Size(321, 207);
|
||||||
|
this.Controls.Add(this.button2);
|
||||||
|
this.Controls.Add(this.button1);
|
||||||
this.Controls.Add(this.remove_login);
|
this.Controls.Add(this.remove_login);
|
||||||
this.Controls.Add(this.select_login);
|
this.Controls.Add(this.select_login);
|
||||||
this.Controls.Add(this.textBox1);
|
this.Controls.Add(this.textBox1);
|
||||||
this.Controls.Add(this.Logins);
|
this.Controls.Add(this.Logins);
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.MaximumSize = new System.Drawing.Size(337, 221);
|
this.MaximumSize = new System.Drawing.Size(337, 246);
|
||||||
this.MinimumSize = new System.Drawing.Size(337, 221);
|
this.MinimumSize = new System.Drawing.Size(337, 246);
|
||||||
this.Name = "Form2";
|
this.Name = "Form2";
|
||||||
this.Text = "Saved Logins";
|
this.Text = "Logins";
|
||||||
|
this.Load += new System.EventHandler(this.Form2_Load);
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
this.PerformLayout();
|
this.PerformLayout();
|
||||||
|
|
||||||
@ -98,5 +123,7 @@ namespace OnePass
|
|||||||
private System.Windows.Forms.TextBox textBox1;
|
private System.Windows.Forms.TextBox textBox1;
|
||||||
private System.Windows.Forms.Button select_login;
|
private System.Windows.Forms.Button select_login;
|
||||||
private System.Windows.Forms.Button remove_login;
|
private System.Windows.Forms.Button remove_login;
|
||||||
|
private System.Windows.Forms.Button button1;
|
||||||
|
private System.Windows.Forms.Button button2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,18 +1,14 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
|
||||||
using System.Data;
|
|
||||||
using System.Drawing;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using System.IO.Compression;
|
||||||
|
using System.Globalization;
|
||||||
|
|
||||||
namespace OnePass
|
namespace OnePass
|
||||||
{
|
{
|
||||||
public partial class Form2 : Form
|
public partial class Form2 : Form
|
||||||
{//
|
{
|
||||||
public string site { get; set; }
|
public string site { get; set; }
|
||||||
public string login { get; set; }
|
public string login { get; set; }
|
||||||
public bool opt6 { get; set; }
|
public bool opt6 { get; set; }
|
||||||
@ -25,6 +21,7 @@ namespace OnePass
|
|||||||
public int cycle { get; set; }
|
public int cycle { get; set; }
|
||||||
public bool state { get; set; }
|
public bool state { get; set; }
|
||||||
public string path { get; }
|
public string path { get; }
|
||||||
|
public string desktop = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop));
|
||||||
List<string> files = new List<string>();
|
List<string> files = new List<string>();
|
||||||
public Form2()
|
public Form2()
|
||||||
{
|
{
|
||||||
@ -93,5 +90,43 @@ namespace OnePass
|
|||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//Export
|
||||||
|
private void button1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string filename = "logins_" + DateTime.Now.ToString("MM-dd-yy (hhmmss)") + ".onp";
|
||||||
|
try
|
||||||
|
{
|
||||||
|
ZipFile.CreateFromDirectory(path, Path.Combine(desktop, filename));
|
||||||
|
MessageBox.Show("Export has been saved to: " + Path.Combine(desktop, filename));
|
||||||
|
} catch
|
||||||
|
{
|
||||||
|
MessageBox.Show("An export already exists! " + Path.Combine(desktop, filename));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//Import
|
||||||
|
private void button2_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
OpenFileDialog openDialog = new OpenFileDialog();
|
||||||
|
openDialog.Title = "Select A File";
|
||||||
|
openDialog.Filter = "Onepass Files (*.onp)|*.onp" + "|" +
|
||||||
|
"All Files (*.*)|*.*";
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (openDialog.ShowDialog() == DialogResult.OK)
|
||||||
|
{
|
||||||
|
ZipFile.ExtractToDirectory(openDialog.FileName, path);
|
||||||
|
init();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
MessageBox.Show("Invalid file selected!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Form2_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,6 +12,7 @@
|
|||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
|
<TargetFrameworkProfile />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
@ -36,8 +37,20 @@
|
|||||||
<ApplicationIcon>lock-clipart-cliparti1_lock-clip-art_02.ico</ApplicationIcon>
|
<ApplicationIcon>lock-clipart-cliparti1_lock-clip-art_02.ico</ApplicationIcon>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Reference Include="Microsoft.WindowsAPICodePack, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Microsoft.WindowsAPICodePack-Core.1.1.0.0\lib\Microsoft.WindowsAPICodePack.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.WindowsAPICodePack.Shell, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Microsoft.WindowsAPICodePack-Shell.1.1.0.0\lib\Microsoft.WindowsAPICodePack.Shell.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.WindowsAPICodePack.ShellExtensions, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Microsoft.WindowsAPICodePack-Shell.1.1.0.0\lib\Microsoft.WindowsAPICodePack.ShellExtensions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="PresentationCore" />
|
||||||
|
<Reference Include="PresentationFramework" />
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.IO.Compression.FileSystem" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
@ -47,6 +60,7 @@
|
|||||||
<Reference Include="System.Net.Http" />
|
<Reference Include="System.Net.Http" />
|
||||||
<Reference Include="System.Windows.Forms" />
|
<Reference Include="System.Windows.Forms" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
|
<Reference Include="WindowsBase" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Form1.cs">
|
<Compile Include="Form1.cs">
|
||||||
@ -77,7 +91,9 @@
|
|||||||
<Compile Include="Properties\Resources.Designer.cs">
|
<Compile Include="Properties\Resources.Designer.cs">
|
||||||
<AutoGen>True</AutoGen>
|
<AutoGen>True</AutoGen>
|
||||||
<DependentUpon>Resources.resx</DependentUpon>
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<None Include="packages.config" />
|
||||||
<None Include="Properties\Settings.settings">
|
<None Include="Properties\Settings.settings">
|
||||||
<Generator>SettingsSingleFileGenerator</Generator>
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||||
|
|||||||
31
OnePass/Properties/Resources.Designer.cs
generated
31
OnePass/Properties/Resources.Designer.cs
generated
@ -8,9 +8,10 @@
|
|||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace OnePass.Properties {
|
||||||
|
using System;
|
||||||
|
|
||||||
|
|
||||||
namespace OnePass.Properties
|
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -18,31 +19,26 @@ namespace OnePass.Properties
|
|||||||
// class via a tool like ResGen or Visual Studio.
|
// class via a tool like ResGen or Visual Studio.
|
||||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||||
// with the /str option, or rebuild your VS project.
|
// with the /str option, or rebuild your VS project.
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
internal class Resources
|
internal class Resources {
|
||||||
{
|
|
||||||
|
|
||||||
private static global::System.Resources.ResourceManager resourceMan;
|
private static global::System.Resources.ResourceManager resourceMan;
|
||||||
|
|
||||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||||
|
|
||||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||||
internal Resources()
|
internal Resources() {
|
||||||
{
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the cached ResourceManager instance used by this class.
|
/// Returns the cached ResourceManager instance used by this class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
internal static global::System.Resources.ResourceManager ResourceManager
|
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||||
{
|
get {
|
||||||
get
|
if (object.ReferenceEquals(resourceMan, null)) {
|
||||||
{
|
|
||||||
if ((resourceMan == null))
|
|
||||||
{
|
|
||||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("OnePass.Properties.Resources", typeof(Resources).Assembly);
|
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("OnePass.Properties.Resources", typeof(Resources).Assembly);
|
||||||
resourceMan = temp;
|
resourceMan = temp;
|
||||||
}
|
}
|
||||||
@ -55,14 +51,11 @@ namespace OnePass.Properties
|
|||||||
/// resource lookups using this strongly typed resource class.
|
/// resource lookups using this strongly typed resource class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
internal static global::System.Globalization.CultureInfo Culture
|
internal static global::System.Globalization.CultureInfo Culture {
|
||||||
{
|
get {
|
||||||
get
|
|
||||||
{
|
|
||||||
return resourceCulture;
|
return resourceCulture;
|
||||||
}
|
}
|
||||||
set
|
set {
|
||||||
{
|
|
||||||
resourceCulture = value;
|
resourceCulture = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
15
OnePass/Properties/Settings.Designer.cs
generated
15
OnePass/Properties/Settings.Designer.cs
generated
@ -8,20 +8,17 @@
|
|||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace OnePass.Properties {
|
||||||
|
|
||||||
|
|
||||||
namespace OnePass.Properties
|
|
||||||
{
|
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0")]
|
||||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
|
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||||
{
|
|
||||||
|
|
||||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||||
|
|
||||||
public static Settings Default
|
public static Settings Default {
|
||||||
{
|
get {
|
||||||
get
|
|
||||||
{
|
|
||||||
return defaultInstance;
|
return defaultInstance;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
|
||||||
|
|||||||
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
8069502011d0681850e57a53d5a1673222f430a6
|
00e520602f451cc44711f2d82caabf1b2656ae6e
|
||||||
|
|||||||
@ -8,3 +8,25 @@ C:\Users\rayam\source\repos\OnePass\OnePass\obj\Debug\OnePass.csproj.GenerateRes
|
|||||||
C:\Users\rayam\source\repos\OnePass\OnePass\obj\Debug\OnePass.csproj.CoreCompileInputs.cache
|
C:\Users\rayam\source\repos\OnePass\OnePass\obj\Debug\OnePass.csproj.CoreCompileInputs.cache
|
||||||
C:\Users\rayam\source\repos\OnePass\OnePass\obj\Debug\OnePass.exe
|
C:\Users\rayam\source\repos\OnePass\OnePass\obj\Debug\OnePass.exe
|
||||||
C:\Users\rayam\source\repos\OnePass\OnePass\obj\Debug\OnePass.pdb
|
C:\Users\rayam\source\repos\OnePass\OnePass\obj\Debug\OnePass.pdb
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\bin\Debug\OnePass.exe.config
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\bin\Debug\OnePass.exe
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\bin\Debug\OnePass.pdb
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\obj\Debug\OnePass.csproj.AssemblyReference.cache
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\obj\Debug\OnePass.Form1.resources
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\obj\Debug\OnePass.Form2.resources
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\obj\Debug\OnePass.Properties.Resources.resources
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\obj\Debug\OnePass.csproj.GenerateResource.cache
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\obj\Debug\OnePass.csproj.CoreCompileInputs.cache
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\obj\Debug\OnePass.exe
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\obj\Debug\OnePass.pdb
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\bin\Debug\Microsoft.WindowsAPICodePack.dll
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\bin\Debug\Microsoft.WindowsAPICodePack.Shell.dll
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\bin\Debug\Microsoft.WindowsAPICodePack.ShellExtensions.dll
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\bin\Debug\Microsoft.WindowsAPICodePack.pdb
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\bin\Debug\Microsoft.WindowsAPICodePack.xml
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\bin\Debug\Microsoft.WindowsAPICodePack.Shell.pdb
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\bin\Debug\Microsoft.WindowsAPICodePack.Shell.xml
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\bin\Debug\Microsoft.WindowsAPICodePack.ShellExtensions.pdb
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\bin\Debug\Microsoft.WindowsAPICodePack.ShellExtensions.xml
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\obj\Debug\OnePass.csproj.CopyComplete
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\obj\Debug\OnePass.csproj.SuggestedBindingRedirects.cache
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
ad2f261187cc44d5c3db8df71145224de824e6a7
|
0215b1aacf7fd0af47be430b3d81a85de2f53264
|
||||||
|
|||||||
@ -29,3 +29,14 @@ G:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.csproj.CoreCompileInputs.cac
|
|||||||
G:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.exe
|
G:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.exe
|
||||||
G:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.pdb
|
G:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.pdb
|
||||||
G:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.csproj.AssemblyReference.cache
|
G:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.csproj.AssemblyReference.cache
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\bin\Release\Microsoft.WindowsAPICodePack.dll
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\bin\Release\Microsoft.WindowsAPICodePack.Shell.dll
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\bin\Release\Microsoft.WindowsAPICodePack.ShellExtensions.dll
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\bin\Release\Microsoft.WindowsAPICodePack.pdb
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\bin\Release\Microsoft.WindowsAPICodePack.xml
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\bin\Release\Microsoft.WindowsAPICodePack.Shell.pdb
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\bin\Release\Microsoft.WindowsAPICodePack.Shell.xml
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\bin\Release\Microsoft.WindowsAPICodePack.ShellExtensions.pdb
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\bin\Release\Microsoft.WindowsAPICodePack.ShellExtensions.xml
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.csproj.SuggestedBindingRedirects.cache
|
||||||
|
G:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.csproj.CopyComplete
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user