Inheritance: System.Windows.Forms.Form
コード例 #1
0
        private void directAFCReplaceToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (w.IsPCCStored)
            {
                MessageBox.Show("Cannot do an afc replace on a pcc-stored sound.");
                return;
            }
            DirectReplace dr = new DirectReplace();

            dr.MdiParent = this.MdiParent;
            dr.Show();
            dr.WindowState = FormWindowState.Maximized;
            int n = listBox1.SelectedIndex;

            if (n == -1)
            {
                return;
            }
            int          index = ObjectIndexes[n];
            IExportEntry ex    = pcc.Exports[index];

            if (ex.ClassName == "WwiseStream")
            {
                dr.textBox3.Text = w.DataOffset.ToString();
                dr.textBox2.Text = w.FileName + ".afc";
            }
        }
コード例 #2
0
ファイル: Soundplorer.cs プロジェクト: Dybuk/ME3Explorer
 private void directAFCReplaceToolStripMenuItem_Click(object sender, EventArgs e)
 {
     DirectReplace dr = new DirectReplace();
     dr.MdiParent = this.MdiParent;
     dr.Show();
     dr.WindowState = FormWindowState.Maximized;
     int n = listBox1.SelectedIndex;
     if (n == -1)
         return;
     int index = ObjectIndexes[n];
     PCCObject.ExportEntry ex = pcc.Exports[index];
     if (ex.ClassName == "WwiseStream")
     {
         dr.textBox3.Text = w.DataOffset.ToString();
         dr.textBox2.Text = w.FileName + ".afc";
     }
 }
コード例 #3
0
 private void directAFCReplaceToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (w.IsPCCStored)
     {
         MessageBox.Show("Cannot do an afc replace on a pcc-stored sound.");
         return;
     }
     DirectReplace dr = new DirectReplace();
     dr.MdiParent = this.MdiParent;
     dr.Show();
     dr.WindowState = FormWindowState.Maximized;
     int n = listBox1.SelectedIndex;
     if (n == -1)
         return;
     int index = ObjectIndexes[n];
     IExportEntry ex = pcc.Exports[index];
     if (ex.ClassName == "WwiseStream")
     {
         dr.textBox3.Text = w.DataOffset.ToString();
         dr.textBox2.Text = w.FileName + ".afc";
     }
 }