示例#1
0
 private void addPlotVarDescriptionToolStripMenuItem_Click(object sender, EventArgs e)
 {
     PlotVarEditor ed = new PlotVarEditor();
     ed.MdiParent = this.MdiParent;
     ed.Show();
     ed.WindowState = FormWindowState.Maximized;
     ed.parent = this;
     ed.version = MEVersion;
 }
示例#2
0
        private void addPlotVarDescriptionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PlotVarEditor ed = new PlotVarEditor();

            ed.MdiParent = this.MdiParent;
            ed.Show();
            ed.WindowState = FormWindowState.Maximized;
            ed.parent      = this;
            ed.version     = MEVersion;
        }
示例#3
0
        private void editToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            int n = listBox1.SelectedIndex;

            if (n == -1)
            {
                return;
            }
            PlotVarEntry entry = new PlotVarEntry();

            switch (MEVersion)
            {
            case 0:
                entry = database.ME1[n];
                break;

            case 1:
                entry = database.ME2[n];
                break;

            case 2:
                entry = database.ME3[n];
                break;
            }
            PlotVarEditor ed = new PlotVarEditor();

            ed.MdiParent = this.MdiParent;
            ed.Show();
            ed.rtb1.Text   = "{" + entry.ID + ", \"" + TypeToString(entry.type) + "\", \"" + entry.Desc + "\"};";
            ed.WindowState = FormWindowState.Maximized;
            ed.parent      = this;
            ed.version     = MEVersion;
            ed.index       = n;
            ed.toolStripButton1.Visible = false;
            ed.toolStripButton2.Visible = true;
        }
示例#4
0
        private void editToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            int n = listBox1.SelectedIndex;
            if (n == -1)
                return;
            PlotVarEntry entry = new PlotVarEntry();
            switch (MEVersion)
            {
                case 0:
                    entry = database.ME1[n];
                    break;
                case 1:
                    entry = database.ME2[n];
                    break;
                case 2:
                    entry = database.ME3[n];
                    break;

            }
            PlotVarEditor ed = new PlotVarEditor();
            ed.MdiParent = this.MdiParent;
            ed.Show();
            ed.rtb1.Text = "{" + entry.ID + ", \"" + TypeToString(entry.type) + "\", \"" + entry.Desc + "\"};";
            ed.WindowState = FormWindowState.Maximized;
            ed.parent = this;
            ed.version = MEVersion;
            ed.index = n;
            ed.toolStripButton1.Visible = false;
            ed.toolStripButton2.Visible = true;
        }