예제 #1
0
 private void newIDXMenuItem_Click(object sender, EventArgs e)
 {
     MainForm mainForm = new MainForm();
     mainForm.MdiParent = this;
     mainForm.Show();
     mainForm.Text = "IDX : ";
 }
예제 #2
0
 private void Load_ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.openFileDialog.ShowDialog() == DialogResult.OK)
     {
         string[] array = this.openFileDialog.FileName.Split(new char[]
         {
             '.'
         });
         string text = array[array.Length - 1].ToUpper();
         switch (text)
         {
         case "STB":
         {
             STBForm sTBForm = new STBForm();
             sTBForm.MdiParent = this;
             sTBForm.Show();
             sTBForm.BringToFront();
             sTBForm.Text = "STB : \"" + this.openFileDialog.FileName + "\"";
             sTBForm.Load_STB(this.openFileDialog.FileName);
             break;
         }
         case "LTB":
         {
             LTBForm lTBForm = new LTBForm();
             lTBForm.MdiParent = this;
             lTBForm.Show();
             lTBForm.BringToFront();
             lTBForm.Text = "LTB : \"" + this.openFileDialog.FileName + "\"";
             lTBForm.Load_LTB(this.openFileDialog.FileName);
             break;
         }
         case "STL":
         {
             STLForm sTLForm = new STLForm();
             sTLForm.MdiParent = this;
             sTLForm.Show();
             sTLForm.BringToFront();
             sTLForm.Text = "STL : \"" + this.openFileDialog.FileName + "\"";
             sTLForm.Load_STL(this.openFileDialog.FileName);
             break;
         }
         case "IDX":
         {
             MainForm mainForm = new MainForm();
             mainForm.MdiParent = this;
             mainForm.OpenFileDialog.FileName = this.openFileDialog.FileName;
             mainForm.Show();
             mainForm.BringToFront();
             mainForm.Text = "IDX : \"" + this.openFileDialog.FileName + "\"";
             mainForm.load_VFS(this.openFileDialog.FileName);
             break;
         }
         case "QSD":
         {
             ShinROSE_Dev_Workshop.QSD.AIPEditorForm aIPEditorForm = new ShinROSE_Dev_Workshop.QSD.AIPEditorForm();
             aIPEditorForm.MdiParent = this;
             aIPEditorForm.Show();
             aIPEditorForm.BringToFront();
             aIPEditorForm.Text = "QSD : \"" + this.openFileDialog.FileName + "\"";
             aIPEditorForm.load_qsd_info(this.openFileDialog.FileName);
             break;
         }
         case "AIP":
         {
             ShinROSE_Dev_Workshop.AIP.AIPEditorForm aIPEditorForm2 = new ShinROSE_Dev_Workshop.AIP.AIPEditorForm();
             aIPEditorForm2.MdiParent = this;
             aIPEditorForm2.Show();
             aIPEditorForm2.BringToFront();
             aIPEditorForm2.Text = "AIP : \"" + this.openFileDialog.FileName + "\"";
             aIPEditorForm2.load_aip_info(this.openFileDialog.FileName);
             break;
         }
         case "TSI":
         {
             TSIForm tSIForm = new TSIForm();
             tSIForm.MdiParent = this;
             tSIForm.Show();
             tSIForm.BringToFront();
             tSIForm.Text = "TSI : \"" + this.openFileDialog.FileName + "\"";
             tSIForm.load_tsi(this.openFileDialog.FileName);
             break;
         }
         case "CHR":
         {
             CHRForm cHRForm = new CHRForm();
             cHRForm.MdiParent = this;
             cHRForm.Show();
             cHRForm.BringToFront();
             cHRForm.Text = "CHR : \"" + this.openFileDialog.FileName + "\"";
             cHRForm.load_chr(this.openFileDialog.FileName);
             break;
         }
         case "ZSC":
         {
             ZSCForm zSCForm = new ZSCForm();
             zSCForm.MdiParent = this;
             zSCForm.Show();
             zSCForm.BringToFront();
             zSCForm.Text = "ZSC : \"" + this.openFileDialog.FileName + "\"";
             zSCForm.load_zsc(this.openFileDialog.FileName);
             break;
         }
         }
     }
 }