Ejemplo n.º 1
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();
            try
            {
                p.pcc = new PCCObject(CurrentFile);
                p.SetView(2);
                p.RefreshView();
                p.InitStuff();
                p.listBox1.SelectedIndex = l;
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error:\n" + ex.Message);
            }
        }
Ejemplo n.º 2
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();
            try
            {
                p.pcc = new PCCObject(currentPCC);
                p.SetView(2);
                p.RefreshView();
                p.InitStuff();
                p.listBox1.SelectedIndex = l;
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error:\n" + ex.Message);
            }
        }
Ejemplo n.º 3
0
        void openInPCCEd_Click(object sender, EventArgs e)
        {
            PCCEditor2 p = new PCCEditor2();

            //p.MdiParent = Form.MdiParent;
            p.WindowState = FormWindowState.Maximized;
            p.Show();
            p.pcc = new PCCObject(pcc.pccFileName);
            p.SetView(2);
            p.RefreshView();
            p.InitStuff();
            p.listBox1.SelectedIndex = index;
        }
Ejemplo n.º 4
0
        void openInPCCEd_Click(object sender, EventArgs e)
        {
            PCCEditor2 p = new PCCEditor2();

            //p.MdiParent = Form.MdiParent;
            p.WindowState = FormWindowState.Maximized;
            p.Show();
            try
            {
                p.pcc = new PCCObject(pcc.pccFileName);
                p.SetView(2);
                p.RefreshView();
                p.InitStuff();
                p.listBox1.SelectedIndex = index;
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error:\n" + ex.Message);
            }
        }
Ejemplo n.º 5
0
        void openInPCCEd_Click(object sender, EventArgs e)
        {

            PCCEditor2 p = new PCCEditor2();
            //p.MdiParent = Form.MdiParent;
            p.WindowState = FormWindowState.Maximized;
            p.Show();
            p.pcc = new PCCObject(pcc.pccFileName);
            p.SetView(2);
            p.RefreshView();
            p.InitStuff();
            p.listBox1.SelectedIndex = index - 1;
        }