Beispiel #1
0
        void TwoPointStartRoutine()
        {
            if (TwoPointBackup == null)
            {
                TwoPointBackup = new TwoPointBackupData(TwoPointJudgeId);
            }

            string key = JudgeRoutineText;

            if (TwoPointBackup.Data.ContainsKey(key))
            {
                TwoPointBackup.Data.Remove(key);
            }

            TwoPointBackup.Data.Add(key, new TwoPointList());
            CurrentTwoPointBackupList = TwoPointBackup.Data[key].Data;
        }
Beispiel #2
0
        void SendTwoPointBackupData()
        {
            try
            {
                string Filename = SaveFolderPath + "\\TwoPointBackup.bin";
                if (File.Exists(Filename))
                {
                    using (var NewFile = File.OpenRead(Filename))
                    {
                        TwoPointBackupData DiskBackup = Serializer.Deserialize <TwoPointBackupData>(NewFile);

                        SendToServerNetData("BackupTwoPoint", DiskBackup);
                    }
                }
            }
            catch
            {
            }
        }