Ejemplo n.º 1
0
 private void openInPCCEditorToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (listView1.SelectedItems.Count == 0)
         return;
     ListViewItem item = listView1.SelectedItems[0];
     TreeNode t = TV1.SelectedNode;
     if (t == null)
         return;
     int l = Convert.ToInt32(item.Name);
     PCCEditor2 p = new PCCEditor2();
     p.MdiParent = this.MdiParent;
     p.WindowState = FormWindowState.Maximized;
     p.Show();
     p.pcc = new PCCObject(currentPCC);
     p.SetView(2);
     p.RefreshView();
     p.InitStuff();
     p.listBox1.SelectedIndex = l;
 }
Ejemplo n.º 2
0
 private void openInPCCEditorToolStripMenuItem_Click(object sender, EventArgs e)
 {
     int l = CurrentObjects[listBox1.SelectedIndex];
     if (l == -1)
         return;
     PCCEditor2 p = new PCCEditor2();
     p.MdiParent = this.MdiParent;
     p.WindowState = FormWindowState.Maximized;
     p.Show();
     p.pcc = new PCCObject(CurrentFile);
     p.SetView(2);
     p.RefreshView();
     p.InitStuff();
     p.listBox1.SelectedIndex = l;
 }