Beispiel #1
0
 private void btnBackupProgram_Click(object sender, EventArgs e)
 {
     try
     {
         btnBackupProgram.Enabled = false;
         Code.ProgramBackup backHandler = new Code.ProgramBackup();
         backHandler.BackupFiled += new Code.EventHanleBackup(backHandler_BackupFiled);
         backHandler.BackupOver  += new EventHandler(backHandler_BackupOver);
         backHandler.Progress    += new Code.EventHanleBackup(backHandler_Progress);
         progressBar1.Visible     = true;
         myThread = new Thread(new ThreadStart(backHandler.Backup));
         myThread.Start();
     }
     catch (Exception ex)
     {
         lblBackingFileName.Text = ex.Message;
     }
 }
Beispiel #2
0
 private void button25_Click(object sender, EventArgs e)
 {
     Code.ProgramBackup backHandler = new Code.ProgramBackup();
     MessageBox.Show(backHandler.SeatFileNoRead());
 }