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; }
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; }
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; }