From 2c3727b890769ec7922c6db64a31ab3e77d126cc Mon Sep 17 00:00:00 2001 From: Michael Johne Date: Wed, 30 Dec 2020 02:45:26 +0100 Subject: [PATCH] Add files via upload --- EmojiLib/AboutBoxForm.cs | 50 ++-- EmojiLib/EmojiInfoForm.cs | 103 +++----- EmojiLib/EmojiLib.csproj | 1 + EmojiLib/EmojiSet.cs | 2 +- EmojiLib/GlobalSuppressions.cs | Bin 0 -> 4704 bytes EmojiLib/MainForm.Designer.cs | 2 +- EmojiLib/MainForm.cs | 425 ++++++++++++--------------------- EmojiLib/Program.cs | 11 +- 8 files changed, 214 insertions(+), 380 deletions(-) create mode 100644 EmojiLib/GlobalSuppressions.cs diff --git a/EmojiLib/AboutBoxForm.cs b/EmojiLib/AboutBoxForm.cs index ab08c21..3db24dc 100644 --- a/EmojiLib/AboutBoxForm.cs +++ b/EmojiLib/AboutBoxForm.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.Linq; +using System.IO; using System.Reflection; using System.Windows.Forms; @@ -13,12 +9,12 @@ internal partial class AboutBoxForm : Form public AboutBoxForm() { InitializeComponent(); - this.Text = String.Format("Info über {0}", AssemblyTitle); - this.labelProductName.Text = AssemblyProduct; - this.labelVersion.Text = String.Format("Version {0}", AssemblyVersion); - this.labelCopyright.Text = AssemblyCopyright; - this.labelCompanyName.Text = AssemblyCompany; - this.textBoxDescription.Text = AssemblyDescription; + Text = $"Info über {AssemblyTitle}"; + labelProductName.Text = AssemblyProduct; + labelVersion.Text = $"Version {AssemblyVersion}"; + labelCopyright.Text = AssemblyCopyright; + labelCompanyName.Text = AssemblyCompany; + textBoxDescription.Text = AssemblyDescription; } #region Assemblyattributaccessoren @@ -27,37 +23,31 @@ public static string AssemblyTitle { get { - object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false); + object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(attributeType: typeof(AssemblyTitleAttribute), inherit: false); if (attributes.Length > 0) { - AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0]; - if (titleAttribute.Title != "") + AssemblyTitleAttribute titleAttribute = attributes[0] as AssemblyTitleAttribute; + if (!string.IsNullOrEmpty(value: titleAttribute.Title)) { return titleAttribute.Title; } } - return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase); + return Path.GetFileNameWithoutExtension(path: Assembly.GetExecutingAssembly().CodeBase); } } - public static string AssemblyVersion - { - get - { - return Assembly.GetExecutingAssembly().GetName().Version.ToString(); - } - } + public static string AssemblyVersion => Assembly.GetExecutingAssembly().GetName().Version.ToString(); public static string AssemblyDescription { get { - object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false); + object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(attributeType: typeof(AssemblyDescriptionAttribute), inherit: false); if (attributes.Length == 0) { return ""; } - return ((AssemblyDescriptionAttribute)attributes[0]).Description; + return (attributes[0] as AssemblyDescriptionAttribute)?.Description; } } @@ -65,12 +55,12 @@ public static string AssemblyProduct { get { - object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false); + object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(attributeType: typeof(AssemblyProductAttribute), inherit: false); if (attributes.Length == 0) { return ""; } - return ((AssemblyProductAttribute)attributes[0]).Product; + return (attributes[0] as AssemblyProductAttribute)?.Product; } } @@ -78,12 +68,12 @@ public static string AssemblyCopyright { get { - object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false); + object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(attributeType: typeof(AssemblyCopyrightAttribute), inherit: false); if (attributes.Length == 0) { return ""; } - return ((AssemblyCopyrightAttribute)attributes[0]).Copyright; + return (attributes[0] as AssemblyCopyrightAttribute)?.Copyright; } } @@ -91,12 +81,12 @@ public static string AssemblyCompany { get { - object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false); + object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(attributeType: typeof(AssemblyCompanyAttribute), inherit: false); if (attributes.Length == 0) { return ""; } - return ((AssemblyCompanyAttribute)attributes[0]).Company; + return (attributes[0] as AssemblyCompanyAttribute)?.Company; } } #endregion diff --git a/EmojiLib/EmojiInfoForm.cs b/EmojiLib/EmojiInfoForm.cs index abfb933..69aa875 100644 --- a/EmojiLib/EmojiInfoForm.cs +++ b/EmojiLib/EmojiInfoForm.cs @@ -8,15 +8,15 @@ public partial class EmojiInfoForm : Form { public void SetTag(object tag) => Tag = tag; - public void SetCode(string code) => labelCodeDesc.Text = code; + public void SetUnicode(string code) => labelCodeDesc.Text = code; - public void SetShortName(string name) => labelShortNameDesc.Text = name; + public void SetFullName(string name) => labelShortNameDesc.Text = name; public void SetGroup(string group) => labelGroupDesc.Text = group; public void SetSubGroup(string subGroup) => labelSubGroupDesc.Text = subGroup; - public void SetAppleImageVersion(Image image) + public void SetAppleImage(Image image) { if (image == null) { @@ -29,7 +29,7 @@ public void SetAppleImageVersion(Image image) } } - public void SetGoogleImageVersion(Image image) + public void SetGoogleImage(Image image) { if (image == null) { @@ -42,7 +42,7 @@ public void SetGoogleImageVersion(Image image) } } - public void SetFacebookImageVersion(Image image) + public void SetFacebookImage(Image image) { if (image == null) { @@ -55,7 +55,7 @@ public void SetFacebookImageVersion(Image image) } } - public void SetWindowsImageVersion(Image image) + public void SetWindowsImage(Image image) { if (image == null) { @@ -68,7 +68,7 @@ public void SetWindowsImageVersion(Image image) } } - public void SetTwitterImageVersion(Image image) + public void SetTwitterImage(Image image) { if (image == null) { @@ -81,7 +81,7 @@ public void SetTwitterImageVersion(Image image) } } - public void SetJoyPixelsImageVersion(Image image) + public void SetJoyPixelsImage(Image image) { if (image == null) { @@ -94,7 +94,7 @@ public void SetJoyPixelsImageVersion(Image image) } } - public void SetSamsungImageVersion(Image image) + public void SetSamsungImage(Image image) { if (image == null) { @@ -107,7 +107,7 @@ public void SetSamsungImageVersion(Image image) } } - public void SetGmailImageVersion(Image image) + public void SetGmailImage(Image image) { if (image == null) { @@ -120,7 +120,7 @@ public void SetGmailImageVersion(Image image) } } - public void SetDocomoImageVersion(Image image) + public void SetDocomoImage(Image image) { if (image == null) { @@ -133,7 +133,7 @@ public void SetDocomoImageVersion(Image image) } } - public void SetKddiImageVersion(Image image) + public void SetKddiImage(Image image) { if (image == null) { @@ -146,7 +146,7 @@ public void SetKddiImageVersion(Image image) } } - public void SetSoftbankImageVersion(Image image) + public void SetSoftbankImage(Image image) { if (image == null) { @@ -330,122 +330,89 @@ private void PictureBoxSoftbank_MouseLeave(object sender, EventArgs e) private void PictureBoxApple_Click(object sender, EventArgs e) { - if (pictureBoxApple.Image != null) + if (pictureBoxApple.Image != null && saveFileDialogAsPng.ShowDialog() == DialogResult.OK) { - if (saveFileDialogAsPng.ShowDialog() == DialogResult.OK) - { - pictureBoxApple.Image.Save(filename: saveFileDialogAsPng.FileName); - } + pictureBoxApple.Image.Save(filename: saveFileDialogAsPng.FileName); } } private void PictureBoxGoogle_Click(object sender, EventArgs e) { - if (pictureBoxGoogle.Image != null) + if (pictureBoxGoogle.Image != null && saveFileDialogAsPng.ShowDialog() == DialogResult.OK) { - if (saveFileDialogAsPng.ShowDialog() == DialogResult.OK) - { - pictureBoxGoogle.Image.Save(filename: saveFileDialogAsPng.FileName); - } + pictureBoxGoogle.Image.Save(filename: saveFileDialogAsPng.FileName); } } private void PictureBoxFacebook_Click(object sender, EventArgs e) { - if (pictureBoxFacebook.Image != null) + if (pictureBoxFacebook.Image != null && saveFileDialogAsPng.ShowDialog() == DialogResult.OK) { - if (saveFileDialogAsPng.ShowDialog() == DialogResult.OK) - { - pictureBoxFacebook.Image.Save(filename: saveFileDialogAsPng.FileName); - } + pictureBoxFacebook.Image.Save(filename: saveFileDialogAsPng.FileName); } } private void PictureBoxWindows_Click(object sender, EventArgs e) { - if (pictureBoxWindows.Image != null) + if (pictureBoxWindows.Image != null && saveFileDialogAsPng.ShowDialog() == DialogResult.OK) { - if (saveFileDialogAsPng.ShowDialog() == DialogResult.OK) - { - pictureBoxWindows.Image.Save(filename: saveFileDialogAsPng.FileName); - } + pictureBoxWindows.Image.Save(filename: saveFileDialogAsPng.FileName); } } private void PictureBoxTwitter_Click(object sender, EventArgs e) { - if (pictureBoxTwitter.Image != null) + if (pictureBoxTwitter.Image != null && saveFileDialogAsPng.ShowDialog() == DialogResult.OK) { - if (saveFileDialogAsPng.ShowDialog() == DialogResult.OK) - { - pictureBoxTwitter.Image.Save(filename: saveFileDialogAsPng.FileName); - } + pictureBoxTwitter.Image.Save(filename: saveFileDialogAsPng.FileName); } } private void PictureBoxJoyPixels_Click(object sender, EventArgs e) { - if (pictureBoxJoyPixels.Image != null) + if (pictureBoxJoyPixels.Image != null && saveFileDialogAsPng.ShowDialog() == DialogResult.OK) { - if (saveFileDialogAsPng.ShowDialog() == DialogResult.OK) - { - pictureBoxJoyPixels.Image.Save(filename: saveFileDialogAsPng.FileName); - } + pictureBoxJoyPixels.Image.Save(filename: saveFileDialogAsPng.FileName); } } private void PictureBoxSamsung_Click(object sender, EventArgs e) { - if (pictureBoxSamsung.Image != null) + if (pictureBoxSamsung.Image != null && saveFileDialogAsPng.ShowDialog() == DialogResult.OK) { - if (saveFileDialogAsPng.ShowDialog() == DialogResult.OK) - { - pictureBoxSamsung.Image.Save(filename: saveFileDialogAsPng.FileName); - } + pictureBoxSamsung.Image.Save(filename: saveFileDialogAsPng.FileName); } } private void PictureBoxGmail_Click(object sender, EventArgs e) { - if (pictureBoxGmail.Image != null) + if (pictureBoxGmail.Image != null && saveFileDialogAsGif.ShowDialog() == DialogResult.OK) { - if (saveFileDialogAsGif.ShowDialog() == DialogResult.OK) - { - pictureBoxGmail.Image.Save(filename: saveFileDialogAsGif.FileName); - } + pictureBoxGmail.Image.Save(filename: saveFileDialogAsGif.FileName); } } private void PictureBoxDocomo_Click(object sender, EventArgs e) { - if (pictureBoxDocomo.Image != null) + if (pictureBoxDocomo.Image != null && saveFileDialogAsGif.ShowDialog() == DialogResult.OK) { - if (saveFileDialogAsGif.ShowDialog() == DialogResult.OK) - { - pictureBoxDocomo.Image.Save(filename: saveFileDialogAsGif.FileName); - } + pictureBoxDocomo.Image.Save(filename: saveFileDialogAsGif.FileName); } } private void PictureBoxKddi_Click(object sender, EventArgs e) { - if (pictureBoxKddi.Image != null) + if (pictureBoxKddi.Image != null && saveFileDialogAsGif.ShowDialog() == DialogResult.OK) { - if (saveFileDialogAsGif.ShowDialog() == DialogResult.OK) - { - pictureBoxKddi.Image.Save(filename: saveFileDialogAsGif.FileName); - } + pictureBoxKddi.Image.Save(filename: saveFileDialogAsGif.FileName); } } private void PictureBoxSoftbank_Click(object sender, EventArgs e) { - if (pictureBoxSoftbank.Image != null) + if (pictureBoxSoftbank.Image != null && saveFileDialogAsGif.ShowDialog() == DialogResult.OK) { - if (saveFileDialogAsGif.ShowDialog() == DialogResult.OK) - { - pictureBoxSoftbank.Image.Save(filename: saveFileDialogAsGif.FileName); - } + pictureBoxSoftbank.Image.Save(filename: saveFileDialogAsGif.FileName); } } } diff --git a/EmojiLib/EmojiLib.csproj b/EmojiLib/EmojiLib.csproj index dbafeaa..6f22b00 100644 --- a/EmojiLib/EmojiLib.csproj +++ b/EmojiLib/EmojiLib.csproj @@ -152,6 +152,7 @@ True FaceHat.resx + True True diff --git a/EmojiLib/EmojiSet.cs b/EmojiLib/EmojiSet.cs index dc6ddf8..9fe492c 100644 --- a/EmojiLib/EmojiSet.cs +++ b/EmojiLib/EmojiSet.cs @@ -2,7 +2,7 @@ namespace EmojiLib { - public class EmojiSet + public static class EmojiSet { internal static readonly Emoji grinningFace = new Emoji(character: "😀", unicode: "U+1F600", group: Resources.smileysAndEmotion, subGroup: Resources.faceSmiling, shortName: "", fullName: "grinning face", description: "", appleIcon: FaceSmiling.GrinningFaceApple, googleIcon: FaceSmiling.GrinningFaceGoogle, facebookIcon: FaceSmiling.GrinningFaceFacebook, windowsIcon: FaceSmiling.GrinningFaceWindows, twitterIcon: FaceSmiling.GrinningFaceTwitter, joypixelsIcon: FaceSmiling.GrinningFaceJoyPixels, samsungIcon: FaceSmiling.GrinningFaceSamsung, gmailIcon: FaceSmiling.GrinningFaceGmail, docomoIcon: null, kddiIcon: null, softbankIcon: null); internal static readonly Emoji grinningFaceWithBigEyes = new Emoji(character: "😃", unicode: "U+1F600", group: Resources.smileysAndEmotion, subGroup: Resources.faceSmiling, shortName: "", fullName: "grinning face with big eyes", description: "", appleIcon: FaceSmiling.GrinningFaceWithBigEyesApple, googleIcon: FaceSmiling.GrinningFaceWithBigEyesGoogle, facebookIcon: FaceSmiling.GrinningFaceWithBigEyesFacebook, windowsIcon: FaceSmiling.GrinningFaceWithBigEyesWindows, twitterIcon: FaceSmiling.GrinningFaceWithBigEyesTwitter, joypixelsIcon: FaceSmiling.GrinningFaceWithBigEyesJoyPixels, samsungIcon: FaceSmiling.GrinningFaceWithBigEyesSamsung, gmailIcon: FaceSmiling.GrinningFaceWithBigEyesGmail, docomoIcon: FaceSmiling.GrinningFaceWithBigEyesDocomo, kddiIcon: FaceSmiling.GrinningFaceWithBigEyesKddi, softbankIcon: FaceSmiling.GrinningFaceWithBigEyesSoftbank); diff --git a/EmojiLib/GlobalSuppressions.cs b/EmojiLib/GlobalSuppressions.cs new file mode 100644 index 0000000000000000000000000000000000000000..e5b8c7de07c48f23217eb7c144da2fb39e5c7438 GIT binary patch literal 4704 zcmeI0OK;Oa5Xa|?#CNd5rIp(75)wkmFw>3?i$aX07gL6W_??0QZ z?UYm;dVqqWWS!mF*?IhDcE&%xzq4H{`J^_sJsa5cNo~bC%!o_j94EHVSzUV!j|ozUS7s-S z72^c%9a}@H4kz~Prrow1b_Y58oRGpLWB(W1vPaMs=%IZto%bi!Bw;b<(3WG1wZ!f_ z=eEXuI27#7k+<98yRu-LCgs|~+6#2~=n_`8I+vi2yc3r@o;-#^wy&k!MuWmFRh`QB z5Sj_xGJDE*52@@RtL<>8Y_PCs=c?XcE$cyZ{Nn-(p!iu93Lr` z$(b40A+w3km5f5rk^d7CGpEn#?L&Rhot{#SG3CbJW(*NC^}A5{eRw8vnm4ra>fe4B{;6Ks@LEJwM@}7-5;=w6&X+%{ zy+T{%?Ojlq`BMctn>Fh#Dpq~&Sx-*_Lt9wPaSjU!z4Ei7MUI%$?Vs3N*J8v|=y(;EwH%T_oJKB<=;OZ9JG~Qj@AEA^ zf`jHY$1y9?z4reUUaD@_-GbZXlIi?e6;SLICATs_%nLL4A2;k%%NObs$<>EidIzt_ z3(};CsUW#%mRnbLlU;t%VN;t+`&}sO+_VO6tM4is_d9#n!+mjrdN;~0w P`T4;zzd}NYQR(s%W-~!G literal 0 HcmV?d00001 diff --git a/EmojiLib/MainForm.Designer.cs b/EmojiLib/MainForm.Designer.cs index 29f223b..0b71b42 100644 --- a/EmojiLib/MainForm.Designer.cs +++ b/EmojiLib/MainForm.Designer.cs @@ -4347,7 +4347,7 @@ private void InitializeComponent() this.labelCopiedStatus.Image = global::EmojiLib.Properties.Resources.fatcow_clipboard_paste; this.labelCopiedStatus.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.labelCopiedStatus.Name = "labelCopiedStatus"; - this.labelCopiedStatus.Size = new System.Drawing.Size(285, 17); + this.labelCopiedStatus.Size = new System.Drawing.Size(254, 17); this.labelCopiedStatus.Spring = true; this.labelCopiedStatus.Text = "Copied"; this.labelCopiedStatus.TextAlign = System.Drawing.ContentAlignment.MiddleRight; diff --git a/EmojiLib/MainForm.cs b/EmojiLib/MainForm.cs index 420f17b..66332ee 100644 --- a/EmojiLib/MainForm.cs +++ b/EmojiLib/MainForm.cs @@ -1,7 +1,9 @@ using System; using System.Collections.Generic; using System.Drawing; +using System.Globalization; using System.Linq; +using System.Reflection; using System.Runtime.InteropServices; using System.Windows.Forms; using EmojiLib.Properties; @@ -26,7 +28,7 @@ private void MainForm_Load(object sender, EventArgs e) private static void SomethingWentWrong() { - MessageBox.Show(Resources.somethingWentWrong, Resources.errorTitle, MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1); + MessageBox.Show(text: Resources.somethingWentWrong, caption: Resources.errorTitle, buttons: MessageBoxButtons.OK, icon: MessageBoxIcon.Error, defaultButton: MessageBoxDefaultButton.Button1); } private void SetStatusbar(string text) @@ -45,83 +47,83 @@ private void SetStatusbar_Enter(object sender, EventArgs e) { if (sender is TextBox textBox) { - SetStatusbar(text: (textBox).AccessibleDescription); + SetStatusbar(text: textBox.AccessibleDescription); } else if (sender is Button button) { - SetStatusbar(text: (button).AccessibleDescription); + SetStatusbar(text: button.AccessibleDescription); } else if (sender is RadioButton radioButton) { - SetStatusbar(text: (radioButton).AccessibleDescription); + SetStatusbar(text: radioButton.AccessibleDescription); } else if (sender is CheckBox checkBox) { - SetStatusbar(text: (checkBox).AccessibleDescription); + SetStatusbar(text: checkBox.AccessibleDescription); } else if (sender is DateTimePicker dateTimePicker) { - SetStatusbar(text: (dateTimePicker).AccessibleDescription); + SetStatusbar(text: dateTimePicker.AccessibleDescription); } else if (sender is Label label) { - SetStatusbar(text: (label).AccessibleDescription); + SetStatusbar(text: label.AccessibleDescription); } else if (sender is PictureBox pictureBox) { - SetStatusbar(text: (pictureBox).AccessibleDescription); + SetStatusbar(text: pictureBox.AccessibleDescription); } else if (sender is ToolStripButton toolStripButton) { - SetStatusbar(text: (toolStripButton).AccessibleDescription); + SetStatusbar(text: toolStripButton.AccessibleDescription); } else if (sender is ToolStripMenuItem toolStripMenuItem) { - SetStatusbar(text: (toolStripMenuItem).AccessibleDescription); + SetStatusbar(text: toolStripMenuItem.AccessibleDescription); } else if (sender is ToolStripLabel toolStripLabel) { - SetStatusbar(text: (toolStripLabel).AccessibleDescription); + SetStatusbar(text: toolStripLabel.AccessibleDescription); } else if (sender is ToolStripComboBox toolStripComboBox) { - SetStatusbar(text: (toolStripComboBox).AccessibleDescription); + SetStatusbar(text: toolStripComboBox.AccessibleDescription); } else if (sender is ToolStripDropDown toolStripDropDown) { - SetStatusbar(text: (toolStripDropDown).AccessibleDescription); + SetStatusbar(text: toolStripDropDown.AccessibleDescription); } else if (sender is ToolStripDropDownButton toolStripDropDownButton) { - SetStatusbar(text: (toolStripDropDownButton).AccessibleDescription); + SetStatusbar(text: toolStripDropDownButton.AccessibleDescription); } else if (sender is ToolStripDropDownItem toolStripDropDownItem) { - SetStatusbar(text: (toolStripDropDownItem).AccessibleDescription); + SetStatusbar(text: toolStripDropDownItem.AccessibleDescription); } else if (sender is ToolStripDropDownMenu toolStripDropDownMenu) { - SetStatusbar(text: (toolStripDropDownMenu).AccessibleDescription); + SetStatusbar(text: toolStripDropDownMenu.AccessibleDescription); } else if (sender is ToolStripProgressBar toolStripProgressBar2) { - SetStatusbar(text: (toolStripProgressBar2).AccessibleDescription); + SetStatusbar(text: toolStripProgressBar2.AccessibleDescription); } else if (sender is ToolStripSplitButton toolStripSplitButton) { - SetStatusbar(text: (toolStripSplitButton).AccessibleDescription); + SetStatusbar(text: toolStripSplitButton.AccessibleDescription); } else if (sender is ToolStripSeparator toolStripSeparator) { - SetStatusbar(text: (toolStripSeparator).AccessibleDescription); + SetStatusbar(text: toolStripSeparator.AccessibleDescription); } else if (sender is ToolStripStatusLabel toolStripStatusLabel) { - SetStatusbar(text: (toolStripStatusLabel).AccessibleDescription); + SetStatusbar(text: toolStripStatusLabel.AccessibleDescription); } else if (sender is ToolStripTextBox toolStripTextBox) { - SetStatusbar(text: (toolStripTextBox).AccessibleDescription); + SetStatusbar(text: toolStripTextBox.AccessibleDescription); } } @@ -158,21 +160,21 @@ private static void ShowEmojiInfo(string code, string shortName, string group, s { using (EmojiInfoForm emojiInfo = new EmojiInfoForm()) { - emojiInfo.SetCode(code); - emojiInfo.SetShortName(shortName); - emojiInfo.SetGroup(group); - emojiInfo.SetSubGroup(subGroup); - emojiInfo.SetAppleImageVersion(appleVersion); - emojiInfo.SetGoogleImageVersion(googleVersion); - emojiInfo.SetFacebookImageVersion(facebookVersion); - emojiInfo.SetWindowsImageVersion(windowsVersion); - emojiInfo.SetTwitterImageVersion(twitterVersion); - emojiInfo.SetJoyPixelsImageVersion(joypixelsVersion); - emojiInfo.SetSamsungImageVersion(samsungVersion); - emojiInfo.SetGmailImageVersion(gmailVersion); - emojiInfo.SetDocomoImageVersion(docomoVersion); - emojiInfo.SetKddiImageVersion(kddiVersion); - emojiInfo.SetSoftbankImageVersion(softbankVersion); + emojiInfo.SetUnicode(code: code); + emojiInfo.SetFullName(name: shortName); + emojiInfo.SetGroup(group: group); + emojiInfo.SetSubGroup(subGroup: subGroup); + emojiInfo.SetAppleImage(image: appleVersion); + emojiInfo.SetGoogleImage(image: googleVersion); + emojiInfo.SetFacebookImage(image: facebookVersion); + emojiInfo.SetWindowsImage(image: windowsVersion); + emojiInfo.SetTwitterImage(image: twitterVersion); + emojiInfo.SetJoyPixelsImage(image: joypixelsVersion); + emojiInfo.SetSamsungImage(image: samsungVersion); + emojiInfo.SetGmailImage(image: gmailVersion); + emojiInfo.SetDocomoImage(image: docomoVersion); + emojiInfo.SetKddiImage(image: kddiVersion); + emojiInfo.SetSoftbankImage(image: softbankVersion); emojiInfo.ShowDialog(); } } @@ -187,21 +189,21 @@ private void ShowEmojiInfo2(Emoji emoji) { using (EmojiInfoForm emojiInfo = new EmojiInfoForm()) { - emojiInfo.SetCode(code: emoji.Unicode); - emojiInfo.SetShortName(name: emoji.FullName); + emojiInfo.SetUnicode(code: emoji.Unicode); + emojiInfo.SetFullName(name: emoji.FullName); emojiInfo.SetGroup(group: emoji.Group); emojiInfo.SetSubGroup(subGroup: emoji.SubGroup); - emojiInfo.SetAppleImageVersion(image: emoji.AppleIcon); - emojiInfo.SetGoogleImageVersion(image: emoji.GoogleIcon); - emojiInfo.SetFacebookImageVersion(image: emoji.FacebookIcon); - emojiInfo.SetWindowsImageVersion(image: emoji.WindowsIcon); - emojiInfo.SetTwitterImageVersion(image: emoji.TwitterIcon); - emojiInfo.SetJoyPixelsImageVersion(image: emoji.JoypixelsIcon); - emojiInfo.SetSamsungImageVersion(image: emoji.SamsungIcon); - emojiInfo.SetGmailImageVersion(image: emoji.GmailIcon); - emojiInfo.SetDocomoImageVersion(image: emoji.DocomoIcon); - emojiInfo.SetKddiImageVersion(image: emoji.KddiIcon); - emojiInfo.SetSoftbankImageVersion(image: emoji.SoftbankIcon); + emojiInfo.SetAppleImage(image: emoji.AppleIcon); + emojiInfo.SetGoogleImage(image: emoji.GoogleIcon); + emojiInfo.SetFacebookImage(image: emoji.FacebookIcon); + emojiInfo.SetWindowsImage(image: emoji.WindowsIcon); + emojiInfo.SetTwitterImage(image: emoji.TwitterIcon); + emojiInfo.SetJoyPixelsImage(image: emoji.JoypixelsIcon); + emojiInfo.SetSamsungImage(image: emoji.SamsungIcon); + emojiInfo.SetGmailImage(image: emoji.GmailIcon); + emojiInfo.SetDocomoImage(image: emoji.DocomoIcon); + emojiInfo.SetKddiImage(image: emoji.KddiIcon); + emojiInfo.SetSoftbankImage(image: emoji.SoftbankIcon); emojiInfo.ShowDialog(); } } @@ -218,24 +220,40 @@ private void SetCopiedToClipboardStatus() private void CopyToClipboard(string text) { - if (!string.IsNullOrEmpty(text)) + if (!string.IsNullOrEmpty(value: text)) { try { - Clipboard.SetText(text); + Clipboard.SetText(text: text); SetCopiedToClipboardStatus(); } catch (ExternalException exception) { - MessageBox.Show(exception.Message); + MessageBox.Show(text: exception.Message, caption: Resources.warningTitle, buttons: MessageBoxButtons.OK, icon: MessageBoxIcon.Warning, defaultButton: MessageBoxDefaultButton.Button1); } } } + private void SetButtonSizeInTabs(int width, int height) + { + toolStripProgressBar.Visible = true; + foreach (Button button in flowLayoutPanelSmileys.Controls.OfType