Example #1
0
        //Form event methods
        private void btn_options_Click(object sender, EventArgs e)
        {
            //Create a new instance of the options form, and pass the current vars to it
            FormSettings settings = new FormSettings(settingsBackup, settingsBackupDir, settingsDeleteOrig, b_dir, s_dir, b_dir_struct, b_explorer);

            //Show the form
            settings.ShowDialog();

            //If the user hit OK, set all the new vars
            if (settings.b_accept)
            {
                settingsBackup     = settings.b_backup;
                settingsBackupDir  = settings.s_back;
                settingsDeleteOrig = settings.b_delete;
                b_dir        = settings.b_dir;
                s_dir        = settings.s_dir;
                b_dir_struct = settings.b_dir_struct;
                b_explorer   = settings.b_explorer;
            }
        }
Example #2
0
        //Form event methods
        private void btn_options_Click(object sender, EventArgs e)
        {
            //Create a new instance of the options form, and pass the current vars to it
            FormSettings settings = new FormSettings(settingsBackup, settingsBackupDir, settingsDeleteOrig, b_dir, s_dir, b_dir_struct, b_explorer);

            //Show the form
            settings.ShowDialog();

            //If the user hit OK, set all the new vars
            if (settings.b_accept)
            {
                settingsBackup = settings.b_backup;
                settingsBackupDir = settings.s_back;
                settingsDeleteOrig = settings.b_delete;
                b_dir = settings.b_dir;
                s_dir = settings.s_dir;
                b_dir_struct = settings.b_dir_struct;
                b_explorer = settings.b_explorer;
            }
        }