Exemple #1
0
        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();
                    }
                }
            }
        }
Exemple #2
0
        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();
                    }
                }
            }
        }
Exemple #3
0
        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;
                    }
                }
            }
        }