Esempio n. 1
0
        private void BotonRestaurar_Click(object sender, System.EventArgs e)
        {
            if (Listado.SelectedItems.Count > 0 && Listado.SelectedItems[0] != null)
            {
                string NombreCarpeta = Listado.SelectedItems[0].Text;
                string FechaYHora    = Listado.SelectedItems[0].SubItems[2].Text;

                WinMain.Backup.Restore Pregunta = new WinMain.Backup.Restore();
                Pregunta.lblFecha.Text = FechaYHora;
                if (Pregunta.ShowDialog() == DialogResult.OK)
                {
                    this.BackupManager.Restore(NombreCarpeta);
                    Lfx.Workspace.Master.RunTime.Execute("REBOOT");
                    this.Close();
                }
            }
        }
Esempio n. 2
0
                private void BotonRestaurar_Click(object sender, System.EventArgs e)
                {
                        if (Listado.SelectedItems.Count > 0 && Listado.SelectedItems[0] != null) {
                                string NombreCarpeta = Listado.SelectedItems[0].Text;
                                string FechaYHora = Listado.SelectedItems[0].SubItems[2].Text;

                                WinMain.Backup.Restore Pregunta = new WinMain.Backup.Restore();
                                Pregunta.lblFecha.Text = FechaYHora;
                                if (Pregunta.ShowDialog() == DialogResult.OK) {
                                        this.BackupManager.Restore(NombreCarpeta);
                                        Lfx.Workspace.Master.RunTime.Execute("REBOOT");
                                        this.Close();
                                }
                        }
                }