From 4414cc3a6f2b9fe9c318a9c7438ee139ef830099 Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 13 Oct 2018 18:01:37 +0200 Subject: Renaming project --- kurier.sln | 20 --- kurier/Form1.Designer.cs | 143 --------------------- kurier/Form1.cs | 104 --------------- kurier/Form1.resx | 200 ----------------------------- kurier/MySQL.cs | 86 ------------- kurier/MysqlSettings.Designer.cs | 107 --------------- kurier/MysqlSettings.cs | 46 ------- kurier/MysqlSettings.resx | 197 ---------------------------- kurier/Program.cs | 20 --- kurier/Properties/AssemblyInfo.cs | 36 ------ kurier/Properties/Resources.Designer.cs | 93 -------------- kurier/Properties/Resources.resx | 130 ------------------- kurier/Properties/S3Settings.Designer.cs | 50 -------- kurier/Properties/S3Settings.settings | 12 -- kurier/Properties/Settings.Designer.cs | 86 ------------- kurier/Properties/Settings.settings | 21 --- kurier/Resources/305_Close_32x32_72.png | Bin 2387 -> 0 bytes kurier/Resources/save.png | Bin 1367 -> 0 bytes kurier/Resources/settings.png | Bin 5054 -> 0 bytes kurier/S3.cs | 30 ----- kurier/app.config | 29 ----- kurier/kurier.csproj | 165 ------------------------ kurier/packages.config | 5 - kurier/s3.config | Bin 323 -> 0 bytes spedytor.sln | 20 +++ spedytor/Form1.Designer.cs | 143 +++++++++++++++++++++ spedytor/Form1.cs | 104 +++++++++++++++ spedytor/Form1.resx | 200 +++++++++++++++++++++++++++++ spedytor/MySQL.cs | 86 +++++++++++++ spedytor/MysqlSettings.Designer.cs | 107 +++++++++++++++ spedytor/MysqlSettings.cs | 46 +++++++ spedytor/MysqlSettings.resx | 197 ++++++++++++++++++++++++++++ spedytor/Program.cs | 20 +++ spedytor/Properties/AssemblyInfo.cs | 36 ++++++ spedytor/Properties/Resources.Designer.cs | 93 ++++++++++++++ spedytor/Properties/Resources.resx | 130 +++++++++++++++++++ spedytor/Properties/S3Settings.Designer.cs | 50 ++++++++ spedytor/Properties/S3Settings.settings | 12 ++ spedytor/Properties/Settings.Designer.cs | 86 +++++++++++++ spedytor/Properties/Settings.settings | 21 +++ spedytor/Resources/305_Close_32x32_72.png | Bin 0 -> 2387 bytes spedytor/Resources/save.png | Bin 0 -> 1367 bytes spedytor/Resources/settings.png | Bin 0 -> 5054 bytes spedytor/S3.cs | 30 +++++ spedytor/app.config | 29 +++++ spedytor/packages.config | 5 + spedytor/s3.config | Bin 0 -> 327 bytes spedytor/spedytor.csproj | 165 ++++++++++++++++++++++++ 48 files changed, 1580 insertions(+), 1580 deletions(-) delete mode 100644 kurier.sln delete mode 100644 kurier/Form1.Designer.cs delete mode 100644 kurier/Form1.cs delete mode 100644 kurier/Form1.resx delete mode 100644 kurier/MySQL.cs delete mode 100644 kurier/MysqlSettings.Designer.cs delete mode 100644 kurier/MysqlSettings.cs delete mode 100644 kurier/MysqlSettings.resx delete mode 100644 kurier/Program.cs delete mode 100644 kurier/Properties/AssemblyInfo.cs delete mode 100644 kurier/Properties/Resources.Designer.cs delete mode 100644 kurier/Properties/Resources.resx delete mode 100644 kurier/Properties/S3Settings.Designer.cs delete mode 100644 kurier/Properties/S3Settings.settings delete mode 100644 kurier/Properties/Settings.Designer.cs delete mode 100644 kurier/Properties/Settings.settings delete mode 100644 kurier/Resources/305_Close_32x32_72.png delete mode 100644 kurier/Resources/save.png delete mode 100644 kurier/Resources/settings.png delete mode 100644 kurier/S3.cs delete mode 100644 kurier/app.config delete mode 100644 kurier/kurier.csproj delete mode 100644 kurier/packages.config delete mode 100644 kurier/s3.config create mode 100644 spedytor.sln create mode 100644 spedytor/Form1.Designer.cs create mode 100644 spedytor/Form1.cs create mode 100644 spedytor/Form1.resx create mode 100644 spedytor/MySQL.cs create mode 100644 spedytor/MysqlSettings.Designer.cs create mode 100644 spedytor/MysqlSettings.cs create mode 100644 spedytor/MysqlSettings.resx create mode 100644 spedytor/Program.cs create mode 100644 spedytor/Properties/AssemblyInfo.cs create mode 100644 spedytor/Properties/Resources.Designer.cs create mode 100644 spedytor/Properties/Resources.resx create mode 100644 spedytor/Properties/S3Settings.Designer.cs create mode 100644 spedytor/Properties/S3Settings.settings create mode 100644 spedytor/Properties/Settings.Designer.cs create mode 100644 spedytor/Properties/Settings.settings create mode 100644 spedytor/Resources/305_Close_32x32_72.png create mode 100644 spedytor/Resources/save.png create mode 100644 spedytor/Resources/settings.png create mode 100644 spedytor/S3.cs create mode 100644 spedytor/app.config create mode 100644 spedytor/packages.config create mode 100644 spedytor/s3.config create mode 100644 spedytor/spedytor.csproj diff --git a/kurier.sln b/kurier.sln deleted file mode 100644 index 7deba5f..0000000 --- a/kurier.sln +++ /dev/null @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "kurier", "kurier\kurier.csproj", "{799D7BE1-4C53-4B14-9798-E0EE47451417}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x86 = Debug|x86 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {799D7BE1-4C53-4B14-9798-E0EE47451417}.Debug|x86.ActiveCfg = Debug|x86 - {799D7BE1-4C53-4B14-9798-E0EE47451417}.Debug|x86.Build.0 = Debug|x86 - {799D7BE1-4C53-4B14-9798-E0EE47451417}.Release|x86.ActiveCfg = Release|x86 - {799D7BE1-4C53-4B14-9798-E0EE47451417}.Release|x86.Build.0 = Release|x86 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/kurier/Form1.Designer.cs b/kurier/Form1.Designer.cs deleted file mode 100644 index 64fed6b..0000000 --- a/kurier/Form1.Designer.cs +++ /dev/null @@ -1,143 +0,0 @@ -namespace kurier -{ - partial class Form1 - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); - this.lChooseDatabase = new System.Windows.Forms.Label(); - this.cbDatabaseName = new System.Windows.Forms.ComboBox(); - this.cSend = new System.Windows.Forms.CheckBox(); - this.tBucketID = new System.Windows.Forms.TextBox(); - this.bExit = new System.Windows.Forms.Button(); - this.bSettings = new System.Windows.Forms.Button(); - this.bSave = new System.Windows.Forms.Button(); - this.SuspendLayout(); - // - // lChooseDatabase - // - this.lChooseDatabase.AutoSize = true; - this.lChooseDatabase.Location = new System.Drawing.Point(9, 13); - this.lChooseDatabase.Name = "lChooseDatabase"; - this.lChooseDatabase.Size = new System.Drawing.Size(74, 13); - this.lChooseDatabase.TabIndex = 0; - this.lChooseDatabase.Text = "Wybierz bazę:"; - // - // cbDatabaseName - // - this.cbDatabaseName.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cbDatabaseName.FormattingEnabled = true; - this.cbDatabaseName.Location = new System.Drawing.Point(89, 10); - this.cbDatabaseName.Name = "cbDatabaseName"; - this.cbDatabaseName.Size = new System.Drawing.Size(138, 21); - this.cbDatabaseName.TabIndex = 1; - // - // cSend - // - this.cSend.AutoSize = true; - this.cSend.Location = new System.Drawing.Point(12, 37); - this.cSend.Name = "cSend"; - this.cSend.Size = new System.Drawing.Size(83, 17); - this.cSend.TabIndex = 2; - this.cSend.Text = "ślij Zimnemu"; - this.cSend.UseVisualStyleBackColor = true; - this.cSend.CheckedChanged += new System.EventHandler(this.cSend_CheckedChanged); - // - // tBucketID - // - this.tBucketID.Enabled = false; - this.tBucketID.Location = new System.Drawing.Point(89, 35); - this.tBucketID.Name = "tBucketID"; - this.tBucketID.Size = new System.Drawing.Size(138, 20); - this.tBucketID.TabIndex = 3; - this.tBucketID.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.tBucketID_KeyPress); - // - // bExit - // - this.bExit.Image = global::kurier.Properties.Resources.close; - this.bExit.Location = new System.Drawing.Point(152, 133); - this.bExit.Name = "bExit"; - this.bExit.Size = new System.Drawing.Size(70, 70); - this.bExit.TabIndex = 6; - this.bExit.UseVisualStyleBackColor = true; - this.bExit.Click += new System.EventHandler(this.bExit_Click); - // - // bSettings - // - this.bSettings.Image = global::kurier.Properties.Resources.settings; - this.bSettings.Location = new System.Drawing.Point(152, 63); - this.bSettings.Name = "bSettings"; - this.bSettings.Size = new System.Drawing.Size(70, 70); - this.bSettings.TabIndex = 5; - this.bSettings.UseVisualStyleBackColor = true; - this.bSettings.Click += new System.EventHandler(this.bSettings_Click); - // - // bSave - // - this.bSave.Image = global::kurier.Properties.Resources.save; - this.bSave.Location = new System.Drawing.Point(12, 63); - this.bSave.Name = "bSave"; - this.bSave.Size = new System.Drawing.Size(140, 140); - this.bSave.TabIndex = 4; - this.bSave.UseVisualStyleBackColor = true; - this.bSave.Click += new System.EventHandler(this.bSave_Click); - // - // Form1 - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(235, 212); - this.Controls.Add(this.bExit); - this.Controls.Add(this.bSettings); - this.Controls.Add(this.bSave); - this.Controls.Add(this.tBucketID); - this.Controls.Add(this.cSend); - this.Controls.Add(this.cbDatabaseName); - this.Controls.Add(this.lChooseDatabase); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "Form1"; - this.Text = "KurierSQL"; - this.Load += new System.EventHandler(this.Form1_Load); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.Label lChooseDatabase; - private System.Windows.Forms.ComboBox cbDatabaseName; - private System.Windows.Forms.CheckBox cSend; - private System.Windows.Forms.TextBox tBucketID; - private System.Windows.Forms.Button bSave; - private System.Windows.Forms.Button bSettings; - private System.Windows.Forms.Button bExit; - } -} - diff --git a/kurier/Form1.cs b/kurier/Form1.cs deleted file mode 100644 index 7053fee..0000000 --- a/kurier/Form1.cs +++ /dev/null @@ -1,104 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Text; -using System.Windows.Forms; -using MySql.Data.MySqlClient; -using System.IO; - -namespace kurier -{ - public partial class Form1 : Form - { - public Form1() - { - InitializeComponent(); - } - - private void bExit_Click(object sender, EventArgs e) - { - this.Dispose(); - } - - private void cSend_CheckedChanged(object sender, EventArgs e) - { - this.tBucketID.Enabled = this.cSend.Checked; - if (this.cSend.Checked) - { - this.tBucketID.Focus(); - } - } - - private void Form1_Load(object sender, EventArgs e) - { - if (!MySQL.getConfigured()) (new MysqlSettings()).ShowDialog(); - if (!MySQL.getConfigured()) this.Dispose(); - this.refreshDatabaseList(); - } - - private void bSettings_Click(object sender, EventArgs e) - { - (new MysqlSettings()).ShowDialog(); - this.refreshDatabaseList(); - } - - internal void refreshDatabaseList() - { - this.cbDatabaseName.Items.Clear(); - MySQL c = new MySQL(""); - MySqlDataReader dbs = c.select("SELECT TABLE_SCHEMA FROM information_schema.COLUMNS GROUP BY TABLE_SCHEMA;"); - while (dbs.Read()) - { - this.cbDatabaseName.Items.Add(dbs.GetString(0)); - } - this.cbDatabaseName.SelectedIndex = 0; - dbs.Close(); - } - - private void bSave_Click(object sender, EventArgs e) - { - this.Enabled = false; - Cursor.Current = Cursors.WaitCursor; - FolderBrowserDialog fd = new FolderBrowserDialog(); - if (fd.ShowDialog() == DialogResult.OK) - { - string filePath = Path.Combine(fd.SelectedPath, this.cbDatabaseName.SelectedItem.ToString() + DateTime.Now.ToString("-yyyyMMdd-HHmmss") + ".sql"); - try - { - MySQL c = new MySQL(this.cbDatabaseName.SelectedItem.ToString()); - c.backup(filePath); - c.close(); - MessageBox.Show("Wyeksportowano pomyślnie do pliku: " + filePath, "Sukces eksportu!", MessageBoxButtons.OK, MessageBoxIcon.Information); - if (cSend.Checked) { - if (tBucketID.Text.Length > 0) - { - S3 s3Client = new S3(); - s3Client.send(this.tBucketID.Text, filePath, this.cbDatabaseName.SelectedItem.ToString() + ".sql"); - MessageBox.Show("Wysłano Zimnemu!", "Sukces eksportu!", MessageBoxButtons.OK, MessageBoxIcon.Information); - } - else - { - MessageBox.Show("Nie wpisałeś ID do wysłania Zimnemu!", "Błąd eksportu!", MessageBoxButtons.OK, MessageBoxIcon.Warning); - } - } - } - catch (Exception ex) - { - MessageBox.Show(ex.Message, "Błąd eksportu!", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - } - this.Enabled = true; - Cursor.Current = Cursors.Default; - } - - private void tBucketID_KeyPress(object sender, KeyPressEventArgs e) - { - if (e.KeyChar == (char)Keys.Return) - { - this.bSave_Click(null, null); - } - } - } -} diff --git a/kurier/Form1.resx b/kurier/Form1.resx deleted file mode 100644 index f41cdd1..0000000 --- a/kurier/Form1.resx +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - True - - - - - AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAgBAAAAAAAAAAAAAAAAAAAAAA - AAD19fUAgIGBAGFncgBjaXYAY2l1AGNpdQBjaXUAYmh1AF9mdQBrb3UCeHp4And4dwBzcnQAcGtyAG5o - cABtZ3AAbWdwAG5ocABwa3IAdHJ1AHh4dwB4eXgCbm9xAWhpagBqamwAamttAGprbQBqa20Aa2xuAGZn - aQCFhYYA+/v7AOvr7AAcGRUAUDMAAF4+AQBbPAAAW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ETAv2tCwDQpCIker5b3XLK - Wf96xlX6ecdX/XjHV/94x1f/eMdX/3nHWP95x1j/ecdY/3nHWP95x1j/ecdY/3jHV/94x1f/eMdX/3nH - V/16xlX6ccpa/328WdTWpB4c/K4MAPixEwLdmgcAMCshAPLz9gDo6ewAJiEWAOCcCQD7sREA8q0RA/yt - CwDfpx4Xkb9WvXDKX/90xlX9esZV+3rHV/x4x1f+eMdX/3jHV/94x1f/eMdX/3jHV/94x1f/eMdX/nrH - V/x6xlX8dMZV/nDKX/+VvVOy46cbEfytCwDyrBEC+7ISAN2aBwAwKyEA8vP2AOjp7AApJBoA4J4NAPqy - FQD0rRQA868VAvqvEAH1rRgBwb5IaofMZulwy2L/cchb/nbIWf95yFn8eshZ+3rIWvt6yFr7eshZ+3nI - Wf12yFn/cchb/nDLYv+KzGXlxb1FYPesFgD5rxAC864VAvStFAD7sxYA3psLADMuJADy8/YA6OnsACYh - FQDflwAA+asBAPOmAAD0pwAA86cAAvSnAAP9pQAA8K0QEMS6NW2YwkrIfsRP+XLETv9vw0v/bsNK/27D - Sv9vw0z/c8RO/3/ET/eawkrEyLozZvKsDg38pQAA9KcAA/OnAAH0pwAA86YAAPqrAgDdlAAAMCsgAPLz - 9gD09PYAlZKNAPDPhwD92YsA+deKAPrXigD614oA+teKAPjXiwP71YUB/9WEAP7ZkADw4KQd3Oa1Sszp - vGvF57d7xee3e83pvGnd5rRH8d+iGv7ZjwD/1IMA+9WGAfjXiwP614oA+teKAPrXigD514oA/dmLAO7O - hgCal5IA+Pn6AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wH+//8E/v//Av// - /wD///8A////AP///wD///8A////AP///wD///8A/v//Av7//wT///8B////AP///wD///8A////AP// - /wD///8A////AP///wD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= - - - \ No newline at end of file diff --git a/kurier/MySQL.cs b/kurier/MySQL.cs deleted file mode 100644 index 88b4fbf..0000000 --- a/kurier/MySQL.cs +++ /dev/null @@ -1,86 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using MySql.Data.MySqlClient; - -namespace kurier -{ - public class MySQL - { - private MySqlConnection conn; - private MySqlCommand cmd; - private string database; - - public MySQL(string database) - { - this.database = database; - connect(); - } - - public void connect() - { - conn = new MySqlConnection((database != "" ? ("Database=" + database + ";") : "") - + "Data Source=" + getHost() + ";User Id=" + getUser() + ";Password=" + getPass() - + ";Port=" + getPort() + ";charset=utf8;"); - - conn.Open(); - } - - public void close() - { - try - { - conn.Close(); - conn = null; - } - catch (Exception) - { - } - } - - public bool isOpen() - { - return conn != null; - } - - public static string test() - { - try - { - MySqlConnection conn = new MySqlConnection("Data Source=" + getHost() + ";User Id=" + getUser() + ";Password=" + getPass() - + ";Port=" + getPort() + ";charset=utf8;"); - conn.Open(); - } - catch (MySqlException e) - { - return e.Message; - } - catch (Exception e) - { - return "Prawdopodobnie brakuje Ci dll-ki od MySQL'a.\n\n" + e.Message; - } - return ""; - } - - public MySqlDataReader select(string query) - { - MySqlCommand comm = new MySqlCommand(query, conn); - return comm.ExecuteReader(); - } - - public static string getHost() { return Properties.Settings.Default.HOST; } - public static string getUser() { return Properties.Settings.Default.USER; } - public static string getPass() { return Properties.Settings.Default.PASS; } - public static string getPort() { return Properties.Settings.Default.PORT; } - public static bool getConfigured() { return Properties.Settings.Default.CONFIGURED; } - - internal void backup(string filePath) - { - cmd = new MySqlCommand(); - cmd.Connection = conn; - MySqlBackup backup = new MySqlBackup(cmd); - backup.ExportInfo.AddCreateDatabase = true; - backup.ExportToFile(filePath); - } - } -} diff --git a/kurier/MysqlSettings.Designer.cs b/kurier/MysqlSettings.Designer.cs deleted file mode 100644 index 41cd176..0000000 --- a/kurier/MysqlSettings.Designer.cs +++ /dev/null @@ -1,107 +0,0 @@ -namespace kurier -{ - partial class MysqlSettings - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MysqlSettings)); - this.eHost = new System.Windows.Forms.TextBox(); - this.eUser = new System.Windows.Forms.TextBox(); - this.ePass = new System.Windows.Forms.TextBox(); - this.ePort = new System.Windows.Forms.TextBox(); - this.bOk = new System.Windows.Forms.Button(); - this.SuspendLayout(); - // - // eHost - // - this.eHost.Location = new System.Drawing.Point(12, 12); - this.eHost.Name = "eHost"; - this.eHost.Size = new System.Drawing.Size(100, 20); - this.eHost.TabIndex = 0; - // - // eUser - // - this.eUser.Location = new System.Drawing.Point(12, 38); - this.eUser.Name = "eUser"; - this.eUser.Size = new System.Drawing.Size(100, 20); - this.eUser.TabIndex = 1; - // - // ePass - // - this.ePass.Location = new System.Drawing.Point(12, 64); - this.ePass.Name = "ePass"; - this.ePass.PasswordChar = '*'; - this.ePass.Size = new System.Drawing.Size(100, 20); - this.ePass.TabIndex = 2; - // - // ePort - // - this.ePort.Location = new System.Drawing.Point(12, 90); - this.ePort.Name = "ePort"; - this.ePort.Size = new System.Drawing.Size(100, 20); - this.ePort.TabIndex = 3; - // - // bOk - // - this.bOk.Location = new System.Drawing.Point(12, 116); - this.bOk.Name = "bOk"; - this.bOk.Size = new System.Drawing.Size(100, 23); - this.bOk.TabIndex = 4; - this.bOk.Text = "OK"; - this.bOk.UseVisualStyleBackColor = true; - this.bOk.Click += new System.EventHandler(this.button1_Click); - // - // MysqlSettings - // - this.AcceptButton = this.bOk; - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(124, 147); - this.Controls.Add(this.bOk); - this.Controls.Add(this.ePort); - this.Controls.Add(this.ePass); - this.Controls.Add(this.eUser); - this.Controls.Add(this.eHost); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Name = "MysqlSettings"; - this.Text = "Ustawienia MySQL"; - this.Load += new System.EventHandler(this.MysqlSettings_Load); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.TextBox eHost; - private System.Windows.Forms.TextBox eUser; - private System.Windows.Forms.TextBox ePass; - private System.Windows.Forms.TextBox ePort; - private System.Windows.Forms.Button bOk; - } -} \ No newline at end of file diff --git a/kurier/MysqlSettings.cs b/kurier/MysqlSettings.cs deleted file mode 100644 index 01b1b08..0000000 --- a/kurier/MysqlSettings.cs +++ /dev/null @@ -1,46 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Text; -using System.Windows.Forms; - -namespace kurier -{ - public partial class MysqlSettings : Form - { - public MysqlSettings() - { - InitializeComponent(); - } - - private void MysqlSettings_Load(object sender, EventArgs e) - { - eHost.Text = Properties.Settings.Default.HOST; - eUser.Text = Properties.Settings.Default.USER; - ePass.Text = Properties.Settings.Default.PASS; - ePort.Text = Properties.Settings.Default.PORT; - } - - private void button1_Click(object sender, EventArgs e) - { - Properties.Settings.Default.HOST = eHost.Text; - Properties.Settings.Default.USER = eUser.Text; - Properties.Settings.Default.PASS = ePass.Text; - Properties.Settings.Default.PORT = ePort.Text; - - string msg = MySQL.test(); - if (msg == "") - { - Properties.Settings.Default.CONFIGURED = true; - Properties.Settings.Default.Save(); - Close(); - } - else - { - MessageBox.Show(msg, "Nieprawidłowe ustawienia", MessageBoxButtons.OK, MessageBoxIcon.Stop); - } - } - } -} diff --git a/kurier/MysqlSettings.resx b/kurier/MysqlSettings.resx deleted file mode 100644 index c473cfa..0000000 --- a/kurier/MysqlSettings.resx +++ /dev/null @@ -1,197 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - - AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAgBAAAAAAAAAAAAAAAAAAAAAA - AAD19fUAgIGBAGFncgBjaXYAY2l1AGNpdQBjaXUAYmh1AF9mdQBrb3UCeHp4And4dwBzcnQAcGtyAG5o - cABtZ3AAbWdwAG5ocABwa3IAdHJ1AHh4dwB4eXgCbm9xAWhpagBqamwAamttAGprbQBqa20Aa2xuAGZn - aQCFhYYA+/v7AOvr7AAcGRUAUDMAAF4+AQBbPAAAWzwAAFg6AABePgABcE0AATokAAAAAAAAAQAADQAF - ADYOIgZfHjwRfiVHFo0kRxaMHTsQfAwgBF0ABAAzAAABCwEAAAAsIxIAR0ArAjw0IQE6MR4AOzMgADsz - IAA9NSIAMSoYACYmJAD09fUA6OnsACklGQDprA0A/8EVAP68FAD+uhQA/8cWAfe6FQF/UQYAHRoHJS9P - I4Bcl0LPdcFV+YDTXf+D2GD/hNlh/4TZYP+B113/fNFa/3G+UvdXkz/LLEofehYWEiBMRksAnJyZAaSk - oQGbmpgAnpyaAKCenACWlJMAOTk5APDw8ADo6ewAJiEWANyaCQD3rhEA7KYPAP+4EgK7ggsAFAkADhU6 - HX1krEvrgdVd/3/RXP56ylj/d8VW/XfEVvx2xFX8c8JR/HLCUfx0xFP9d8lW/3zRWf5901r/YKdE5xk2 - DnUMCA8LcXBzAJWW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5rxAC864VAvStFAD7sxYA3psLADMuJADy8/YA6OnsACYh - FQDflwAA+asBAPOmAAD0pwAA86cAAvSnAAP9pQAA8K0QEMS6NW2YwkrIfsRP+XLETv9vw0v/bsNK/27D - Sv9vw0z/c8RO/3/ET/eawkrEyLozZvKsDg38pQAA9KcAA/OnAAH0pwAA86YAAPqrAgDdlAAAMCsgAPLz - 9gD09PYAlZKNAPDPhwD92YsA+deKAPrXigD614oA+teKAPjXiwP71YUB/9WEAP7ZkADw4KQd3Oa1Sszp - vGvF57d7xee3e83pvGnd5rRH8d+iGv7ZjwD/1IMA+9WGAfjXiwP614oA+teKAPrXigD514oA/dmLAO7O - hgCal5IA+Pn6AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wH+//8E/v//Av// - /wD///8A////AP///wD///8A////AP///wD///8A/v//Av7//wT///8B////AP///wD///8A////AP// - /wD///8A////AP///wD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= - - - \ No newline at end of file diff --git a/kurier/Program.cs b/kurier/Program.cs deleted file mode 100644 index 2114d67..0000000 --- a/kurier/Program.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Windows.Forms; - -namespace kurier -{ - static class Program - { - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main() - { - Application.EnableVisualStyles(); - Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new Form1()); - } - } -} diff --git a/kurier/Properties/AssemblyInfo.cs b/kurier/Properties/AssemblyInfo.cs deleted file mode 100644 index e58baa3..0000000 --- a/kurier/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("kurier")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Hewlett-Packard Company")] -[assembly: AssemblyProduct("kurier")] -[assembly: AssemblyCopyright("Copyright © Hewlett-Packard Company 2018")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("f40f0a87-ea23-4e47-8262-de884c6e08c8")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/kurier/Properties/Resources.Designer.cs b/kurier/Properties/Resources.Designer.cs deleted file mode 100644 index 285ff7a..0000000 --- a/kurier/Properties/Resources.Designer.cs +++ /dev/null @@ -1,93 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 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 kurier.Properties { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // 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", "2.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() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [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("kurier.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap close { - get { - object obj = ResourceManager.GetObject("close", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap save { - get { - object obj = ResourceManager.GetObject("save", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap settings { - get { - object obj = ResourceManager.GetObject("settings", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - } -} diff --git a/kurier/Properties/Resources.resx b/kurier/Properties/Resources.resx deleted file mode 100644 index f3d303b..0000000 --- a/kurier/Properties/Resources.resx +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - ..\Resources\save.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\settings.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\305_Close_32x32_72.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - \ No newline at end of file diff --git a/kurier/Properties/S3Settings.Designer.cs b/kurier/Properties/S3Settings.Designer.cs deleted file mode 100644 index 44a3578..0000000 --- a/kurier/Properties/S3Settings.Designer.cs +++ /dev/null @@ -1,50 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 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 kurier.Properties { - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] - internal sealed partial class S3Settings : global::System.Configuration.ApplicationSettingsBase { - - private static S3Settings defaultInstance = ((S3Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new S3Settings()))); - - public static S3Settings Default { - get { - return defaultInstance; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("")] - public string AWS_ACCESS_KEY { - get { - return ((string)(this["AWS_ACCESS_KEY"])); - } - set { - this["AWS_ACCESS_KEY"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("")] - public string AWS_SECRET_KEY { - get { - return ((string)(this["AWS_SECRET_KEY"])); - } - set { - this["AWS_SECRET_KEY"] = value; - } - } - } -} diff --git a/kurier/Properties/S3Settings.settings b/kurier/Properties/S3Settings.settings deleted file mode 100644 index 9ca01af..0000000 --- a/kurier/Properties/S3Settings.settings +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/kurier/Properties/Settings.Designer.cs b/kurier/Properties/Settings.Designer.cs deleted file mode 100644 index 6ba5ba7..0000000 --- a/kurier/Properties/Settings.Designer.cs +++ /dev/null @@ -1,86 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 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 kurier.Properties { - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.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; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("localhost")] - public string HOST { - get { - return ((string)(this["HOST"])); - } - set { - this["HOST"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("3306")] - public string PORT { - get { - return ((string)(this["PORT"])); - } - set { - this["PORT"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("root")] - public string USER { - get { - return ((string)(this["USER"])); - } - set { - this["USER"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("")] - public string PASS { - get { - return ((string)(this["PASS"])); - } - set { - this["PASS"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool CONFIGURED { - get { - return ((bool)(this["CONFIGURED"])); - } - set { - this["CONFIGURED"] = value; - } - } - } -} diff --git a/kurier/Properties/Settings.settings b/kurier/Properties/Settings.settings deleted file mode 100644 index 1749fb4..0000000 --- a/kurier/Properties/Settings.settings +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - localhost - - - 3306 - - - root - - - - - - False - - - \ No newline at end of file diff --git a/kurier/Resources/305_Close_32x32_72.png b/kurier/Resources/305_Close_32x32_72.png deleted file mode 100644 index c355391..0000000 Binary files a/kurier/Resources/305_Close_32x32_72.png and /dev/null differ diff --git a/kurier/Resources/save.png b/kurier/Resources/save.png deleted file mode 100644 index 3d74a12..0000000 Binary files a/kurier/Resources/save.png and /dev/null differ diff --git a/kurier/Resources/settings.png b/kurier/Resources/settings.png deleted file mode 100644 index 99f2696..0000000 Binary files a/kurier/Resources/settings.png and /dev/null differ diff --git a/kurier/S3.cs b/kurier/S3.cs deleted file mode 100644 index 55993d1..0000000 --- a/kurier/S3.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using Amazon.S3; -using Amazon.S3.Model; -using System.IO; -using System.Windows.Forms; -using Amazon; - -namespace kurier -{ - class S3 - { - private AmazonS3Client _client; - - public S3() - { - this._client = new AmazonS3Client(Properties.S3Settings.Default.AWS_ACCESS_KEY, Properties.S3Settings.Default.AWS_SECRET_KEY, RegionEndpoint.EUCentral1); - } - - public void send(string bucket, string filePath, string remotePath) - { - PutObjectRequest request = new PutObjectRequest { - BucketName = bucket, - Key = remotePath, - ContentBody = File.ReadAllText(filePath) }; - this._client.PutObject(request); - } - } -} diff --git a/kurier/app.config b/kurier/app.config deleted file mode 100644 index 6daac4a..0000000 --- a/kurier/app.config +++ /dev/null @@ -1,29 +0,0 @@ - - - - -
-
- - - - - - - localhost - - - 3306 - - - root - - - - - - False - - - - diff --git a/kurier/kurier.csproj b/kurier/kurier.csproj deleted file mode 100644 index cb3dda9..0000000 --- a/kurier/kurier.csproj +++ /dev/null @@ -1,165 +0,0 @@ - - - - Debug - x86 - 8.0.30703 - 2.0 - {799D7BE1-4C53-4B14-9798-E0EE47451417} - WinExe - Properties - kurier - kurier - v3.5 - - - 512 - publish\ - true - Disk - false - Foreground - 7 - Days - false - false - true - 0 - 1.0.0.%2a - false - false - true - - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - x86 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\res\AWSSDK.Core.dll - - - ..\res\AWSSDK.S3.dll - - - False - ..\res\MySql.Data.dll - - - False - ..\res\MySqlBackup.dll - - - - - - - - - - Form - - - Form1.cs - - - - Form - - - MysqlSettings.cs - - - - - - True - True - S3Settings.settings - - - Form1.cs - - - MysqlSettings.cs - - - ResXFileCodeGenerator - Designer - Resources.Designer.cs - - - Designer - - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - True - Resources.resx - - - True - Settings.settings - True - - - SettingsSingleFileGenerator - S3Settings.Designer.cs - - - - - - - - - - - False - Microsoft .NET Framework 4 Client Profile %28x86 and x64%29 - true - - - False - .NET Framework 3.5 SP1 Client Profile - false - - - False - .NET Framework 3.5 SP1 - false - - - False - Windows Installer 3.1 - true - - - - - \ No newline at end of file diff --git a/kurier/packages.config b/kurier/packages.config deleted file mode 100644 index 3058511..0000000 --- a/kurier/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/kurier/s3.config b/kurier/s3.config deleted file mode 100644 index 2e39c55..0000000 Binary files a/kurier/s3.config and /dev/null differ diff --git a/spedytor.sln b/spedytor.sln new file mode 100644 index 0000000..a704715 --- /dev/null +++ b/spedytor.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "spedytor", "spedytor\spedytor.csproj", "{799D7BE1-4C53-4B14-9798-E0EE47451417}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {799D7BE1-4C53-4B14-9798-E0EE47451417}.Debug|x86.ActiveCfg = Debug|x86 + {799D7BE1-4C53-4B14-9798-E0EE47451417}.Debug|x86.Build.0 = Debug|x86 + {799D7BE1-4C53-4B14-9798-E0EE47451417}.Release|x86.ActiveCfg = Release|x86 + {799D7BE1-4C53-4B14-9798-E0EE47451417}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/spedytor/Form1.Designer.cs b/spedytor/Form1.Designer.cs new file mode 100644 index 0000000..5942c7f --- /dev/null +++ b/spedytor/Form1.Designer.cs @@ -0,0 +1,143 @@ +namespace spedytor +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); + this.lChooseDatabase = new System.Windows.Forms.Label(); + this.cbDatabaseName = new System.Windows.Forms.ComboBox(); + this.cSend = new System.Windows.Forms.CheckBox(); + this.tBucketID = new System.Windows.Forms.TextBox(); + this.bExit = new System.Windows.Forms.Button(); + this.bSettings = new System.Windows.Forms.Button(); + this.bSave = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // lChooseDatabase + // + this.lChooseDatabase.AutoSize = true; + this.lChooseDatabase.Location = new System.Drawing.Point(9, 13); + this.lChooseDatabase.Name = "lChooseDatabase"; + this.lChooseDatabase.Size = new System.Drawing.Size(74, 13); + this.lChooseDatabase.TabIndex = 0; + this.lChooseDatabase.Text = "Wybierz bazę:"; + // + // cbDatabaseName + // + this.cbDatabaseName.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cbDatabaseName.FormattingEnabled = true; + this.cbDatabaseName.Location = new System.Drawing.Point(89, 10); + this.cbDatabaseName.Name = "cbDatabaseName"; + this.cbDatabaseName.Size = new System.Drawing.Size(138, 21); + this.cbDatabaseName.TabIndex = 1; + // + // cSend + // + this.cSend.AutoSize = true; + this.cSend.Location = new System.Drawing.Point(12, 37); + this.cSend.Name = "cSend"; + this.cSend.Size = new System.Drawing.Size(83, 17); + this.cSend.TabIndex = 2; + this.cSend.Text = "ślij Zimnemu"; + this.cSend.UseVisualStyleBackColor = true; + this.cSend.CheckedChanged += new System.EventHandler(this.cSend_CheckedChanged); + // + // tBucketID + // + this.tBucketID.Enabled = false; + this.tBucketID.Location = new System.Drawing.Point(89, 35); + this.tBucketID.Name = "tBucketID"; + this.tBucketID.Size = new System.Drawing.Size(138, 20); + this.tBucketID.TabIndex = 3; + this.tBucketID.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.tBucketID_KeyPress); + // + // bExit + // + this.bExit.Image = global::spedytor.Properties.Resources.close; + this.bExit.Location = new System.Drawing.Point(152, 133); + this.bExit.Name = "bExit"; + this.bExit.Size = new System.Drawing.Size(70, 70); + this.bExit.TabIndex = 6; + this.bExit.UseVisualStyleBackColor = true; + this.bExit.Click += new System.EventHandler(this.bExit_Click); + // + // bSettings + // + this.bSettings.Image = global::spedytor.Properties.Resources.settings; + this.bSettings.Location = new System.Drawing.Point(152, 63); + this.bSettings.Name = "bSettings"; + this.bSettings.Size = new System.Drawing.Size(70, 70); + this.bSettings.TabIndex = 5; + this.bSettings.UseVisualStyleBackColor = true; + this.bSettings.Click += new System.EventHandler(this.bSettings_Click); + // + // bSave + // + this.bSave.Image = global::spedytor.Properties.Resources.save; + this.bSave.Location = new System.Drawing.Point(12, 63); + this.bSave.Name = "bSave"; + this.bSave.Size = new System.Drawing.Size(140, 140); + this.bSave.TabIndex = 4; + this.bSave.UseVisualStyleBackColor = true; + this.bSave.Click += new System.EventHandler(this.bSave_Click); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(235, 212); + this.Controls.Add(this.bExit); + this.Controls.Add(this.bSettings); + this.Controls.Add(this.bSave); + this.Controls.Add(this.tBucketID); + this.Controls.Add(this.cSend); + this.Controls.Add(this.cbDatabaseName); + this.Controls.Add(this.lChooseDatabase); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "Form1"; + this.Text = "Spedytor"; + this.Load += new System.EventHandler(this.Form1_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label lChooseDatabase; + private System.Windows.Forms.ComboBox cbDatabaseName; + private System.Windows.Forms.CheckBox cSend; + private System.Windows.Forms.TextBox tBucketID; + private System.Windows.Forms.Button bSave; + private System.Windows.Forms.Button bSettings; + private System.Windows.Forms.Button bExit; + } +} + diff --git a/spedytor/Form1.cs b/spedytor/Form1.cs new file mode 100644 index 0000000..3b7676c --- /dev/null +++ b/spedytor/Form1.cs @@ -0,0 +1,104 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; +using MySql.Data.MySqlClient; +using System.IO; + +namespace spedytor +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private void bExit_Click(object sender, EventArgs e) + { + this.Dispose(); + } + + private void cSend_CheckedChanged(object sender, EventArgs e) + { + this.tBucketID.Enabled = this.cSend.Checked; + if (this.cSend.Checked) + { + this.tBucketID.Focus(); + } + } + + private void Form1_Load(object sender, EventArgs e) + { + if (!MySQL.getConfigured()) (new MysqlSettings()).ShowDialog(); + if (!MySQL.getConfigured()) this.Dispose(); + this.refreshDatabaseList(); + } + + private void bSettings_Click(object sender, EventArgs e) + { + (new MysqlSettings()).ShowDialog(); + this.refreshDatabaseList(); + } + + internal void refreshDatabaseList() + { + this.cbDatabaseName.Items.Clear(); + MySQL c = new MySQL(""); + MySqlDataReader dbs = c.select("SELECT TABLE_SCHEMA FROM information_schema.COLUMNS GROUP BY TABLE_SCHEMA;"); + while (dbs.Read()) + { + this.cbDatabaseName.Items.Add(dbs.GetString(0)); + } + this.cbDatabaseName.SelectedIndex = 0; + dbs.Close(); + } + + private void bSave_Click(object sender, EventArgs e) + { + this.Enabled = false; + Cursor.Current = Cursors.WaitCursor; + FolderBrowserDialog fd = new FolderBrowserDialog(); + if (fd.ShowDialog() == DialogResult.OK) + { + string filePath = Path.Combine(fd.SelectedPath, this.cbDatabaseName.SelectedItem.ToString() + DateTime.Now.ToString("-yyyyMMdd-HHmmss") + ".sql"); + try + { + MySQL c = new MySQL(this.cbDatabaseName.SelectedItem.ToString()); + c.backup(filePath); + c.close(); + MessageBox.Show("Wyeksportowano pomyślnie do pliku: " + filePath, "Sukces eksportu!", MessageBoxButtons.OK, MessageBoxIcon.Information); + if (cSend.Checked) { + if (tBucketID.Text.Length > 0) + { + S3 s3Client = new S3(); + s3Client.send(this.tBucketID.Text, filePath, this.cbDatabaseName.SelectedItem.ToString() + ".sql"); + MessageBox.Show("Wysłano Zimnemu!", "Sukces eksportu!", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + else + { + MessageBox.Show("Nie wpisałeś ID do wysłania Zimnemu!", "Błąd eksportu!", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + } + } + catch (Exception ex) + { + MessageBox.Show(ex.Message, "Błąd eksportu!", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + this.Enabled = true; + Cursor.Current = Cursors.Default; + } + + private void tBucketID_KeyPress(object sender, KeyPressEventArgs e) + { + if (e.KeyChar == (char)Keys.Return) + { + this.bSave_Click(null, null); + } + } + } +} diff --git a/spedytor/Form1.resx b/spedytor/Form1.resx new file mode 100644 index 0000000..f41cdd1 --- /dev/null +++ b/spedytor/Form1.resx @@ -0,0 +1,200 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + True + + + + + AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAgBAAAAAAAAAAAAAAAAAAAAAA + AAD19fUAgIGBAGFncgBjaXYAY2l1AGNpdQBjaXUAYmh1AF9mdQBrb3UCeHp4And4dwBzcnQAcGtyAG5o + cABtZ3AAbWdwAG5ocABwa3IAdHJ1AHh4dwB4eXgCbm9xAWhpagBqamwAamttAGprbQBqa20Aa2xuAGZn + aQCFhYYA+/v7AOvr7AAcGRUAUDMAAF4+AQBbPAAAWzwAAFg6AABePgABcE0AATokAAAAAAAAAQAADQAF + ADYOIgZfHjwRfiVHFo0kRxaMHTsQfAwgBF0ABAAzAAABCwEAAAAsIxIAR0ArAjw0IQE6MR4AOzMgADsz + IAA9NSIAMSoYACYmJAD09fUA6OnsACklGQDprA0A/8EVAP68FAD+uhQA/8cWAfe6F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CwDfpx4Xkb9WvXDKX/90xlX9esZV+3rHV/x4x1f+eMdX/3jHV/94x1f/eMdX/3jHV/94x1f/eMdX/nrH + V/x6xlX8dMZV/nDKX/+VvVOy46cbEfytCwDyrBEC+7ISAN2aBwAwKyEA8vP2AOjp7AApJBoA4J4NAPqy + FQD0rRQA868VAvqvEAH1rRgBwb5IaofMZulwy2L/cchb/nbIWf95yFn8eshZ+3rIWvt6yFr7eshZ+3nI + Wf12yFn/cchb/nDLYv+KzGXlxb1FYPesFgD5rxAC864VAvStFAD7sxYA3psLADMuJADy8/YA6OnsACYh + FQDflwAA+asBAPOmAAD0pwAA86cAAvSnAAP9pQAA8K0QEMS6NW2YwkrIfsRP+XLETv9vw0v/bsNK/27D + Sv9vw0z/c8RO/3/ET/eawkrEyLozZvKsDg38pQAA9KcAA/OnAAH0pwAA86YAAPqrAgDdlAAAMCsgAPLz + 9gD09PYAlZKNAPDPhwD92YsA+deKAPrXigD614oA+teKAPjXiwP71YUB/9WEAP7ZkADw4KQd3Oa1Sszp + vGvF57d7xee3e83pvGnd5rRH8d+iGv7ZjwD/1IMA+9WGAfjXiwP614oA+teKAPrXigD514oA/dmLAO7O + hgCal5IA+Pn6AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wH+//8E/v//Av// + /wD///8A////AP///wD///8A////AP///wD///8A/v//Av7//wT///8B////AP///wD///8A////AP// + /wD///8A////AP///wD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + + + \ No newline at end of file diff --git a/spedytor/MySQL.cs b/spedytor/MySQL.cs new file mode 100644 index 0000000..b0d4c18 --- /dev/null +++ b/spedytor/MySQL.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using MySql.Data.MySqlClient; + +namespace spedytor +{ + public class MySQL + { + private MySqlConnection conn; + private MySqlCommand cmd; + private string database; + + public MySQL(string database) + { + this.database = database; + connect(); + } + + public void connect() + { + conn = new MySqlConnection((database != "" ? ("Database=" + database + ";") : "") + + "Data Source=" + getHost() + ";User Id=" + getUser() + ";Password=" + getPass() + + ";Port=" + getPort() + ";charset=utf8;"); + + conn.Open(); + } + + public void close() + { + try + { + conn.Close(); + conn = null; + } + catch (Exception) + { + } + } + + public bool isOpen() + { + return conn != null; + } + + public static string test() + { + try + { + MySqlConnection conn = new MySqlConnection("Data Source=" + getHost() + ";User Id=" + getUser() + ";Password=" + getPass() + + ";Port=" + getPort() + ";charset=utf8;"); + conn.Open(); + } + catch (MySqlException e) + { + return e.Message; + } + catch (Exception e) + { + return "Prawdopodobnie brakuje Ci dll-ki od MySQL'a.\n\n" + e.Message; + } + return ""; + } + + public MySqlDataReader select(string query) + { + MySqlCommand comm = new MySqlCommand(query, conn); + return comm.ExecuteReader(); + } + + public static string getHost() { return Properties.Settings.Default.HOST; } + public static string getUser() { return Properties.Settings.Default.USER; } + public static string getPass() { return Properties.Settings.Default.PASS; } + public static string getPort() { return Properties.Settings.Default.PORT; } + public static bool getConfigured() { return Properties.Settings.Default.CONFIGURED; } + + internal void backup(string filePath) + { + cmd = new MySqlCommand(); + cmd.Connection = conn; + MySqlBackup backup = new MySqlBackup(cmd); + backup.ExportInfo.AddCreateDatabase = true; + backup.ExportToFile(filePath); + } + } +} diff --git a/spedytor/MysqlSettings.Designer.cs b/spedytor/MysqlSettings.Designer.cs new file mode 100644 index 0000000..2c233b8 --- /dev/null +++ b/spedytor/MysqlSettings.Designer.cs @@ -0,0 +1,107 @@ +namespace spedytor +{ + partial class MysqlSettings + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MysqlSettings)); + this.eHost = new System.Windows.Forms.TextBox(); + this.eUser = new System.Windows.Forms.TextBox(); + this.ePass = new System.Windows.Forms.TextBox(); + this.ePort = new System.Windows.Forms.TextBox(); + this.bOk = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // eHost + // + this.eHost.Location = new System.Drawing.Point(12, 12); + this.eHost.Name = "eHost"; + this.eHost.Size = new System.Drawing.Size(100, 20); + this.eHost.TabIndex = 0; + // + // eUser + // + this.eUser.Location = new System.Drawing.Point(12, 38); + this.eUser.Name = "eUser"; + this.eUser.Size = new System.Drawing.Size(100, 20); + this.eUser.TabIndex = 1; + // + // ePass + // + this.ePass.Location = new System.Drawing.Point(12, 64); + this.ePass.Name = "ePass"; + this.ePass.PasswordChar = '*'; + this.ePass.Size = new System.Drawing.Size(100, 20); + this.ePass.TabIndex = 2; + // + // ePort + // + this.ePort.Location = new System.Drawing.Point(12, 90); + this.ePort.Name = "ePort"; + this.ePort.Size = new System.Drawing.Size(100, 20); + this.ePort.TabIndex = 3; + // + // bOk + // + this.bOk.Location = new System.Drawing.Point(12, 116); + this.bOk.Name = "bOk"; + this.bOk.Size = new System.Drawing.Size(100, 23); + this.bOk.TabIndex = 4; + this.bOk.Text = "OK"; + this.bOk.UseVisualStyleBackColor = true; + this.bOk.Click += new System.EventHandler(this.button1_Click); + // + // MysqlSettings + // + this.AcceptButton = this.bOk; + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(124, 147); + this.Controls.Add(this.bOk); + this.Controls.Add(this.ePort); + this.Controls.Add(this.ePass); + this.Controls.Add(this.eUser); + this.Controls.Add(this.eHost); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Name = "MysqlSettings"; + this.Text = "Ustawienia MySQL"; + this.Load += new System.EventHandler(this.MysqlSettings_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.TextBox eHost; + private System.Windows.Forms.TextBox eUser; + private System.Windows.Forms.TextBox ePass; + private System.Windows.Forms.TextBox ePort; + private System.Windows.Forms.Button bOk; + } +} \ No newline at end of file diff --git a/spedytor/MysqlSettings.cs b/spedytor/MysqlSettings.cs new file mode 100644 index 0000000..c597bbd --- /dev/null +++ b/spedytor/MysqlSettings.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; + +namespace spedytor +{ + public partial class MysqlSettings : Form + { + public MysqlSettings() + { + InitializeComponent(); + } + + private void MysqlSettings_Load(object sender, EventArgs e) + { + eHost.Text = Properties.Settings.Default.HOST; + eUser.Text = Properties.Settings.Default.USER; + ePass.Text = Properties.Settings.Default.PASS; + ePort.Text = Properties.Settings.Default.PORT; + } + + private void button1_Click(object sender, EventArgs e) + { + Properties.Settings.Default.HOST = eHost.Text; + Properties.Settings.Default.USER = eUser.Text; + Properties.Settings.Default.PASS = ePass.Text; + Properties.Settings.Default.PORT = ePort.Text; + + string msg = MySQL.test(); + if (msg == "") + { + Properties.Settings.Default.CONFIGURED = true; + Properties.Settings.Default.Save(); + Close(); + } + else + { + MessageBox.Show(msg, "Nieprawidłowe ustawienia", MessageBoxButtons.OK, MessageBoxIcon.Stop); + } + } + } +} diff --git a/spedytor/MysqlSettings.resx b/spedytor/MysqlSettings.resx new file mode 100644 index 0000000..c473cfa --- /dev/null +++ b/spedytor/MysqlSettings.resx @@ -0,0 +1,197 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAgBAAAAAAAAAAAAAAAAAAAAAA + AAD19fUAgIGBAGFncgBjaXYAY2l1AGNpdQBjaXUAYmh1AF9mdQBrb3UCeHp4And4dwBzcnQAcGtyAG5o + cABtZ3AAbWdwAG5ocABwa3IAdHJ1AHh4dwB4eXgCbm9xAWhpagBqamwAamttAGprbQBqa20Aa2xuAGZn + aQCFhYYA+/v7AOvr7AAcGRUAUDMAAF4+AQBbPAAAWzwAAFg6AABePgABcE0AATokAAAAAAAAAQAADQAF + ADYOIgZfHjwRfiVHFo0kRxaMHTsQfAwgBF0ABAAzAAABCwEAAAAsIxIAR0ArAjw0IQE6MR4AOzMgADsz + IAA9NSIAMSoYACYmJAD09fUA6OnsACklGQDprA0A/8EVAP68FAD+uhQA/8cWAfe6FQF/UQYAHRoHJS9P + I4Bcl0LPdcFV+YDTXf+D2GD/hNlh/4TZYP+B113/fNFa/3G+UvdXkz/LLEofehYWEiBMRksAnJyZAaSk + oQGbmpgAnpyaAKCenACWlJMAOTk5APDw8ADo6ewAJiEWANyaCQD3rhEA7KYPAP+4EgK7ggsAFAkADhU6 + HX1krEvrgdVd/3/RXP56ylj/d8VW/XfEVvx2xFX8c8JR/HLCUfx0xFP9d8lW/3zRWf5901r/YKdE5xk2 + DnUMCA8LcXBzAJWWlgKIiIkAjY6OAIOEhAA1NTUA8fHxAOjp7AAmIRYA4J0JAPauEQD/uxICpXEJAAEG + BChKhjvGhtld/3zNWv52xFb8dsVW/HfGVv54x1j/d8ZV/3PEUf9zxFH/dMVS/3TFUv90xVP+dMRT/HPD + U/x6zVj+gNdd/0Z9ML0DBQIh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pwAA86YAAPqrAgDdlAAAMCsgAPLz + 9gD09PYAlZKNAPDPhwD92YsA+deKAPrXigD614oA+teKAPjXiwP71YUB/9WEAP7ZkADw4KQd3Oa1Sszp + vGvF57d7xee3e83pvGnd5rRH8d+iGv7ZjwD/1IMA+9WGAfjXiwP614oA+teKAPrXigD514oA/dmLAO7O + hgCal5IA+Pn6AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wH+//8E/v//Av// + /wD///8A////AP///wD///8A////AP///wD///8A/v//Av7//wT///8B////AP///wD///8A////AP// + /wD///8A////AP///wD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + + + \ No newline at end of file diff --git a/spedytor/Program.cs b/spedytor/Program.cs new file mode 100644 index 0000000..aafc441 --- /dev/null +++ b/spedytor/Program.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Windows.Forms; + +namespace spedytor +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/spedytor/Properties/AssemblyInfo.cs b/spedytor/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..0d09c23 --- /dev/null +++ b/spedytor/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("spedytor")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Hewlett-Packard Company")] +[assembly: AssemblyProduct("spedytor")] +[assembly: AssemblyCopyright("Copyright © Hewlett-Packard Company 2018")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("f40f0a87-ea23-4e47-8262-de884c6e08c8")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/spedytor/Properties/Resources.Designer.cs b/spedytor/Properties/Resources.Designer.cs new file mode 100644 index 0000000..bd2984b --- /dev/null +++ b/spedytor/Properties/Resources.Designer.cs @@ -0,0 +1,93 @@ +//------------------------------------------------------------------------------ +// +// 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 spedytor.Properties { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // 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", "2.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() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [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("spedytor.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap close { + get { + object obj = ResourceManager.GetObject("close", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap save { + get { + object obj = ResourceManager.GetObject("save", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap settings { + get { + object obj = ResourceManager.GetObject("settings", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/spedytor/Properties/Resources.resx b/spedytor/Properties/Resources.resx new file mode 100644 index 0000000..f3d303b --- /dev/null +++ b/spedytor/Properties/Resources.resx @@ -0,0 +1,130 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + ..\Resources\save.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\settings.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\305_Close_32x32_72.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/spedytor/Properties/S3Settings.Designer.cs b/spedytor/Properties/S3Settings.Designer.cs new file mode 100644 index 0000000..4eafd4c --- /dev/null +++ b/spedytor/Properties/S3Settings.Designer.cs @@ -0,0 +1,50 @@ +//------------------------------------------------------------------------------ +// +// 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 spedytor.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] + internal sealed partial class S3Settings : global::System.Configuration.ApplicationSettingsBase { + + private static S3Settings defaultInstance = ((S3Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new S3Settings()))); + + public static S3Settings Default { + get { + return defaultInstance; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string AWS_ACCESS_KEY { + get { + return ((string)(this["AWS_ACCESS_KEY"])); + } + set { + this["AWS_ACCESS_KEY"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string AWS_SECRET_KEY { + get { + return ((string)(this["AWS_SECRET_KEY"])); + } + set { + this["AWS_SECRET_KEY"] = value; + } + } + } +} diff --git a/spedytor/Properties/S3Settings.settings b/spedytor/Properties/S3Settings.settings new file mode 100644 index 0000000..fa43a0d --- /dev/null +++ b/spedytor/Properties/S3Settings.settings @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/spedytor/Properties/Settings.Designer.cs b/spedytor/Properties/Settings.Designer.cs new file mode 100644 index 0000000..9508165 --- /dev/null +++ b/spedytor/Properties/Settings.Designer.cs @@ -0,0 +1,86 @@ +//------------------------------------------------------------------------------ +// +// 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 spedytor.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.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; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("localhost")] + public string HOST { + get { + return ((string)(this["HOST"])); + } + set { + this["HOST"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("3306")] + public string PORT { + get { + return ((string)(this["PORT"])); + } + set { + this["PORT"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("root")] + public string USER { + get { + return ((string)(this["USER"])); + } + set { + this["USER"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string PASS { + get { + return ((string)(this["PASS"])); + } + set { + this["PASS"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool CONFIGURED { + get { + return ((bool)(this["CONFIGURED"])); + } + set { + this["CONFIGURED"] = value; + } + } + } +} diff --git a/spedytor/Properties/Settings.settings b/spedytor/Properties/Settings.settings new file mode 100644 index 0000000..503268a --- /dev/null +++ b/spedytor/Properties/Settings.settings @@ -0,0 +1,21 @@ + + + + + + localhost + + + 3306 + + + root + + + + + + False + + + \ No newline at end of file diff --git a/spedytor/Resources/305_Close_32x32_72.png b/spedytor/Resources/305_Close_32x32_72.png new file mode 100644 index 0000000..c355391 Binary files /dev/null and b/spedytor/Resources/305_Close_32x32_72.png differ diff --git a/spedytor/Resources/save.png b/spedytor/Resources/save.png new file mode 100644 index 0000000..3d74a12 Binary files /dev/null and b/spedytor/Resources/save.png differ diff --git a/spedytor/Resources/settings.png b/spedytor/Resources/settings.png new file mode 100644 index 0000000..99f2696 Binary files /dev/null and b/spedytor/Resources/settings.png differ diff --git a/spedytor/S3.cs b/spedytor/S3.cs new file mode 100644 index 0000000..ca52810 --- /dev/null +++ b/spedytor/S3.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Text; +using Amazon.S3; +using Amazon.S3.Model; +using System.IO; +using System.Windows.Forms; +using Amazon; + +namespace spedytor +{ + class S3 + { + private AmazonS3Client _client; + + public S3() + { + this._client = new AmazonS3Client(Properties.S3Settings.Default.AWS_ACCESS_KEY, Properties.S3Settings.Default.AWS_SECRET_KEY, RegionEndpoint.EUCentral1); + } + + public void send(string bucket, string filePath, string remotePath) + { + PutObjectRequest request = new PutObjectRequest { + BucketName = bucket, + Key = remotePath, + ContentBody = File.ReadAllText(filePath) }; + this._client.PutObject(request); + } + } +} diff --git a/spedytor/app.config b/spedytor/app.config new file mode 100644 index 0000000..e4e8f12 --- /dev/null +++ b/spedytor/app.config @@ -0,0 +1,29 @@ + + + + +
+
+ + + + + + + localhost + + + 3306 + + + root + + + + + + False + + + + diff --git a/spedytor/packages.config b/spedytor/packages.config new file mode 100644 index 0000000..3058511 --- /dev/null +++ b/spedytor/packages.config @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/spedytor/s3.config b/spedytor/s3.config new file mode 100644 index 0000000..84c5670 Binary files /dev/null and b/spedytor/s3.config differ diff --git a/spedytor/spedytor.csproj b/spedytor/spedytor.csproj new file mode 100644 index 0000000..4271d07 --- /dev/null +++ b/spedytor/spedytor.csproj @@ -0,0 +1,165 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {799D7BE1-4C53-4B14-9798-E0EE47451417} + WinExe + Properties + spedytor + spedytor + v3.5 + + + 512 + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\res\AWSSDK.Core.dll + + + ..\res\AWSSDK.S3.dll + + + False + ..\res\MySql.Data.dll + + + False + ..\res\MySqlBackup.dll + + + + + + + + + + Form + + + Form1.cs + + + + Form + + + MysqlSettings.cs + + + + + + True + True + S3Settings.settings + + + Form1.cs + + + MysqlSettings.cs + + + ResXFileCodeGenerator + Designer + Resources.Designer.cs + + + Designer + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + True + Resources.resx + + + True + Settings.settings + True + + + SettingsSingleFileGenerator + S3Settings.Designer.cs + + + + + + + + + + + False + Microsoft .NET Framework 4 Client Profile %28x86 and x64%29 + true + + + False + .NET Framework 3.5 SP1 Client Profile + false + + + False + .NET Framework 3.5 SP1 + false + + + False + Windows Installer 3.1 + true + + + + + \ No newline at end of file -- cgit v1.2.3