Allow translation window to show.
This commit is contained in:
parent
c017cb42a3
commit
82a06495df
1
EduNetworkBuilder/OptionsWindow.Designer.cs
generated
1
EduNetworkBuilder/OptionsWindow.Designer.cs
generated
@ -127,6 +127,7 @@
|
||||
this.tbMessage.Name = "tbMessage";
|
||||
this.tbMessage.Size = new System.Drawing.Size(306, 60);
|
||||
this.tbMessage.TabIndex = 9;
|
||||
this.tbMessage.MouseDown += new System.Windows.Forms.MouseEventHandler(this.tbMessage_MouseDown);
|
||||
//
|
||||
// lblNetMessage
|
||||
//
|
||||
|
@ -433,5 +433,15 @@ namespace EduNetworkBuilder
|
||||
Location = tLocation;
|
||||
}
|
||||
}
|
||||
|
||||
private void tbMessage_MouseDown(object sender, MouseEventArgs e)
|
||||
{
|
||||
if(ModifierKeys == Keys.Control && e.Button == MouseButtons.Left)
|
||||
{
|
||||
//ctrl-click -- open translators window
|
||||
TranslationWindow TW = new TranslationWindow();
|
||||
TW.Show();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
2
EduNetworkBuilder/TranslationWindow.Designer.cs
generated
2
EduNetworkBuilder/TranslationWindow.Designer.cs
generated
@ -76,6 +76,7 @@
|
||||
this.btnClose.TabIndex = 13;
|
||||
this.btnClose.Text = "Close";
|
||||
this.btnClose.UseVisualStyleBackColor = true;
|
||||
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
|
||||
//
|
||||
// btnSave
|
||||
//
|
||||
@ -99,6 +100,7 @@
|
||||
this.Controls.Add(this.cb1Language);
|
||||
this.Name = "TranslationWindow";
|
||||
this.Text = "TranslationWindow";
|
||||
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TranslationWindow_KeyDown);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
|
@ -15,6 +15,26 @@ namespace EduNetworkBuilder
|
||||
public TranslationWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.KeyPreview = true;
|
||||
}
|
||||
|
||||
private void btnClose_Click(object sender, EventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
|
||||
private void Save()
|
||||
{
|
||||
Console.WriteLine("Saved");
|
||||
}
|
||||
|
||||
private void TranslationWindow_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if(e.Modifiers == Keys.Control && e.KeyCode == Keys.S)
|
||||
{
|
||||
//ctrl-s was pressed
|
||||
Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user