public bool UnsavedChanges(FileStream file)
 {
     if (Player.SelectedIndex != PlayerData.FindIndex(ReadByte(file)))
     {
         return(true);
     }
     if (Class.SelectedIndex != BattlerClassData.FindIndex(ReadByte(file)))
     {
         return(true);
     }
     if (LevelInput.Text != ReadByte(file).ToString())
     {
         return(true);
     }
     if (ZFormation.SelectedIndex != ReadByte(file))
     {
         return(true);
     }
     if (XFormation.SelectedIndex != ReadByte(file))
     {
         return(true);
     }
     if (Item1.SelectedIndex != ItemData.FindIndex(ReadShort(file)))
     {
         return(true);
     }
     if (Item2.SelectedIndex != ItemData.FindIndex(ReadShort(file)))
     {
         return(true);
     }
     if (Item3.SelectedIndex != ItemData.FindIndex(ReadShort(file)))
     {
         return(true);
     }
     if (Item4.SelectedIndex != ItemData.FindIndex(ReadShort(file)))
     {
         return(true);
     }
     if (Weapon1.SelectedIndex != WeaponData.FindIndex(ReadShort(file)))
     {
         return(true);
     }
     if (Weapon2.SelectedIndex != WeaponData.FindIndex(ReadShort(file)))
     {
         return(true);
     }
     if (Weapon3.SelectedIndex != WeaponData.FindIndex(ReadShort(file)))
     {
         return(true);
     }
     if (PassiveSkill1.SelectedIndex != PassiveSkillData.FindIndex(ReadShort(file)))
     {
         return(true);
     }
     if (PassiveSkill2.SelectedIndex != PassiveSkillData.FindIndex(ReadShort(file)))
     {
         return(true);
     }
     return(false);
 }
 public void Read(FileStream file)
 {
     Player.SelectedIndex        = PlayerData.FindIndex(ReadByte(file));
     Class.SelectedIndex         = BattlerClassData.FindIndex(ReadByte(file));
     LevelInput.Text             = ReadByte(file).ToString();
     ZFormation.SelectedIndex    = ReadByte(file);
     XFormation.SelectedIndex    = ReadByte(file);
     Item1.SelectedIndex         = ItemData.FindIndex(ReadShort(file));
     Item2.SelectedIndex         = ItemData.FindIndex(ReadShort(file));
     Item3.SelectedIndex         = ItemData.FindIndex(ReadShort(file));
     Item4.SelectedIndex         = ItemData.FindIndex(ReadShort(file));
     Weapon1.SelectedIndex       = WeaponData.FindIndex(ReadShort(file));
     Weapon2.SelectedIndex       = WeaponData.FindIndex(ReadShort(file));
     Weapon3.SelectedIndex       = WeaponData.FindIndex(ReadShort(file));
     PassiveSkill1.SelectedIndex = PassiveSkillData.FindIndex(ReadShort(file));
     PassiveSkill2.SelectedIndex = PassiveSkillData.FindIndex(ReadShort(file));
 }