Ejemplo n.º 1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        ///
        /// </summary>
        /// ------------------------------------------------------------------------------------
        public static void Restore()
        {
            string zipFile = PaApp.OpenFileDialog("zip",
                                                  Properties.Resources.kstidFileTypesForOFD,
                                                  Properties.Resources.kstidRestoreOFDCaption);

            if (string.IsNullOrEmpty(zipFile) || !File.Exists(zipFile))
            {
                return;
            }

            try
            {
                using (RestoreDlg dlg = new RestoreDlg(zipFile))
                    dlg.ShowDialog(PaApp.MainForm);
            }
            catch { }
        }
Ejemplo n.º 2
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 ///
 /// </summary>
 /// ------------------------------------------------------------------------------------
 protected bool OnRestoreProject(object args)
 {
     RestoreDlg.Restore();
     return(true);
 }