Пример #1
0
        void RefreshSaveData()
        {
            List<String> list;

            saveDataList.Items.Clear();

            try
            {
                list = QuerySaveDatas(savePath);
            }
            catch
            {
                return;
            }

            foreach (var save in list)
            {
                try
                {
                    EDAOSaveData savedata = new EDAOSaveData(save + "\\savedata.dat");

                    var item = new SaveDataListItem(savedata);
                    this.saveDataList.Items.Add(item);
                }
                catch
                {
                }
            }
        }
Пример #2
0
        void RefreshSaveData()
        {
            List <String> list;

            saveDataList.Items.Clear();

            try
            {
                list = QuerySaveDatas(GlobalData.SavePath);
            }
            catch
            {
                return;
            }

            foreach (var save in list)
            {
                try
                {
                    EDAOSaveData savedata = new EDAOSaveData(save + "\\savedata.dat");

                    var item = new SaveDataListItem(savedata);
                    this.saveDataList.Items.Add(item);
                }
                catch
                {
                }
            }
        }
Пример #3
0
        override public void Refresh()
        {
            EDAOSaveData saveData = GlobalData.CurrentSaveData;

            bonusBoxList.Items.Clear();

            foreach (var pair in ItemIdMap)
            {
                if (saveData == null)
                {
                    pair.Value.Opened = false;
                }
                else
                {
                    pair.Value.Opened = saveData.TestScenaFlag(pair.Value.Offset, pair.Value.Bit);
                }

                InsertItemInfo(pair.Value);
            }

            if (lastHeaderClicked != null)
            {
                Sort(lastHeaderClicked, lastDirection);
            }
        }
Пример #4
0
        void SaveDataChangeDelegate(EDAOSaveData NewSaveData, bool SwitchToMainWindow = false)
        {
            GlobalData.CurrentSaveData = NewSaveData;

            if (NewSaveData != null)
            {
                this.Title = this.OriginalTitle + ": " + NewSaveData.FileName;
            }

            if (SwitchToMainWindow)
                this.backstage.IsOpen = false;

            Ribbon_SelectedTabChanged(this.ribbon, null);
        }
Пример #5
0
        void SaveDataChangeDelegate(EDAOSaveData NewSaveData, bool SwitchToMainWindow = false)
        {
            GlobalData.CurrentSaveData = NewSaveData;

            if (NewSaveData != null)
            {
                this.Title = this.OriginalTitle + ": " + NewSaveData.FileName;
            }

            if (SwitchToMainWindow)
            {
                this.backstage.IsOpen = false;
            }

            Ribbon_SelectedTabChanged(this.ribbon, null);
        }
Пример #6
0
        public SaveDataListItem(EDAOSaveData saveData)
        {
            InitializeComponent();

            this.Height = 220;

            this.saveData = saveData;

            try
            {
                this.thumb.Source = new BitmapImage(new Uri(saveData.thumb));
            }
            catch
            {
            }

            this.Index.Text = String.Format("{0:D4}", saveData.index);
            this.SaveTime.Text = saveData.saveTime;
            this.Chapter.Text = saveData.chapter;
            this.Position.Text = saveData.position;
            this.PlayTime.Text = saveData.playTime;

            this.CharacterName1.Text = saveData.characters[0];
            this.CharacterLevel1.Text = saveData.levels[0];
            this.CharacterName2.Text = saveData.characters[1];
            this.CharacterLevel2.Text = saveData.levels[1];

            this.CharacterName3.Text = saveData.characters[2];
            this.CharacterLevel3.Text = saveData.levels[2];
            this.CharacterName4.Text = saveData.characters[3];
            this.CharacterLevel4.Text = saveData.levels[3];

            this.CharacterName5.Text = saveData.characters[4];
            this.CharacterLevel5.Text = saveData.levels[4];
            this.CharacterName6.Text = saveData.characters[5];
            this.CharacterLevel6.Text = saveData.levels[5];
            
            this.CharacterName7.Text = saveData.characters[6];
            this.CharacterLevel7.Text = saveData.levels[6];
            this.CharacterName8.Text = saveData.characters[7];
            this.CharacterLevel8.Text = saveData.levels[7];
        }
Пример #7
0
 public static void NotifySaveDataChange(EDAOSaveData NewSaveData, bool SwitchToMainWindow = false)
 {
     SaveDataChangeHandler(NewSaveData, SwitchToMainWindow);
 }
Пример #8
0
 public static void NotifySaveDataChange(EDAOSaveData NewSaveData, bool SwitchToMainWindow = false)
 {
     SaveDataChangeHandler(NewSaveData, SwitchToMainWindow);
 }