void orderUpButtonClick(object sender, EventArgs e) { int i = argumentOrder.SelectedIndex; InstanceArgument temp = instance.ArgumentOrder[i]; instance.ArgumentOrder[i] = instance.ArgumentOrder[i - 1]; instance.ArgumentOrder[i - 1] = temp; updateListBox(); argumentOrder.SelectedIndex = i - 1; updateOrderButton(); updateInstanceId(); }
public Instance(string id) { ArgumentOrder = new InstanceArgument[3]; parseId(id); }
public Instance(string id, string worldName) { ArgumentOrder = new InstanceArgument[3]; parseId(id); this.WorldName = worldName; }