Пример #1
0
        //esco con backup
        private void buttonBackupExit_Click(object sender, RoutedEventArgs e)
        {
            BackUpFile bkf = new BackUpFile();
            Hashtable  ht  = new Hashtable();

            //Backup Revisoft
            if (App.AppSetupAddioBackupRevisoft)
            {
                bkf.BackupPersonalizzato = false;
                bkf.SetBackUp(ht, -1);
            }

            //Backup Personalizzato
            if (App.AppSetupBackupPersonalizzato)
            {
                bkf.BackupPersonalizzato = true;
                bkf.SetBackUp(ht, -1);
            }



            //esco
            _ChiudiRevisoft = true;
            base.Close();
        }
Пример #2
0
        private void btn_BackUp_Click(object sender, RoutedEventArgs e)
        {
            //richiesta conferma
            Utilities u = new Utilities();

            if (MessageBoxResult.No == u.ConfermaBackUp())
            {
                return;
            }


            //backup
            Hashtable ht = new Hashtable();

            bf.SetBackUp(ht, -1);
            reload_lstRestore();


            MessageBox.Show("Salvataggio avvenuto con successo");
        }