Beispiel #1
0
        private void combobox_textAlgorithm_SelectedValueChanged(object sender, EventArgs e)
        {
            DataRowView selectedValueRow = (DataRowView)combobox_textAlgorithm.SelectedItem;

            if (selectedValueRow != null)
            {
                chosenTextAlgorithm = (iCipherMethod)selectedValueRow[1];
            }
        }
Beispiel #2
0
        private void combobox_fileAlgorithm_SelectedValueChanged(object sender, EventArgs e)
        {
            //Change chosenFileAlgorithm value when choosing another type
            DataRowView selectedValueRow = (DataRowView)combobox_fileAlgorithm.SelectedItem;

            if (selectedValueRow != null)
            {
                chosenFileAlgorithm = (iCipherMethod)selectedValueRow[1];
            }
        }