private void protoList_DoubleClick(object sender, EventArgs e)
        {
            Object obj = protoList.SelectedObject;

            if (obj is KeyValuePair <int, ProtoCritter> )
            {
                KeyValuePair <int, ProtoCritter> pair = (KeyValuePair <int, ProtoCritter>)obj;
                frmProtoCritterEditor            form = new frmProtoCritterEditor(this, pair.Key);
                form.ShowDialog();
            }
        }
 private void button3_Click(object sender, EventArgs e)
 {
     if (rdbAssignFree.Checked)
     {
         int newProto = ProtoManager.AddProto();
         RefreshList();
         frmProtoCritterEditor form = new frmProtoCritterEditor(this, newProto, true);
         form.Show();
     }
     else
     {
         if (ProtoManager.AddProto((int)numPid.Value))
         {
             RefreshList();
             frmProtoCritterEditor form = new frmProtoCritterEditor(this, (int)numPid.Value, true);
             form.Show();
         }
     }
 }
Esempio n. 3
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (rdbAssignFree.Checked)
     {
         int newProto = ProtoManager.AddProto();
         RefreshList();
         frmProtoCritterEditor form = new frmProtoCritterEditor(this, newProto, true);
         form.Show();
     }
     else
     {
         if (ProtoManager.AddProto((int)numPid.Value))
         {
             RefreshList();
             frmProtoCritterEditor form = new frmProtoCritterEditor(this, (int)numPid.Value, true);
             form.Show();
         }
     }
 }
 public frmProtoCritterRawEditor(frmProtoCritterEditor parent, ProtoCritter pc)
 {
     this.pc = pc;
     this.parent = parent;
     InitializeComponent();
 }
 private void lstNpcs_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     EncounterNpc Npc = (EncounterNpc)lstNpcs.SelectedObject;
     if ((Npc == null) || (Npc.Proto.Id == 0))
         return;
     frmProtoCritterEditor critterEdit = new frmProtoCritterEditor(null, Npc.Proto.Id);
     critterEdit.ShowDialog();
 }
Esempio n. 6
0
 public frmProtoCritterRawEditor(frmProtoCritterEditor parent, ProtoCritter pc)
 {
     this.pc     = pc;
     this.parent = parent;
     InitializeComponent();
 }
Esempio n. 7
0
 private void protoList_DoubleClick(object sender, EventArgs e)
 {
     Object obj = protoList.SelectedObject;
     if (obj is KeyValuePair<int, ProtoCritter>)
     {
         KeyValuePair<int, ProtoCritter> pair = (KeyValuePair<int, ProtoCritter>)obj;
         frmProtoCritterEditor form = new frmProtoCritterEditor(this,pair.Key);
         form.ShowDialog();
     }
 }