diff --git a/Mystter_SendTweet/Form1.Designer.cs b/Mystter_SendTweet/Form1.Designer.cs index c83f6c5..df526ef 100644 --- a/Mystter_SendTweet/Form1.Designer.cs +++ b/Mystter_SendTweet/Form1.Designer.cs @@ -43,6 +43,7 @@ partial class Form1 { this.languagesComboBox = new System.Windows.Forms.ToolStripComboBox(); this.helpMenuTitle = new System.Windows.Forms.ToolStripMenuItem(); this.aboutMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.showProfileMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.statusStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout(); this.SuspendLayout(); @@ -53,11 +54,10 @@ partial class Form1 { | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.richTextBox1.Font = new System.Drawing.Font("MS ゴシック", 12F); - this.richTextBox1.Location = new System.Drawing.Point(20, 40); - this.richTextBox1.Margin = new System.Windows.Forms.Padding(5, 4, 5, 4); + this.richTextBox1.Location = new System.Drawing.Point(12, 27); this.richTextBox1.Name = "richTextBox1"; this.richTextBox1.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical; - this.richTextBox1.Size = new System.Drawing.Size(646, 271); + this.richTextBox1.Size = new System.Drawing.Size(389, 182); this.richTextBox1.TabIndex = 1; this.richTextBox1.Text = ""; this.richTextBox1.TextChanged += new System.EventHandler(this.richTextBox1_TextChanged); @@ -67,10 +67,9 @@ partial class Form1 { // this.sendBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.sendBtn.Enabled = false; - this.sendBtn.Location = new System.Drawing.Point(543, 322); - this.sendBtn.Margin = new System.Windows.Forms.Padding(5, 4, 5, 4); + this.sendBtn.Location = new System.Drawing.Point(326, 215); this.sendBtn.Name = "sendBtn"; - this.sendBtn.Size = new System.Drawing.Size(125, 34); + this.sendBtn.Size = new System.Drawing.Size(75, 23); this.sendBtn.TabIndex = 2; this.sendBtn.Text = "Send"; this.sendBtn.UseVisualStyleBackColor = true; @@ -81,10 +80,9 @@ partial class Form1 { this.lengthLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.lengthLabel1.BackColor = System.Drawing.SystemColors.Control; this.lengthLabel1.Font = new System.Drawing.Font("MS UI Gothic", 14.25F); - this.lengthLabel1.Location = new System.Drawing.Point(235, 328); - this.lengthLabel1.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); + this.lengthLabel1.Location = new System.Drawing.Point(141, 219); this.lengthLabel1.Name = "lengthLabel1"; - this.lengthLabel1.Size = new System.Drawing.Size(202, 44); + this.lengthLabel1.Size = new System.Drawing.Size(121, 29); this.lengthLabel1.TabIndex = 3; this.lengthLabel1.Text = "0"; this.lengthLabel1.TextAlign = System.Drawing.ContentAlignment.TopRight; @@ -94,10 +92,9 @@ partial class Form1 { this.lengthLabel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.lengthLabel2.AutoSize = true; this.lengthLabel2.Font = new System.Drawing.Font("MS UI Gothic", 14.25F); - this.lengthLabel2.Location = new System.Drawing.Point(438, 328); - this.lengthLabel2.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); + this.lengthLabel2.Location = new System.Drawing.Point(263, 219); this.lengthLabel2.Name = "lengthLabel2"; - this.lengthLabel2.Size = new System.Drawing.Size(28, 29); + this.lengthLabel2.Size = new System.Drawing.Size(19, 19); this.lengthLabel2.TabIndex = 4; this.lengthLabel2.Text = "/"; // @@ -106,20 +103,18 @@ partial class Form1 { this.lengthLabel3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.lengthLabel3.AutoSize = true; this.lengthLabel3.Font = new System.Drawing.Font("MS UI Gothic", 14.25F); - this.lengthLabel3.Location = new System.Drawing.Point(468, 328); - this.lengthLabel3.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); + this.lengthLabel3.Location = new System.Drawing.Point(281, 219); this.lengthLabel3.Name = "lengthLabel3"; - this.lengthLabel3.Size = new System.Drawing.Size(58, 29); + this.lengthLabel3.Size = new System.Drawing.Size(39, 19); this.lengthLabel3.TabIndex = 5; this.lengthLabel3.Text = "140"; // // deleteBtn // this.deleteBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.deleteBtn.Location = new System.Drawing.Point(20, 322); - this.deleteBtn.Margin = new System.Windows.Forms.Padding(5, 4, 5, 4); + this.deleteBtn.Location = new System.Drawing.Point(12, 215); this.deleteBtn.Name = "deleteBtn"; - this.deleteBtn.Size = new System.Drawing.Size(205, 34); + this.deleteBtn.Size = new System.Drawing.Size(123, 23); this.deleteBtn.TabIndex = 7; this.deleteBtn.Text = "Delete Last Tweet"; this.deleteBtn.UseVisualStyleBackColor = true; @@ -130,10 +125,9 @@ partial class Form1 { this.statusStrip1.ImageScalingSize = new System.Drawing.Size(24, 24); this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.statusLabel1}); - this.statusStrip1.Location = new System.Drawing.Point(0, 382); + this.statusStrip1.Location = new System.Drawing.Point(0, 247); this.statusStrip1.Name = "statusStrip1"; - this.statusStrip1.Padding = new System.Windows.Forms.Padding(2, 0, 23, 0); - this.statusStrip1.Size = new System.Drawing.Size(688, 22); + this.statusStrip1.Size = new System.Drawing.Size(413, 22); this.statusStrip1.TabIndex = 8; this.statusStrip1.Text = "statusStrip1"; // @@ -151,8 +145,7 @@ partial class Form1 { this.helpMenuTitle}); this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Name = "menuStrip1"; - this.menuStrip1.Padding = new System.Windows.Forms.Padding(10, 3, 0, 3); - this.menuStrip1.Size = new System.Drawing.Size(688, 35); + this.menuStrip1.Size = new System.Drawing.Size(413, 24); this.menuStrip1.TabIndex = 9; this.menuStrip1.Text = "menuStrip1"; // @@ -160,15 +153,16 @@ partial class Form1 { // this.accountsMenuTitle.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.addAccountMenuItem, + this.showProfileMenuItem, this.accountsComboBox}); this.accountsMenuTitle.Name = "accountsMenuTitle"; - this.accountsMenuTitle.Size = new System.Drawing.Size(97, 29); + this.accountsMenuTitle.Size = new System.Drawing.Size(69, 20); this.accountsMenuTitle.Text = "Accounts"; // // addAccountMenuItem // this.addAccountMenuItem.Name = "addAccountMenuItem"; - this.addAccountMenuItem.Size = new System.Drawing.Size(197, 30); + this.addAccountMenuItem.Size = new System.Drawing.Size(181, 22); this.addAccountMenuItem.Text = "Add account"; this.addAccountMenuItem.Click += new System.EventHandler(this.addAccountMenuItem_Click); // @@ -176,7 +170,7 @@ partial class Form1 { // this.accountsComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.accountsComboBox.Name = "accountsComboBox"; - this.accountsComboBox.Size = new System.Drawing.Size(121, 33); + this.accountsComboBox.Size = new System.Drawing.Size(121, 23); this.accountsComboBox.SelectedIndexChanged += new System.EventHandler(this.accountsComboBox_SelectedIndexChanged); // // settingsMenuTitle @@ -186,14 +180,14 @@ partial class Form1 { this.wordWrapMenuItem, this.languageMenuItem}); this.settingsMenuTitle.Name = "settingsMenuTitle"; - this.settingsMenuTitle.Size = new System.Drawing.Size(88, 29); + this.settingsMenuTitle.Size = new System.Drawing.Size(61, 20); this.settingsMenuTitle.Text = "Settings"; // // topMostMenuItem // this.topMostMenuItem.CheckOnClick = true; this.topMostMenuItem.Name = "topMostMenuItem"; - this.topMostMenuItem.Size = new System.Drawing.Size(187, 30); + this.topMostMenuItem.Size = new System.Drawing.Size(134, 22); this.topMostMenuItem.Text = "Top Most"; this.topMostMenuItem.Click += new System.EventHandler(this.topMostMenuItem_Click); // @@ -201,7 +195,7 @@ partial class Form1 { // this.wordWrapMenuItem.CheckOnClick = true; this.wordWrapMenuItem.Name = "wordWrapMenuItem"; - this.wordWrapMenuItem.Size = new System.Drawing.Size(187, 30); + this.wordWrapMenuItem.Size = new System.Drawing.Size(134, 22); this.wordWrapMenuItem.Text = "Word Wrap"; this.wordWrapMenuItem.Click += new System.EventHandler(this.wordWrapMenuItem_Click); // @@ -210,14 +204,14 @@ partial class Form1 { this.languageMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.languagesComboBox}); this.languageMenuItem.Name = "languageMenuItem"; - this.languageMenuItem.Size = new System.Drawing.Size(187, 30); + this.languageMenuItem.Size = new System.Drawing.Size(134, 22); this.languageMenuItem.Text = "Language"; // // languagesComboBox // this.languagesComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.languagesComboBox.Name = "languagesComboBox"; - this.languagesComboBox.Size = new System.Drawing.Size(121, 33); + this.languagesComboBox.Size = new System.Drawing.Size(121, 23); this.languagesComboBox.SelectedIndexChanged += new System.EventHandler(this.toolStripComboBox1_SelectedIndexChanged); // // helpMenuTitle @@ -225,21 +219,28 @@ partial class Form1 { this.helpMenuTitle.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.aboutMenuItem}); this.helpMenuTitle.Name = "helpMenuTitle"; - this.helpMenuTitle.Size = new System.Drawing.Size(61, 29); + this.helpMenuTitle.Size = new System.Drawing.Size(44, 20); this.helpMenuTitle.Text = "Help"; // // aboutMenuItem // this.aboutMenuItem.Name = "aboutMenuItem"; - this.aboutMenuItem.Size = new System.Drawing.Size(146, 30); + this.aboutMenuItem.Size = new System.Drawing.Size(107, 22); this.aboutMenuItem.Text = "About"; this.aboutMenuItem.Click += new System.EventHandler(this.aboutMenuItem_Click); // + // showProfileMenuItem + // + this.showProfileMenuItem.Name = "showProfileMenuItem"; + this.showProfileMenuItem.Size = new System.Drawing.Size(181, 22); + this.showProfileMenuItem.Text = "Show profile"; + this.showProfileMenuItem.Click += new System.EventHandler(this.showProfileMenuItem_Click); + // // Form1 // - this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 18F); + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(688, 404); + this.ClientSize = new System.Drawing.Size(413, 269); this.Controls.Add(this.statusStrip1); this.Controls.Add(this.menuStrip1); this.Controls.Add(this.deleteBtn); @@ -251,7 +252,6 @@ partial class Form1 { this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.KeyPreview = true; this.MainMenuStrip = this.menuStrip1; - this.Margin = new System.Windows.Forms.Padding(5, 4, 5, 4); this.MaximizeBox = false; this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; @@ -287,6 +287,7 @@ partial class Form1 { private System.Windows.Forms.ToolStripMenuItem aboutMenuItem; private System.Windows.Forms.ToolStripMenuItem languageMenuItem; private System.Windows.Forms.ToolStripComboBox languagesComboBox; - } + private System.Windows.Forms.ToolStripMenuItem showProfileMenuItem; + } } diff --git a/Mystter_SendTweet/Form1.cs b/Mystter_SendTweet/Form1.cs index ae590da..4241654 100644 --- a/Mystter_SendTweet/Form1.cs +++ b/Mystter_SendTweet/Form1.cs @@ -7,6 +7,7 @@ using CoreTweet; using Mystter_SendTweet.Languages; using System.Net.NetworkInformation; +using System.Diagnostics; namespace Mystter_SendTweet { public partial class Form1 : Form { @@ -91,6 +92,11 @@ public partial class Form1 : Form { var lang = Localization.GetLanguageParent(selected); ChangeLanguage(lang); } + + // Show Profile + private void showProfileMenuItem_Click(object sender, EventArgs e) { + Process.Start("https://twitter.com/" + settings.SelectedItem); + } #endregion #region Method diff --git a/Mystter_SendTweet/Information.cs b/Mystter_SendTweet/Information.cs index 4a285ef..61becd6 100644 --- a/Mystter_SendTweet/Information.cs +++ b/Mystter_SendTweet/Information.cs @@ -2,7 +2,7 @@ public class Information { public const string Title = "Mystter - Send Tweet"; public const string TitleSimple = "Mystter"; - public const string Version = "1.1.19"; + public const string Version = "1.1.20"; public const string Developer = "Mystasly"; public const string Repository = "https://github.com/mystasly48/Mystter_SendTweet"; public const string Twitter = "https://twitter.com/30msl";