Remove() public static method

public static Remove ( int n ) : void
n int
return void
Ejemplo n.º 1
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (deleteOnExit)
     {
         ProtoManager.Remove(this.pc.Id);
     }
     if (this.parent != null)
     {
         parent.RefreshList();
     }
     this.Close();
 }
Ejemplo n.º 2
0
        private void button4_Click(object sender, EventArgs e)
        {
            ArrayList objs = (ArrayList)protoList.SelectedObjects;

            foreach (Object obj in objs)
            {
                if (obj is KeyValuePair <int, ProtoCritter> )
                {
                    KeyValuePair <int, ProtoCritter> pair = (KeyValuePair <int, ProtoCritter>)obj;
                    ProtoManager.Remove(pair.Key);
                }
            }
            if (objs.Count > 0)
            {
                RefreshList();
            }
        }