Exemplo n.º 1
0
        private void loadKeyButton_Click(object sender, EventArgs e)
        {
            FileWork fw = new FileWork();

            openFileDialog1.ShowDialog();
            string key = openFileDialog1.FileName;

            byteKey = fw.FileToByte(key);

            if (byteKey != null)
            {
                keyTextBox.Text = Encoding.Default.GetString(byteKey);
            }
        }
Exemplo n.º 2
0
        private void fileLoadButton_Click(object sender, EventArgs e)
        {
            FileWork fw = new FileWork();

            openFileDialog1.ShowDialog();
            string file = openFileDialog1.FileName;

            decrByteFile = fw.FileToByte(file);

            if (decrByteFile != null)
            {
                decrTextBox.Text = Encoding.Default.GetString(decrByteFile);
            }
        }
Exemplo n.º 3
0
        private void sLoadButton_Click(object sender, EventArgs e)
        {
            FileWork fw = new FileWork();

            openFileDialog1.ShowDialog();
            string S = openFileDialog1.FileName;

            byteS = fw.FileToByte(S);

            if (byteS != null)
            {
                sTextBox.Text = Encoding.Default.GetString(byteS);
            }
        }