예제 #1
0
파일: RDForm.cs 프로젝트: Truthkey/OpenKH
 private void bBatExp_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     BEXForm bEXForm = new BEXForm(this);
     bEXForm.Show();
 }
예제 #2
0
파일: RDForm.cs 프로젝트: Truthkey/OpenKH
 private void RDForm_DragDrop(object sender, DragEventArgs e)
 {
     string[] array = (string[])e.Data.GetData(DataFormats.FileDrop);
     if (array != null)
     {
         if (array.Length >= 2)
         {
             switch (MessageBox.Show(this, "Would you try batch export instead of viewer?", Application.ProductName, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation))
             {
             case DialogResult.Yes:
             {
                 BEXForm bEXForm = new BEXForm(this);
                 string[] array2 = array;
                 for (int i = 0; i < array2.Length; i++)
                 {
                     string fp = array2[i];
                     bEXForm.Addfp(fp);
                 }
                 bEXForm.Show();
                 return;
             }
             case DialogResult.No:
                 break;
             default:
                 return;
             }
         }
         string[] array3 = array;
         for (int j = 0; j < array3.Length; j++)
         {
             string path = array3[j];
             string key;
             switch (key = Path.GetExtension(path).ToLowerInvariant())
             {
             case ".map":
             case ".mdlx":
             case ".apdx":
             case ".fm":
             case ".2dd":
             case ".bar":
             case ".2ld":
             case ".mset":
             case ".pax":
             case ".wd":
             case ".vsb":
             case ".ard":
             case ".imd":
             case ".mag":
                 this.fpld = path;
                 Application.Idle += new EventHandler(this.Application_Idle);
                 break;
             }
         }
     }
 }