updated version

This commit is contained in:
rafael1209
2024-05-01 02:05:02 +03:00
parent ce9719e7d4
commit 1693a6533d
31 changed files with 2989 additions and 4587 deletions

42
CDS/CDS.csproj Normal file
View File

@@ -0,0 +1,42 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="DiscordRichPresence" Version="1.2.1.24" />
</ItemGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Update="Properties\Settings.Designer.cs">
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Update="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
</Project>

550
CDS/Forms/CDS.Designer.cs generated Normal file
View File

@@ -0,0 +1,550 @@
namespace CDS.Forms
{
partial class CDS
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CDS));
button1 = new Button();
button2 = new Button();
pictureBox1 = new PictureBox();
label1 = new Label();
label2 = new Label();
label3 = new Label();
label4 = new Label();
label5 = new Label();
textBox1 = new TextBox();
label6 = new Label();
label7 = new Label();
textBox2 = new TextBox();
label8 = new Label();
textBox3 = new TextBox();
label9 = new Label();
textBox4 = new TextBox();
label10 = new Label();
textBox5 = new TextBox();
label11 = new Label();
textBox6 = new TextBox();
label12 = new Label();
textBox7 = new TextBox();
textBox8 = new TextBox();
label14 = new Label();
textBox9 = new TextBox();
checkBox1 = new CheckBox();
checkBox2 = new CheckBox();
textBox10 = new TextBox();
label13 = new Label();
label15 = new Label();
textBox11 = new TextBox();
label16 = new Label();
textBox12 = new TextBox();
label17 = new Label();
textBox13 = new TextBox();
label18 = new Label();
textBox14 = new TextBox();
((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit();
SuspendLayout();
//
// button1
//
button1.BackColor = Color.FromArgb(18, 18, 18);
button1.Font = new Font("Arial", 12F, FontStyle.Bold, GraphicsUnit.Point, 177);
button1.Image = (Image)resources.GetObject("button1.Image");
button1.Location = new Point(324, 481);
button1.Name = "button1";
button1.Size = new Size(68, 48);
button1.TabIndex = 0;
button1.UseVisualStyleBackColor = false;
button1.Click += button1_Click;
//
// button2
//
button2.BackColor = Color.FromArgb(18, 18, 18);
button2.Font = new Font("Arial", 12F, FontStyle.Bold, GraphicsUnit.Point, 177);
button2.Image = (Image)resources.GetObject("button2.Image");
button2.Location = new Point(250, 481);
button2.Name = "button2";
button2.Size = new Size(68, 48);
button2.TabIndex = 1;
button2.UseVisualStyleBackColor = false;
//
// pictureBox1
//
pictureBox1.Image = (Image)resources.GetObject("pictureBox1.Image");
pictureBox1.Location = new Point(12, 16);
pictureBox1.Name = "pictureBox1";
pictureBox1.Size = new Size(85, 85);
pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
pictureBox1.TabIndex = 2;
pictureBox1.TabStop = false;
//
// label1
//
label1.AutoSize = true;
label1.Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Bold);
label1.ForeColor = Color.White;
label1.Location = new Point(103, 18);
label1.Name = "label1";
label1.Size = new Size(194, 20);
label1.TabIndex = 3;
label1.Text = "Custom Discord Status";
//
// label2
//
label2.AutoSize = true;
label2.Font = new Font("Microsoft Sans Serif", 6.75F, FontStyle.Regular, GraphicsUnit.Point, 204);
label2.ForeColor = Color.White;
label2.Location = new Point(297, 23);
label2.Name = "label2";
label2.Size = new Size(37, 12);
label2.TabIndex = 4;
label2.Text = "v10.0.0";
//
// label3
//
label3.AutoSize = true;
label3.Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 204);
label3.ForeColor = Color.White;
label3.Location = new Point(103, 38);
label3.Name = "label3";
label3.Size = new Size(132, 20);
label3.TabIndex = 5;
label3.Text = "Customize status";
//
// label4
//
label4.AutoSize = true;
label4.Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 204);
label4.ForeColor = Color.White;
label4.Location = new Point(103, 58);
label4.Name = "label4";
label4.Size = new Size(103, 20);
label4.TabIndex = 6;
label4.Text = "by mr.rafaello";
//
// label5
//
label5.AutoSize = true;
label5.Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 204);
label5.ForeColor = Color.White;
label5.Location = new Point(103, 78);
label5.Name = "label5";
label5.Size = new Size(110, 20);
label5.TabIndex = 7;
label5.Text = "Passed: 00:00";
//
// textBox1
//
textBox1.BackColor = Color.FromArgb(25, 27, 29);
textBox1.ForeColor = Color.White;
textBox1.Location = new Point(12, 138);
textBox1.Name = "textBox1";
textBox1.Size = new Size(179, 23);
textBox1.TabIndex = 8;
textBox1.Text = "840828650763976705";
//
// label6
//
label6.AutoSize = true;
label6.ForeColor = Color.White;
label6.Location = new Point(12, 120);
label6.Name = "label6";
label6.Size = new Size(52, 15);
label6.TabIndex = 9;
label6.Text = "Client ID";
//
// label7
//
label7.AutoSize = true;
label7.ForeColor = Color.White;
label7.Location = new Point(12, 179);
label7.Name = "label7";
label7.Size = new Size(42, 15);
label7.TabIndex = 11;
label7.Text = "Details";
//
// textBox2
//
textBox2.BackColor = Color.FromArgb(25, 27, 29);
textBox2.ForeColor = Color.White;
textBox2.Location = new Point(12, 197);
textBox2.Name = "textBox2";
textBox2.Size = new Size(179, 23);
textBox2.TabIndex = 10;
textBox2.Text = "топ казик";
//
// label8
//
label8.AutoSize = true;
label8.ForeColor = Color.White;
label8.Location = new Point(213, 179);
label8.Name = "label8";
label8.Size = new Size(33, 15);
label8.TabIndex = 13;
label8.Text = "State";
//
// textBox3
//
textBox3.BackColor = Color.FromArgb(25, 27, 29);
textBox3.ForeColor = Color.White;
textBox3.Location = new Point(213, 197);
textBox3.Name = "textBox3";
textBox3.Size = new Size(179, 23);
textBox3.TabIndex = 12;
textBox3.Text = "ну тап ваще";
//
// label9
//
label9.AutoSize = true;
label9.ForeColor = Color.White;
label9.Location = new Point(12, 246);
label9.Name = "label9";
label9.Size = new Size(94, 15);
label9.TabIndex = 15;
label9.Text = "Large Image Key";
//
// textBox4
//
textBox4.BackColor = Color.FromArgb(25, 27, 29);
textBox4.ForeColor = Color.White;
textBox4.Location = new Point(12, 264);
textBox4.Name = "textBox4";
textBox4.Size = new Size(179, 23);
textBox4.TabIndex = 14;
textBox4.Text = "2";
//
// label10
//
label10.AutoSize = true;
label10.ForeColor = Color.White;
label10.Location = new Point(213, 246);
label10.Name = "label10";
label10.Size = new Size(94, 15);
label10.TabIndex = 17;
label10.Text = "Small Image Key";
//
// textBox5
//
textBox5.BackColor = Color.FromArgb(25, 27, 29);
textBox5.ForeColor = Color.White;
textBox5.Location = new Point(213, 264);
textBox5.Name = "textBox5";
textBox5.Size = new Size(179, 23);
textBox5.TabIndex = 16;
textBox5.Text = "1";
//
// label11
//
label11.AutoSize = true;
label11.ForeColor = Color.White;
label11.Location = new Point(213, 292);
label11.Name = "label11";
label11.Size = new Size(96, 15);
label11.TabIndex = 21;
label11.Text = "Small Image Text";
//
// textBox6
//
textBox6.BackColor = Color.FromArgb(25, 27, 29);
textBox6.ForeColor = Color.White;
textBox6.Location = new Point(213, 310);
textBox6.Name = "textBox6";
textBox6.Size = new Size(179, 23);
textBox6.TabIndex = 20;
//
// label12
//
label12.AutoSize = true;
label12.ForeColor = Color.White;
label12.Location = new Point(12, 292);
label12.Name = "label12";
label12.Size = new Size(96, 15);
label12.TabIndex = 19;
label12.Text = "Large Image Text";
//
// textBox7
//
textBox7.BackColor = Color.FromArgb(25, 27, 29);
textBox7.ForeColor = Color.White;
textBox7.Location = new Point(12, 310);
textBox7.Name = "textBox7";
textBox7.Size = new Size(179, 23);
textBox7.TabIndex = 18;
//
// textBox8
//
textBox8.BackColor = Color.FromArgb(25, 27, 29);
textBox8.ForeColor = Color.White;
textBox8.Location = new Point(213, 370);
textBox8.Name = "textBox8";
textBox8.Size = new Size(33, 23);
textBox8.TabIndex = 22;
textBox8.Text = "1";
textBox8.TextAlign = HorizontalAlignment.Center;
//
// label14
//
label14.AutoSize = true;
label14.ForeColor = Color.White;
label14.Location = new Point(247, 373);
label14.Name = "label14";
label14.Size = new Size(18, 15);
label14.TabIndex = 24;
label14.Text = "of";
//
// textBox9
//
textBox9.BackColor = Color.FromArgb(25, 27, 29);
textBox9.ForeColor = Color.White;
textBox9.Location = new Point(266, 370);
textBox9.Name = "textBox9";
textBox9.Size = new Size(33, 23);
textBox9.TabIndex = 25;
textBox9.Text = "1";
textBox9.TextAlign = HorizontalAlignment.Center;
//
// checkBox1
//
checkBox1.AutoSize = true;
checkBox1.Checked = true;
checkBox1.CheckState = CheckState.Checked;
checkBox1.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point, 204);
checkBox1.ForeColor = Color.White;
checkBox1.Location = new Point(213, 345);
checkBox1.Name = "checkBox1";
checkBox1.Size = new Size(55, 19);
checkBox1.TabIndex = 26;
checkBox1.Text = "Party";
checkBox1.UseVisualStyleBackColor = true;
//
// checkBox2
//
checkBox2.AutoSize = true;
checkBox2.Checked = true;
checkBox2.CheckState = CheckState.Checked;
checkBox2.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point, 204);
checkBox2.ForeColor = Color.White;
checkBox2.Location = new Point(213, 404);
checkBox2.Name = "checkBox2";
checkBox2.Size = new Size(54, 19);
checkBox2.TabIndex = 28;
checkBox2.Text = "Time";
checkBox2.UseVisualStyleBackColor = true;
//
// textBox10
//
textBox10.BackColor = Color.FromArgb(25, 27, 29);
textBox10.ForeColor = Color.White;
textBox10.Location = new Point(213, 429);
textBox10.Name = "textBox10";
textBox10.Size = new Size(33, 23);
textBox10.TabIndex = 27;
textBox10.Text = "1";
textBox10.TextAlign = HorizontalAlignment.Center;
//
// label13
//
label13.AutoSize = true;
label13.ForeColor = Color.White;
label13.Location = new Point(247, 432);
label13.Name = "label13";
label13.Size = new Size(40, 15);
label13.TabIndex = 29;
label13.Text = "h. ago";
//
// label15
//
label15.AutoSize = true;
label15.ForeColor = Color.White;
label15.Location = new Point(12, 395);
label15.Name = "label15";
label15.Size = new Size(86, 15);
label15.TabIndex = 33;
label15.Text = "First Button Url";
//
// textBox11
//
textBox11.BackColor = Color.FromArgb(25, 27, 29);
textBox11.ForeColor = Color.White;
textBox11.Location = new Point(12, 413);
textBox11.Name = "textBox11";
textBox11.Size = new Size(179, 23);
textBox11.TabIndex = 32;
textBox11.Text = "https://www.lucky-diamonds.ru/";
//
// label16
//
label16.AutoSize = true;
label16.ForeColor = Color.White;
label16.Location = new Point(12, 352);
label16.Name = "label16";
label16.Size = new Size(91, 15);
label16.TabIndex = 31;
label16.Text = "First Button title";
//
// textBox12
//
textBox12.BackColor = Color.FromArgb(25, 27, 29);
textBox12.ForeColor = Color.White;
textBox12.Location = new Point(12, 370);
textBox12.Name = "textBox12";
textBox12.Size = new Size(179, 23);
textBox12.TabIndex = 30;
textBox12.Text = "Lucky Diamonds";
//
// label17
//
label17.AutoSize = true;
label17.ForeColor = Color.White;
label17.Location = new Point(12, 487);
label17.Name = "label17";
label17.Size = new Size(103, 15);
label17.TabIndex = 37;
label17.Text = "Second Button Url";
//
// textBox13
//
textBox13.BackColor = Color.FromArgb(25, 27, 29);
textBox13.ForeColor = Color.White;
textBox13.Location = new Point(12, 505);
textBox13.Name = "textBox13";
textBox13.Size = new Size(179, 23);
textBox13.TabIndex = 36;
//
// label18
//
label18.AutoSize = true;
label18.ForeColor = Color.White;
label18.Location = new Point(12, 444);
label18.Name = "label18";
label18.Size = new Size(108, 15);
label18.TabIndex = 35;
label18.Text = "Second Button title";
//
// textBox14
//
textBox14.BackColor = Color.FromArgb(25, 27, 29);
textBox14.ForeColor = Color.White;
textBox14.Location = new Point(12, 462);
textBox14.Name = "textBox14";
textBox14.Size = new Size(179, 23);
textBox14.TabIndex = 34;
//
// CDS
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
BackColor = Color.FromArgb(25, 27, 29);
ClientSize = new Size(404, 541);
Controls.Add(label17);
Controls.Add(textBox13);
Controls.Add(label18);
Controls.Add(textBox14);
Controls.Add(label15);
Controls.Add(textBox11);
Controls.Add(label16);
Controls.Add(textBox12);
Controls.Add(label13);
Controls.Add(checkBox2);
Controls.Add(textBox10);
Controls.Add(checkBox1);
Controls.Add(textBox9);
Controls.Add(label14);
Controls.Add(textBox8);
Controls.Add(label11);
Controls.Add(textBox6);
Controls.Add(label12);
Controls.Add(textBox7);
Controls.Add(label10);
Controls.Add(textBox5);
Controls.Add(label9);
Controls.Add(textBox4);
Controls.Add(label8);
Controls.Add(textBox3);
Controls.Add(label7);
Controls.Add(textBox2);
Controls.Add(label6);
Controls.Add(textBox1);
Controls.Add(label5);
Controls.Add(label4);
Controls.Add(label3);
Controls.Add(label2);
Controls.Add(label1);
Controls.Add(pictureBox1);
Controls.Add(button2);
Controls.Add(button1);
FormBorderStyle = FormBorderStyle.FixedSingle;
Icon = (Icon)resources.GetObject("$this.Icon");
Name = "CDS";
StartPosition = FormStartPosition.CenterScreen;
Text = "Custom Discord Status";
((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit();
ResumeLayout(false);
PerformLayout();
}
#endregion
private Button button1;
private Button button2;
private PictureBox pictureBox1;
private Label label1;
private Label label2;
private Label label3;
private Label label4;
private Label label5;
private TextBox textBox1;
private Label label6;
private Label label7;
private TextBox textBox2;
private Label label8;
private TextBox textBox3;
private Label label9;
private TextBox textBox4;
private Label label10;
private TextBox textBox5;
private Label label11;
private TextBox textBox6;
private Label label12;
private TextBox textBox7;
private TextBox textBox8;
private Label label14;
private TextBox textBox9;
private CheckBox checkBox1;
private CheckBox checkBox2;
private TextBox textBox10;
private Label label13;
private Label label15;
private TextBox textBox11;
private Label label16;
private TextBox textBox12;
private Label label17;
private TextBox textBox13;
private Label label18;
private TextBox textBox14;
}
}

85
CDS/Forms/CDS.cs Normal file
View File

@@ -0,0 +1,85 @@
using DiscordRPC;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CDS.Forms
{
public partial class CDS : Form
{
private DiscordRpcClient discordRpcClient;
public CDS()
{
InitializeComponent();
InitializeDiscordRpc();
}
private void InitializeDiscordRpc()
{
discordRpcClient ??= new DiscordRpcClient(textBox1.Text);
discordRpcClient.OnReady += (sender, e) =>
{
Console.WriteLine("Discord RPC is ready!");
};
discordRpcClient.OnPresenceUpdate += (sender, e) =>
{
Console.WriteLine($"Presence updated: {e.Presence}");
};
if (!discordRpcClient.IsInitialized)
discordRpcClient.Initialize();
UpdatePresence();
}
private void UpdatePresence()
{
var buttons = new List<DiscordRPC.Button>();
buttons.Add(new()
{
Label = textBox12.Text ?? "rafaelchasman.ru",
Url = textBox11.Text ?? "https://rafaelchasman.ru/"
});
Random random = new Random();
discordRpcClient.SetPresence(new RichPresence
{
Details = textBox2.Text,
State = textBox3.Text,
Assets = new Assets
{
LargeImageKey = textBox4.Text,
LargeImageText = textBox7.Text,
SmallImageKey = textBox5.Text,
SmallImageText = textBox6.Text
},
Buttons = buttons.ToArray(),
Party = checkBox2.Checked ? null : new Party
{
ID = new Random().Next(9999).ToString(),
Size = int.Parse(textBox1.Text),
Max = int.Parse(textBox2.Text)
},
Timestamps = checkBox1.Checked ? null : new Timestamps
{
Start = DateTime.Now.AddHours(-(int.Parse(textBox3.Text) + 2))
}
});
}
private void button1_Click(object sender, EventArgs e)
{
}
}
}

2189
CDS/Forms/CDS.resx Normal file

File diff suppressed because it is too large Load Diff

BIN
CDS/Imgs/LargeImg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

BIN
CDS/Imgs/logo.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

BIN
CDS/Imgs/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

BIN
CDS/Imgs/save.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B

BIN
CDS/Imgs/update.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 B

66
CDS/Program.cs Normal file
View File

@@ -0,0 +1,66 @@
using CDS.Forms;
using System;
using System.Resources;
using System.Windows.Forms;
using System.Windows.Forms.PropertyGridInternal;
namespace CDS
{
internal static class Program
{
private static NotifyIcon trayIcon;
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
ApplicationConfiguration.Initialize();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Icon formIcon = Properties.Resources.logo;
trayIcon = new NotifyIcon
{
Icon = formIcon,
Text = "CDS Application",
Visible = true
};
trayIcon.ContextMenuStrip = new ContextMenuStrip();
trayIcon.ContextMenuStrip.Items.Add("Open", null, (sender, e) => ShowMainForm());
trayIcon.ContextMenuStrip.Items.Add("Hide", null, (sender, e) => HideApplication());
trayIcon.ContextMenuStrip.Items.Add("Exit", null, (sender, e) => ExitApplication());
trayIcon.DoubleClick += (sender, e) => ShowMainForm();
Application.Run(new Forms.CDS());
}
private static void ShowMainForm()
{
if (Application.OpenForms.Count == 0)
{
Application.Run(new Forms.CDS());
}
else
{
Application.OpenForms[0].Show();
}
}
private static void ExitApplication()
{
Application.Exit();
}
private static void HideApplication()
{
Application.OpenForms[0].Hide();
}
}
}

93
CDS/Properties/Resources.Designer.cs generated Normal file
View File

@@ -0,0 +1,93 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
namespace CDS.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.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() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CDS.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap LargeImg {
get {
object obj = ResourceManager.GetObject("LargeImg", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
/// </summary>
internal static System.Drawing.Icon logo {
get {
object obj = ResourceManager.GetObject("logo", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap update {
get {
object obj = ResourceManager.GetObject("update", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}

View File

@@ -0,0 +1,130 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Imgs\logo.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="update" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Imgs\update.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="LargeImg" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Imgs\LargeImg.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

26
CDS/Properties/Settings.Designer.cs generated Normal file
View File

@@ -0,0 +1,26 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
namespace CDS.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.9.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;
}
}
}
}

View File

@@ -0,0 +1,6 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
</SettingsFile>