示例#1
0
 public Generate(FileInteraction f, string[] t)
 {
     fi   = f;
     tags = t;
     InitializeComponent();
     seedbox.Select();
 }
示例#2
0
 public Initialize(FileInteraction f)
 {
     fi   = f;
     path = Path.Combine(Environment.CurrentDirectory, "secret.txt");
     InitializeComponent();
     passwordbox.Select();
 }
示例#3
0
文件: Add.cs 项目: larry-x/CryptoKeys
 public Add(FileInteraction f, string[] t)
 {
     fi   = f;
     tags = t;
     InitializeComponent();
     newtag.Select();
 }
示例#4
0
 public Delete(string t, FileInteraction f)
 {
     tag = t;
     fi  = f;
     InitializeComponent();
     showtag.Text = $"Are you sure you want to delete the tag and the key:\n{tag}?";
 }
示例#5
0
 public Edit(string t, string p, FileInteraction f)
 {
     tag  = t;
     pass = p;
     fi   = f;
     InitializeComponent();
     showtag.Text = $"Change key stored at:\n{tag}";
     showpass.Select();
 }
示例#6
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            string          FP     = Path.Combine(Environment.CurrentDirectory, "secret.txt");
            Hasher          hasher = new Hasher();
            FileInteraction fi     = new FileInteraction(FP, hasher);

            Application.Run(new Open(fi));
        }
示例#7
0
 public Open(FileInteraction f)
 {
     fi = f;
     InitializeComponent();
     passinput.Select();
 }
示例#8
0
 public Terminal(FileInteraction f)
 {
     fi = f;
     InitializeComponent();
     Refresh_Screen();
 }