Exemplo n.º 1
0
        private void pasteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            current = Copy;
            cms[cbList.SelectedIndex] = current;
            txtChar.Text  = current.id.ToString();
            txtSN.Text    = current.shortname;
            txt1.Text     = current.unk1.ToString();
            txt2.Text     = current.unk2.ToString();
            txt3.Text     = current.unk3.ToString();
            txt4.Text     = current.unk4.ToString();
            txt5.Text     = current.unk5.ToString();
            txt6.Text     = current.Paths[0];
            txt7.Text     = current.Paths[1];
            txt8.Text     = current.Paths[2];
            textBox1.Text = current.Paths[3];
            txt9.Text     = current.Paths[4];
            txt10.Text    = current.Paths[5];
            txt11.Text    = current.Paths[6];
            txt12.Text    = current.Paths[7];
            txt13.Text    = current.Paths[8];
            current       = cms[cbList.SelectedIndex];

            int temp = cbList.SelectedIndex;

            cbList.SelectedIndex = 0;
            cbList.Items.Clear();
            for (int i = 0; i < cms.Count; i++)
            {
                cbList.Items.Add(cms[i].id.ToString("000") + " - " + cms[i].shortname);
            }
            cbList.SelectedIndex = temp;
        }
Exemplo n.º 2
0
        private void addToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Char_Model_Spec c = new Char_Model_Spec();

            c.Paths = new string[9];
            cms.Add(c);
            cbList.Items.Clear();
            for (int i = 0; i < cms.Count; i++)
            {
                cbList.Items.Add(cms[i].id.ToString("000") + " - " + cms[i].shortname);
            }

            Array.Resize <bool>(ref selective, selective.Length + 1);

            selective[selective.Length - 1] = false;
        }
Exemplo n.º 3
0
 private void cbList_SelectedIndexChanged(object sender, EventArgs e)
 {
     lck               = false;
     current           = cms[cbList.SelectedIndex];
     txtChar.Text      = current.id.ToString();
     txtSN.Text        = current.shortname;
     txt1.Text         = current.unk1.ToString();
     txt2.Text         = current.unk2.ToString();
     txt3.Text         = current.unk3.ToString();
     txt4.Text         = current.unk4.ToString();
     txt5.Text         = current.unk5.ToString();
     txt6.Text         = current.Paths[0];
     txt7.Text         = current.Paths[1];
     txt8.Text         = current.Paths[2];
     textBox1.Text     = current.Paths[3];
     txt9.Text         = current.Paths[4];
     txt10.Text        = current.Paths[5];
     txt11.Text        = current.Paths[6];
     txt12.Text        = current.Paths[7];
     txt13.Text        = current.Paths[8];
     checkBox1.Checked = selective[cbList.SelectedIndex];
     lck               = true;
 }
Exemplo n.º 4
0
 private void copyToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Copy = current;
 }