Esempio n. 1
0
 // ZIPファイルを展開する
 private void extractZipToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Cursor.Current = Cursors.WaitCursor;
     try
     {
         GenericZipTreeNode node = (GenericZipTreeNode)lastSelectTreeNode;
         if (TDCGExplorer.InstallZipFile(node))
         {
             MessageBox.Show(TextResource.ExtractSuccess, TextResource.ExtractSuccessCaption, MessageBoxButtons.OK);
         }
         else
         {
             MessageBox.Show(TextResource.ExtractFailure,TextResource.ExtractFailureCaption, MessageBoxButtons.OK);
         }
     }
     catch (System.InvalidCastException ex)
     {
         MessageBox.Show(TextResource.ZipFileOnly, TextResource.Error, MessageBoxButtons.OK);
         Debug.WriteLine(ex.Message);
     }
     catch (Exception exception)
     {
         TDCGExplorer.SetToolTips(TextResource.Error+ ":" + exception.Message);
         Debug.WriteLine(exception.Message);
     }
     Cursor.Current = Cursors.Default;
 }