Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            OpenFileDialog tempOpen = new OpenFileDialog();

            tempOpen.DefaultExt = "*.sav";
            tempOpen.Filter     = "WillowSaveGame(*.sav)|*.sav";

            if (tempOpen.ShowDialog() == DialogResult.OK)
            {
                XBoxIDFilePath.Text = tempOpen.FileName;
                try
                {
                    ID = new XBoxUniqueID(tempOpen.FileName);
                    ProfileBox.Text = ID.ProfileID.ToString("X");
                    DeviceBox.Text  = BitConverter.ToString(ID.DeviceID);
                    DeviceBox.Text  = DeviceBox.Text.Replace("-", "");
                }
                catch
                {
                    ID = null;
                    MessageBox.Show("The file is not a valid Xbox 360 savegame file.");
                    return;
                }
            }
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            OpenFileDialog tempOpen = new OpenFileDialog();
            tempOpen.DefaultExt = "*.sav";
            tempOpen.Filter = "WillowSaveGame(*.sav)|*.sav";

            if (tempOpen.ShowDialog() == DialogResult.OK)
            {
                XBoxIDFilePath.Text = tempOpen.FileName;
                try
                {
                    ID = new XBoxUniqueID(tempOpen.FileName);
                    ProfileBox.Text = ID.ProfileID.ToString("X");
                    DeviceBox.Text = BitConverter.ToString(ID.DeviceID);
                    DeviceBox.Text = DeviceBox.Text.Replace("-", "");
                }
                catch
                {
                    ID = null;
                    MessageBox.Show("The file is not a valid Xbox 360 savegame file.");
                    return;
                }
            }
        }