Exemple #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;
 }
Exemple #2
0
 // アノテーションを編集.
 private void EditAnnotationToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         GenericZipTreeNode node = lastSelectTreeNode as GenericZipTreeNode;
         if (node != null)
         {
             node.DoEditAnnotation();
         }
         else
         {
             MessageBox.Show(TextResource.ZipFileOnly,TextResource.Error, MessageBoxButtons.OK);
         }
     }
     catch (Exception exception)
     {
         TDCGExplorer.SetToolTips("error:" + exception.Message);
         Debug.WriteLine(exception.Message);
     }
 }
Exemple #3
0
        private void LookupMODRefToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (TDCGExplorer.BusyTest()) return;

            try
            {
                GenericZipTreeNode node = lastSelectTreeNode as GenericZipTreeNode;
                if (node != null)
                {
                    AssignTagPageControl(new MODRefPage(node.Entry));
                }
                else
                {
                    MessageBox.Show(TextResource.ZipFileOnly, TextResource.Error, MessageBoxButtons.OK);
                }
            }
            catch (Exception exception)
            {
                TDCGExplorer.SetToolTips(TextResource.Error + ":" + exception.Message);
                Debug.WriteLine(exception.Message);
            }
        }
Exemple #4
0
 // 前提zipファイルを展開する.
 private void ExtractPreferZipToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Cursor.Current = Cursors.WaitCursor;
     try
     {
         GenericZipTreeNode node = lastSelectTreeNode as GenericZipTreeNode;
         if (node != null)
         {
             TDCGExplorer.InstallPreferZip(node);
         }
         else
         {
             MessageBox.Show(TextResource.ZipFileOnly, TextResource.Error, MessageBoxButtons.OK);
         }
     }
     catch (Exception exception)
     {
         TDCGExplorer.SetToolTips("error:" + exception.Message);
         Debug.WriteLine(exception.Message);
     }
     Cursor.Current = Cursors.Default;
 }