From 2953c40b034b1a61d85071f536bcc68ee35cc1cf Mon Sep 17 00:00:00 2001 From: Maisu Date: Mon, 20 Apr 2020 14:37:54 +0900 Subject: [PATCH] Fix title and titlesimple (last commit is not good) --- Mystter_SendTweet/AboutForm.cs | 2 +- Mystter_SendTweet/AuthBrowser.cs | 2 +- Mystter_SendTweet/Form1.cs | 12 ++++++------ Mystter_SendTweet/Information.cs | 3 ++- Mystter_SendTweet/Mystter_SendTweet.csproj | 1 - 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Mystter_SendTweet/AboutForm.cs b/Mystter_SendTweet/AboutForm.cs index 7f72da2..8e3e303 100644 --- a/Mystter_SendTweet/AboutForm.cs +++ b/Mystter_SendTweet/AboutForm.cs @@ -31,7 +31,7 @@ private void ApplyInformation() { } private void ApplyLocalization() { - this.Text = Information.Title + " - " + Resources.About; + this.Text = Information.TitleSimple + " - " + Resources.About; verLabelTitle.Text = Resources.Version + ":"; developerLabelTitle.Text = Resources.Developer + ":"; repoLinkLabelTitle.Text = Resources.ProjectRepository + ":"; diff --git a/Mystter_SendTweet/AuthBrowser.cs b/Mystter_SendTweet/AuthBrowser.cs index 872ee4f..443fd09 100644 --- a/Mystter_SendTweet/AuthBrowser.cs +++ b/Mystter_SendTweet/AuthBrowser.cs @@ -45,7 +45,7 @@ private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentComp } private void AuthBrowser_Load(object sender, EventArgs e) { - Text = Information.Title + " - " + Resources.OAuth; + Text = Information.TitleSimple + " - " + Resources.OAuth; webBrowser1.Navigate(URL); } diff --git a/Mystter_SendTweet/Form1.cs b/Mystter_SendTweet/Form1.cs index c34c6ed..538c096 100644 --- a/Mystter_SendTweet/Form1.cs +++ b/Mystter_SendTweet/Form1.cs @@ -187,7 +187,7 @@ private void ChangeSelectedItem(string item) { accountsComboBox.SelectedItem = item; settings.SelectedItem = item; SaveSettings(); - Text = item + " / " + Information.Title; + Text = item + " / " + Information.TitleSimple; } } @@ -300,7 +300,7 @@ private void TwitterInit() { } tokens = GetAccountTokens(settings.SelectedItem); accountsComboBox.SelectedItem = settings.SelectedItem; - Text = settings.SelectedItem + " / " + Information.Title; + Text = settings.SelectedItem + " / " + Information.TitleSimple; } else { AddAccount(); } @@ -315,7 +315,7 @@ private void AddAccount() { var _tokens = s.GetTokens(form.PIN); SetAccountTokens(_tokens); } else if (settings.Twitter.Count == 0) { - var result = MessageBox.Show(Resources.yetAdded1 + NewLine + Resources.yetAdded2, Information.Title, MessageBoxButtons.YesNo, MessageBoxIcon.Warning); + var result = MessageBox.Show(Resources.yetAdded1 + NewLine + Resources.yetAdded2, Information.TitleSimple, MessageBoxButtons.YesNo, MessageBoxIcon.Warning); switch (result) { case DialogResult.Yes: goto START; @@ -331,14 +331,14 @@ private void AddAccount() { private void DeleteLatestTweet() { var latest = tokens.Account.UpdateProfile().Status; - var msgResult = MessageBox.Show(Resources.deleteComfirm + NewLine + "------------------------------" + NewLine + latest.Text + NewLine + "------------------------------", Information.Title, MessageBoxButtons.YesNo, MessageBoxIcon.Question); + var msgResult = MessageBox.Show(Resources.deleteComfirm + NewLine + "------------------------------" + NewLine + latest.Text + NewLine + "------------------------------", Information.TitleSimple, MessageBoxButtons.YesNo, MessageBoxIcon.Question); switch (msgResult) { case DialogResult.Yes: tokens.Statuses.Destroy(latest.Id); - MessageBox.Show(Resources.deleteYes, Information.Title); + MessageBox.Show(Resources.deleteYes, Information.TitleSimple); break; case DialogResult.No: - MessageBox.Show(Resources.deleteNo, Information.Title); + MessageBox.Show(Resources.deleteNo, Information.TitleSimple); break; } } diff --git a/Mystter_SendTweet/Information.cs b/Mystter_SendTweet/Information.cs index e0df698..2408aa6 100644 --- a/Mystter_SendTweet/Information.cs +++ b/Mystter_SendTweet/Information.cs @@ -1,6 +1,7 @@ namespace Mystter_SendTweet { public class Information { - public const string Title = "Mystter"; + public const string Title = "Mystter - Send Tweet"; + public const string TitleSimple = "Mystter"; public const string Version = "1.3.3"; public const string Developer = "Mystasly"; public const string Repository = "https://github.com/mystasly48/Mystter_SendTweet"; diff --git a/Mystter_SendTweet/Mystter_SendTweet.csproj b/Mystter_SendTweet/Mystter_SendTweet.csproj index 221df10..c2219ac 100644 --- a/Mystter_SendTweet/Mystter_SendTweet.csproj +++ b/Mystter_SendTweet/Mystter_SendTweet.csproj @@ -165,7 +165,6 @@ Always - Always