Ejemplo n.º 1
0
 private void DisposeBackupManager()
 {
     if (_BackupManager != null)
     {
         _BackupManager.Stop();
         _BackupManager.Dispose();
         _BackupManager = null;
     }
 }
Ejemplo n.º 2
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            lstBackup.Items.Clear();
            try
            {
                DisposeBackupManager();

                _BackupManager = CeBackupServerManager.Instance;

                _BackupManager.BackupEvent  += BackupFunction;
                _BackupManager.CleanupEvent += CleanupFunction;

                _BackupManager.Start("cetest.ini");

                lblStatus.Text = "CeBackup Started OK";
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString(), "Error");
            }
        }