private void miSpawn_Click(object sender, System.EventArgs e) { GetDatafile msg = new GetDatafile(); Pandora.Profile.Server.FillBoxMessage(msg); msg.DataType = BoxDatafile.SpawnData; BoxServerForm form = new BoxServerForm(msg); if (form.ShowDialog() == DialogResult.OK) { ReturnDatafile data = form.Response as ReturnDatafile; if (data != null) { SpawnData sdata = data.Data as SpawnData; if (sdata != null) { SpawnData.SpawnProvider = sdata; Pandora.Profile.Travel.ShowSpawns = true; SpawnData.SpawnProvider.RefreshSpawns(); } } } }
private void miBoxData_Click(object sender, System.EventArgs e) { GetDatafile msg = new GetDatafile(); Pandora.Profile.Server.FillBoxMessage(msg); msg.DataType = BoxDatafile.BoxData; BoxServerForm form = new BoxServerForm(msg); if (form.ShowDialog(this) == DialogResult.OK) { ReturnDatafile data = form.Response as ReturnDatafile; if (data != null) { BoxData bdata = data.Data as BoxData; if (bdata != null) { Pandora.BoxData = bdata; Pandora.BoxForm.UpdateBoxData(); Pandora.BoxData.Save(); } } } }
private void miProps_Click(object sender, System.EventArgs e) { GetDatafile msg = new GetDatafile(); Pandora.Profile.Server.FillBoxMessage(msg); msg.DataType = BoxDatafile.PropsData; BoxServerForm form = new BoxServerForm(msg); if (form.ShowDialog() == DialogResult.OK) { ReturnDatafile data = form.Response as ReturnDatafile; if (data != null) { PropsData props = data.Data as PropsData; if (props != null) { PropsData.Props = props; } } } }