Example #1
0
 private void NewQSDMenuItem_Click(object sender, EventArgs e)
 {
     ShinROSE_Dev_Workshop.QSD.AIPEditorForm aIPEditorForm = new ShinROSE_Dev_Workshop.QSD.AIPEditorForm();
     aIPEditorForm.MdiParent = this;
     aIPEditorForm.Show();
     aIPEditorForm.Text = "QSD : ";
 }
Example #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;
                }
                }
            }
        }
Example #3
0
 private void extractFileAndOpenToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.treeView.SelectedNode.Nodes.Count == 0)
     {
         string[] array = this.StatutLabel.Text.Split(new char[]
         {
             '\\'
         });
         this.saveFileDialog.FileName = array[array.Length - 1];
         string[] array2 = array[array.Length - 1].Split(new char[]
         {
             '.'
         });
         this.saveFileDialog.Filter = "fichier " + array2[1] + " |*." + array2[1];
         if (this.saveFileDialog.ShowDialog() == DialogResult.OK)
         {
             this.fileextract(this.saveFileDialog.FileName);
         }
         string text = array2[1].ToUpper();
         switch (text)
         {
         case "STB":
         {
             STBForm sTBForm = new STBForm();
             sTBForm.MdiParent = base.MdiParent;
             sTBForm.Show();
             sTBForm.BringToFront();
             sTBForm.Text = "STB : \"" + this.saveFileDialog.FileName + "\"";
             sTBForm.Load_STB(this.saveFileDialog.FileName);
             break;
         }
         case "LTB":
         {
             LTBForm lTBForm = new LTBForm();
             lTBForm.MdiParent = base.MdiParent;
             lTBForm.Show();
             lTBForm.BringToFront();
             lTBForm.Text = "LTB : \"" + this.saveFileDialog.FileName + "\"";
             lTBForm.Load_LTB(this.saveFileDialog.FileName);
             break;
         }
         case "STL":
         {
             STLForm sTLForm = new STLForm();
             sTLForm.MdiParent = base.MdiParent;
             sTLForm.Show();
             sTLForm.BringToFront();
             sTLForm.Text = "STL : \"" + this.saveFileDialog.FileName + "\"";
             sTLForm.Load_STL(this.saveFileDialog.FileName);
             break;
         }
         case "QSD":
         {
             ShinROSE_Dev_Workshop.QSD.AIPEditorForm aIPEditorForm = new ShinROSE_Dev_Workshop.QSD.AIPEditorForm();
             aIPEditorForm.MdiParent = base.MdiParent;
             aIPEditorForm.Show();
             aIPEditorForm.BringToFront();
             aIPEditorForm.Text = "QSD : \"" + this.saveFileDialog.FileName + "\"";
             aIPEditorForm.load_qsd_info(this.saveFileDialog.FileName);
             break;
         }
         case "AIP":
         {
             ShinROSE_Dev_Workshop.AIP.AIPEditorForm aIPEditorForm2 = new ShinROSE_Dev_Workshop.AIP.AIPEditorForm();
             aIPEditorForm2.MdiParent = base.MdiParent;
             aIPEditorForm2.Show();
             aIPEditorForm2.BringToFront();
             aIPEditorForm2.Text = "AIP : \"" + this.saveFileDialog.FileName + "\"";
             aIPEditorForm2.load_aip_info(this.saveFileDialog.FileName);
             break;
         }
         case "TSI":
         {
             TSIForm tSIForm = new TSIForm();
             tSIForm.MdiParent = base.MdiParent;
             tSIForm.Show();
             tSIForm.BringToFront();
             tSIForm.Text = "TSI : \"" + this.saveFileDialog.FileName + "\"";
             tSIForm.load_tsi(this.saveFileDialog.FileName);
             break;
         }
         case "CHR":
         {
             CHRForm cHRForm = new CHRForm();
             cHRForm.MdiParent = base.MdiParent;
             cHRForm.Show();
             cHRForm.BringToFront();
             cHRForm.Text = "CHR : \"" + this.saveFileDialog.FileName + "\"";
             cHRForm.load_chr(this.saveFileDialog.FileName);
             break;
         }
         }
     }
 }
Example #4
0
        private void extractFileAndOpenToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.treeView.SelectedNode.Nodes.Count == 0)
            {
                string[] array = this.StatutLabel.Text.Split(new char[]
                {
                    '\\'
                });
                this.saveFileDialog.FileName = array[array.Length - 1];
                string[] array2 = array[array.Length - 1].Split(new char[]
                {
                    '.'
                });
                this.saveFileDialog.Filter = "fichier " + array2[1] + " |*." + array2[1];
                if (this.saveFileDialog.ShowDialog() == DialogResult.OK)
                {
                    this.fileextract(this.saveFileDialog.FileName);
                }
                string text = array2[1].ToUpper();
                switch (text)
                {
                case "STB":
                {
                    STBForm sTBForm = new STBForm();
                    sTBForm.MdiParent = base.MdiParent;
                    sTBForm.Show();
                    sTBForm.BringToFront();
                    sTBForm.Text = "STB : \"" + this.saveFileDialog.FileName + "\"";
                    sTBForm.Load_STB(this.saveFileDialog.FileName);
                    break;
                }

                case "LTB":
                {
                    LTBForm lTBForm = new LTBForm();
                    lTBForm.MdiParent = base.MdiParent;
                    lTBForm.Show();
                    lTBForm.BringToFront();
                    lTBForm.Text = "LTB : \"" + this.saveFileDialog.FileName + "\"";
                    lTBForm.Load_LTB(this.saveFileDialog.FileName);
                    break;
                }

                case "STL":
                {
                    STLForm sTLForm = new STLForm();
                    sTLForm.MdiParent = base.MdiParent;
                    sTLForm.Show();
                    sTLForm.BringToFront();
                    sTLForm.Text = "STL : \"" + this.saveFileDialog.FileName + "\"";
                    sTLForm.Load_STL(this.saveFileDialog.FileName);
                    break;
                }

                case "QSD":
                {
                    ShinROSE_Dev_Workshop.QSD.AIPEditorForm aIPEditorForm = new ShinROSE_Dev_Workshop.QSD.AIPEditorForm();
                    aIPEditorForm.MdiParent = base.MdiParent;
                    aIPEditorForm.Show();
                    aIPEditorForm.BringToFront();
                    aIPEditorForm.Text = "QSD : \"" + this.saveFileDialog.FileName + "\"";
                    aIPEditorForm.load_qsd_info(this.saveFileDialog.FileName);
                    break;
                }

                case "AIP":
                {
                    ShinROSE_Dev_Workshop.AIP.AIPEditorForm aIPEditorForm2 = new ShinROSE_Dev_Workshop.AIP.AIPEditorForm();
                    aIPEditorForm2.MdiParent = base.MdiParent;
                    aIPEditorForm2.Show();
                    aIPEditorForm2.BringToFront();
                    aIPEditorForm2.Text = "AIP : \"" + this.saveFileDialog.FileName + "\"";
                    aIPEditorForm2.load_aip_info(this.saveFileDialog.FileName);
                    break;
                }

                case "TSI":
                {
                    TSIForm tSIForm = new TSIForm();
                    tSIForm.MdiParent = base.MdiParent;
                    tSIForm.Show();
                    tSIForm.BringToFront();
                    tSIForm.Text = "TSI : \"" + this.saveFileDialog.FileName + "\"";
                    tSIForm.load_tsi(this.saveFileDialog.FileName);
                    break;
                }

                case "CHR":
                {
                    CHRForm cHRForm = new CHRForm();
                    cHRForm.MdiParent = base.MdiParent;
                    cHRForm.Show();
                    cHRForm.BringToFront();
                    cHRForm.Text = "CHR : \"" + this.saveFileDialog.FileName + "\"";
                    cHRForm.load_chr(this.saveFileDialog.FileName);
                    break;
                }
                }
            }
        }
Example #5
0
 private void NewQSDMenuItem_Click(object sender, EventArgs e)
 {
     ShinROSE_Dev_Workshop.QSD.AIPEditorForm aIPEditorForm = new ShinROSE_Dev_Workshop.QSD.AIPEditorForm();
     aIPEditorForm.MdiParent = this;
     aIPEditorForm.Show();
     aIPEditorForm.Text = "QSD : ";
 }
Example #6
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;
         }
         }
     }
 }