コード例 #1
0
        /// ------------------------------------------------------------------------------------------------------------------------
        /// <summary>
        /// Read-Decider (Online/Offline)
        /// </summary>
        public void DecideArrays(bool startUp = true)
        {
            string path = Supporter.BuildPath(Settings.Default.filePath, Settings.Default.SettingUseJSON);

            if (!Settings.Default.SettingUseLocalFile)
            {
                try
                {
                    Networker.DownloadFile(2, startUp);
                }
                catch (Exception)
                {
                    Settings.Default.SettingUseLocalFile = true;
                    DecideArrays(startUp);
                }
            }

            if (Settings.Default.SettingUseJSON)
            {
                TryReadJSONArrays(path);
            }
            else
            {
                TryReadArrays(path);
            }
        }
コード例 #2
0
 /// <summary>
 /// Event für das erneute versuchen
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ChoiceButton2_Click(object sender, EventArgs e)
 {
     webExceptionDialog.Close();
     Networker.DownloadFile();
 }