From dd1c3d29b325c78edf9e086d9f45ebdae0f5e833 Mon Sep 17 00:00:00 2001 From: ColdThunder11 Date: Thu, 19 Mar 2020 22:03:40 +0800 Subject: [PATCH] 1.0 --- AdnmbBackup-gui/AdnmbBackup-gui.csproj | 87 ++++++++++ AdnmbBackup-gui/AdnmbBackup-gui.sln | 25 +++ AdnmbBackup-gui/App.config | 6 + AdnmbBackup-gui/Form1.Designer.cs | 137 +++++++++++++++ AdnmbBackup-gui/Form1.cs | 160 ++++++++++++++++++ AdnmbBackup-gui/Form1.resx | 120 +++++++++++++ AdnmbBackup-gui/Program.cs | 22 +++ AdnmbBackup-gui/Properties/AssemblyInfo.cs | 36 ++++ .../Properties/Resources.Designer.cs | 71 ++++++++ AdnmbBackup-gui/Properties/Resources.resx | 117 +++++++++++++ .../Properties/Settings.Designer.cs | 30 ++++ AdnmbBackup-gui/Properties/Settings.settings | 7 + AdnmbBackup-gui/packages.config | 4 + 13 files changed, 822 insertions(+) create mode 100644 AdnmbBackup-gui/AdnmbBackup-gui.csproj create mode 100644 AdnmbBackup-gui/AdnmbBackup-gui.sln create mode 100644 AdnmbBackup-gui/App.config create mode 100644 AdnmbBackup-gui/Form1.Designer.cs create mode 100644 AdnmbBackup-gui/Form1.cs create mode 100644 AdnmbBackup-gui/Form1.resx create mode 100644 AdnmbBackup-gui/Program.cs create mode 100644 AdnmbBackup-gui/Properties/AssemblyInfo.cs create mode 100644 AdnmbBackup-gui/Properties/Resources.Designer.cs create mode 100644 AdnmbBackup-gui/Properties/Resources.resx create mode 100644 AdnmbBackup-gui/Properties/Settings.Designer.cs create mode 100644 AdnmbBackup-gui/Properties/Settings.settings create mode 100644 AdnmbBackup-gui/packages.config diff --git a/AdnmbBackup-gui/AdnmbBackup-gui.csproj b/AdnmbBackup-gui/AdnmbBackup-gui.csproj new file mode 100644 index 0000000..38dd04a --- /dev/null +++ b/AdnmbBackup-gui/AdnmbBackup-gui.csproj @@ -0,0 +1,87 @@ + + + + + Debug + AnyCPU + {C9F8EB1C-C37E-41D0-881D-4DEB6111064C} + WinExe + AdnmbBackup_gui + AdnmbBackup-gui + v4.8 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/AdnmbBackup-gui/AdnmbBackup-gui.sln b/AdnmbBackup-gui/AdnmbBackup-gui.sln new file mode 100644 index 0000000..4ad8ded --- /dev/null +++ b/AdnmbBackup-gui/AdnmbBackup-gui.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29806.167 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AdnmbBackup-gui", "AdnmbBackup-gui.csproj", "{C9F8EB1C-C37E-41D0-881D-4DEB6111064C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C9F8EB1C-C37E-41D0-881D-4DEB6111064C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C9F8EB1C-C37E-41D0-881D-4DEB6111064C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C9F8EB1C-C37E-41D0-881D-4DEB6111064C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C9F8EB1C-C37E-41D0-881D-4DEB6111064C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {A2E4B411-7C27-4C25-919E-A9A314461A71} + EndGlobalSection +EndGlobal diff --git a/AdnmbBackup-gui/App.config b/AdnmbBackup-gui/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/AdnmbBackup-gui/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AdnmbBackup-gui/Form1.Designer.cs b/AdnmbBackup-gui/Form1.Designer.cs new file mode 100644 index 0000000..1c7dd5e --- /dev/null +++ b/AdnmbBackup-gui/Form1.Designer.cs @@ -0,0 +1,137 @@ +namespace AdnmbBackup_gui +{ + partial class Form1 + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows 窗体设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + this.textBox1 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.linkLabel1 = new System.Windows.Forms.LinkLabel(); + this.button1 = new System.Windows.Forms.Button(); + this.linkLabel2 = new System.Windows.Forms.LinkLabel(); + this.label4 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(132, 39); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(198, 28); + this.textBox1.TabIndex = 0; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(28, 42); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(98, 18); + this.label1.TabIndex = 1; + this.label1.Text = "串号(id)"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(28, 80); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(368, 18); + this.label2.TabIndex = 2; + this.label2.Text = "请在同一个目录下新建cookie.txt将饼干放入"; + // + // linkLabel1 + // + this.linkLabel1.AutoSize = true; + this.linkLabel1.Location = new System.Drawing.Point(143, 118); + this.linkLabel1.Name = "linkLabel1"; + this.linkLabel1.Size = new System.Drawing.Size(116, 18); + this.linkLabel1.TabIndex = 4; + this.linkLabel1.TabStop = true; + this.linkLabel1.Text = "如何拿到饼干"; + this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked); + // + // button1 + // + this.button1.Location = new System.Drawing.Point(331, 110); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(119, 34); + this.button1.TabIndex = 5; + this.button1.Text = "开始备份!"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // linkLabel2 + // + this.linkLabel2.AutoSize = true; + this.linkLabel2.Location = new System.Drawing.Point(28, 118); + this.linkLabel2.Name = "linkLabel2"; + this.linkLabel2.Size = new System.Drawing.Size(80, 18); + this.linkLabel2.TabIndex = 6; + this.linkLabel2.TabStop = true; + this.linkLabel2.Text = "项目地址"; + this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked); + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(351, 42); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(62, 18); + this.label4.TabIndex = 7; + this.label4.Text = "无任务"; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(494, 177); + this.Controls.Add(this.label4); + this.Controls.Add(this.linkLabel2); + this.Controls.Add(this.button1); + this.Controls.Add(this.linkLabel1); + this.Controls.Add(this.label2); + this.Controls.Add(this.label1); + this.Controls.Add(this.textBox1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Name = "Form1"; + this.Text = "A岛匿名版备份器"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.LinkLabel linkLabel1; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.LinkLabel linkLabel2; + private System.Windows.Forms.Label label4; + } +} + diff --git a/AdnmbBackup-gui/Form1.cs b/AdnmbBackup-gui/Form1.cs new file mode 100644 index 0000000..1076626 --- /dev/null +++ b/AdnmbBackup-gui/Form1.cs @@ -0,0 +1,160 @@ +using Newtonsoft.Json; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.IO; +using System.IO.Compression; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using Newtonsoft.Json.Linq; +using System.Net; +using System.Net.Http; + +namespace AdnmbBackup_gui +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + System.Diagnostics.Process.Start("https://www.coldthunder11.com/artical/%e6%95%99%e7%a8%8b/%e5%a6%82%e4%bd%95%e8%8e%b7%e5%8f%96a%e5%b2%9b%e7%9a%84%e9%a5%bc%e5%b9%b2/"); + } + + private void button1_Click(object sender, EventArgs e) + { + string id = textBox1.Text; + if (id == string.Empty) return; + if (!File.Exists("cookie.txt")) + { + MessageBox.Show("请先放好小饼干"); + return; + } + if (!Directory.Exists(DateTime.Now.Month.ToString() + "-" + DateTime.Now.Day.ToString())) + Directory.CreateDirectory(DateTime.Now.Month.ToString() + "-" + DateTime.Now.Day.ToString()); + string path = Path.Combine(DateTime.Now.Month.ToString() + "-" + DateTime.Now.Day.ToString(), id + ".json"); + try + { + string url = "https://nmb.fastmirror.org/Api/thread"; + var cookie = File.ReadAllText("cookie.txt"); + CookieContainer cookieContainer = new CookieContainer(); + cookieContainer.Add(new Cookie("userhash", cookie, "/", "nmb.fastmirror.org")); + HttpClientHandler handler = new HttpClientHandler() { UseCookies = true }; + handler.CookieContainer = cookieContainer; + HttpClient http = new HttpClient(handler); + http.DefaultRequestHeaders.Add("Host", "nmb.fastmirror.org"); + http.DefaultRequestHeaders.Add("Accept", "application/json"); + http.DefaultRequestHeaders.Add("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36 HavfunClient-AdnmbBackup"); + label4.Text = "正在获取第1页"; + var t = http.GetAsync(url + "?id=" + id + "&page=1"); + t.Wait(); + var result = t.Result; + var t2 = result.Content.ReadAsByteArrayAsync(); + t2.Wait(); + var bytes = t2.Result; + var str = ReadGzip(bytes); + var fpjson = JsonConvert.DeserializeObject(str); + var replyCount = int.Parse(fpjson["replyCount"].ToString()); + int pageCount = replyCount / 19; + if (replyCount / pageCount != 0) pageCount++; + JArray contentJA = fpjson["replys"].ToObject(); + for (var page = 2; page <= pageCount; page++) + { + label4.Text = "正在获取第" + page + "页"; + t = http.GetAsync(url + "?id=" + id + "&page=" + page); + t.Wait(); + result = t.Result; + t2 = result.Content.ReadAsByteArrayAsync(); + t2.Wait(); + bytes = t2.Result; + str = ReadGzip(bytes); + var jo = JsonConvert.DeserializeObject(str); + JArray ja = jo["replys"].ToObject(); + var rpcount = ja.Count; + for (int j = 0; j < rpcount; j++) + { + contentJA.Add(ja[j]); + } + } + for (var index = 0; index < contentJA.Count; index++) + { + if (contentJA[index]["title"].ToString() == "广告") + { + contentJA.RemoveAt(index); + index--; + } + } + fpjson["replys"].Replace(contentJA); + var fjsonstr = JsonConvert.SerializeObject(fpjson, Formatting.Indented); + File.WriteAllText(path, fjsonstr); + } + catch(Exception ex) + { + MessageBox.Show(ex.Message); + label4.Text = "啊哦,出错了"; + return; + } + ConvertToText(path); + } + + private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + System.Diagnostics.Process.Start("https://github.com/ColdThunder11/AdnmbBackup-gui"); + } + static void ConvertToText(string path) + { + var jo = JsonConvert.DeserializeObject(File.ReadAllText(path)); + var sb = new StringBuilder(); + sb.Append(jo["userid"].ToString()); sb.Append(" "); sb.Append(jo["now"].ToString()); + sb.Append(" No."); sb.Append(jo["id"].ToString()); sb.Append(Environment.NewLine); + if (jo["title"].ToString() != "无标题") + { + sb.Append("标题:"); sb.Append(jo["title"].ToString()); sb.Append(Environment.NewLine); + } + sb.Append(ContentProcess(jo["content"].ToString())); sb.Append(Environment.NewLine); + var ja = jo["replys"].ToObject(); + for (int i = 0; i < ja.Count; i++) + { + sb.Append("------------------------------"); sb.Append(Environment.NewLine); + sb.Append(ja[i]["userid"].ToString()); sb.Append(" "); sb.Append(ja[i]["now"].ToString()); + sb.Append(" No."); sb.Append(ja[i]["id"].ToString()); sb.Append(Environment.NewLine); + sb.Append(ContentProcess(ja[i]["content"].ToString())); sb.Append(Environment.NewLine); + } + File.WriteAllText(path.Replace("json", "txt"), sb.ToString()); + var lines = File.ReadAllLines(path.Replace("json", "txt")); + for (var i = 0; i < lines.Length; i++) + { + lines[i] = lines[i].Trim(); + } + File.WriteAllLines(path.Replace("json", "txt"), lines); + } + static string ContentProcess(string content) + { + return content.Replace(">>", ">>").Replace("
", Environment.NewLine) + .Replace("", Environment.NewLine) + .Replace("
\r\n", Environment.NewLine).Replace("
\n", Environment.NewLine); + } + static string ReadGzip(byte[] bytes) + { + string result = string.Empty; + using (MemoryStream ms = new MemoryStream(bytes)) + { + using (GZipStream decompressedStream = new GZipStream(ms, CompressionMode.Decompress)) + { + using (StreamReader sr = new StreamReader(decompressedStream, Encoding.UTF8)) + { + result = sr.ReadToEnd(); + } + } + } + return result; + } + } +} diff --git a/AdnmbBackup-gui/Form1.resx b/AdnmbBackup-gui/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/AdnmbBackup-gui/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/AdnmbBackup-gui/Program.cs b/AdnmbBackup-gui/Program.cs new file mode 100644 index 0000000..273b6a6 --- /dev/null +++ b/AdnmbBackup-gui/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace AdnmbBackup_gui +{ + static class Program + { + /// + /// 应用程序的主入口点。 + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/AdnmbBackup-gui/Properties/AssemblyInfo.cs b/AdnmbBackup-gui/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..b3ce926 --- /dev/null +++ b/AdnmbBackup-gui/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("AdnmbBackup-gui")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("AdnmbBackup-gui")] +[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("c9f8eb1c-c37e-41d0-881d-4deb6111064c")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AdnmbBackup-gui/Properties/Resources.Designer.cs b/AdnmbBackup-gui/Properties/Resources.Designer.cs new file mode 100644 index 0000000..e6b5522 --- /dev/null +++ b/AdnmbBackup-gui/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本: 4.0.30319.42000 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace AdnmbBackup_gui.Properties +{ + + + /// + /// 强类型资源类,用于查找本地化字符串等。 + /// + // 此类是由 StronglyTypedResourceBuilder + // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 + // 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen + // (以 /str 作为命令选项),或重新生成 VS 项目。 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// 返回此类使用的缓存 ResourceManager 实例。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("AdnmbBackup_gui.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 覆盖当前线程的 CurrentUICulture 属性 + /// 使用此强类型的资源类的资源查找。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/AdnmbBackup-gui/Properties/Resources.resx b/AdnmbBackup-gui/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/AdnmbBackup-gui/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/AdnmbBackup-gui/Properties/Settings.Designer.cs b/AdnmbBackup-gui/Properties/Settings.Designer.cs new file mode 100644 index 0000000..3861546 --- /dev/null +++ b/AdnmbBackup-gui/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace AdnmbBackup_gui.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/AdnmbBackup-gui/Properties/Settings.settings b/AdnmbBackup-gui/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/AdnmbBackup-gui/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/AdnmbBackup-gui/packages.config b/AdnmbBackup-gui/packages.config new file mode 100644 index 0000000..281c145 --- /dev/null +++ b/AdnmbBackup-gui/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file