Ejemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();
            configuration             = new config.ConfigurationManager().readConfiguration();
            textBoxFolderCrypt.Text   = configuration.folderPathCipher;
            textBoxFolderOrig.Text    = configuration.folderPathOrig;
            radioButtonBackup.Checked = configuration.isBackup;
            radioButtonRemote.Checked = !configuration.isBackup;
            textBoxPassword.Text      = configuration.password;

            // init delegate
            ProgressBarDelegate = new ProgressBarDelegateHandler(UpdateProgressBar);
            TextBoxDelegate     = new TextBoxDelegateHandler(UpdateTextBox);
        }
Ejemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();
            configuration = new config.ConfigurationManager().readConfiguration();
            textBoxFolderCrypt.Text = configuration.folderPathCipher;
            textBoxFolderOrig.Text = configuration.folderPathOrig;
            radioButtonBackup.Checked = configuration.isBackup;
            radioButtonRemote.Checked = !configuration.isBackup;
            textBoxPassword.Text = configuration.password;

            // init delegate
            ProgressBarDelegate = new ProgressBarDelegateHandler(UpdateProgressBar);
            TextBoxDelegate = new TextBoxDelegateHandler(UpdateTextBox);
        }