예제 #1
0
        public string GetBinary(string binary)
        {
            File_Handler fh = new File_Handler();
            string       encryptedmessage;

            encryptedmessage = fh.Binarytostring(binary);
            return(encryptedmessage);
        }
        //This is the FOrm constructor
        public SFL_2_CSV_main_form()
        {
            InitializeComponent();
            //Creat memory for the SFL location file handler
            sfl_loc_fh = new File_Handler();
            //Create a file hanfdler object for where the SFL files will be moved to after
            //conversion
            sfl_arch_loc_fh = new File_Handler();
            //Create a file hanfdler object for the location to stor the new CSV file
            csv_loc_fh = new File_Handler();



            /****************** SFL file location section setup ****************************/
            //Set the default text for the label
            Frm_TxtBx_SFL_Path.Text = Properties.Settings.Default.default_sfl_path;
            //Ensure that the folder path string holds the default folder location
            sfl_loc_fldr_path_str = Properties.Settings.Default.default_sfl_path;
            //Set the deeafault path for the folder browser
            sfl_loc_fh.fbd_1.SelectedPath = Properties.Settings.Default.default_sfl_path;

            /****************** SFL file archive location section setup ****************************/
            //Set the default text for the label
            Frm_TxtBx_SFL_Arch_Path.Text = Properties.Settings.Default.default_sfl_arch_path;
            //Set the default folder path from from settings file
            sfl_arch_loc_fh.fbd_1.SelectedPath = Properties.Settings.Default.default_sfl_arch_path;
            //Ensure that the folder path string holds the default folder location
            sfl_arch_loc_fldr_path_str = Properties.Settings.Default.default_sfl_arch_path;

            /****************** CSV output location section setup ****************************/
            //Set the default text for the label
            Frm_TxtBx_CSV_Out_Path.Text = Properties.Settings.Default.default_csv_out_path;
            //Set the default folder path from from settings file
            csv_loc_fh.fbd_1.SelectedPath = Properties.Settings.Default.default_csv_out_path;
            //Ensure that the folder path string holds the default folder location
            csv_loc_fldr_path_str = Properties.Settings.Default.default_csv_out_path;
        }
예제 #3
0
        public string[] DecryptedMessage(string encryptedmessage)
        {
            File_Handler fh = new File_Handler();

            return(fh.GetDecyptedMessage(encryptedmessage));
        }