Tim Young 2015-11-16 15:59:02 -05:00
commit 2f1bfacfc7
2 changed files with 6 additions and 6 deletions

View File

@ -254,7 +254,7 @@ namespace EduNetworkBuilder
Label lblText = new Label(); Label lblText = new Label();
lblText.Location = new Point(5, 5); lblText.Location = new Point(5, 5);
lblText.Text = "DC_UpdateFormChoose:"; lblText.Text = NB.Translate("DC_UpdateFormChoose:");
ComboBox cbQuestions = new ComboBox(); ComboBox cbQuestions = new ComboBox();
cbQuestions.Location = new Point(lblText.Location.X + lblText.Width + 5, lblText.Location.Y); cbQuestions.Location = new Point(lblText.Location.X + lblText.Width + 5, lblText.Location.Y);
@ -271,7 +271,7 @@ namespace EduNetworkBuilder
Button btnAccept = new Button(); Button btnAccept = new Button();
btnAccept.Location = new Point(cbQuestions.Location.X, cbQuestions.Location.Y + cbQuestions.Height + 10); btnAccept.Location = new Point(cbQuestions.Location.X, cbQuestions.Location.Y + cbQuestions.Height + 10);
btnAccept.Text = "DC_UpdateForm+"; btnAccept.Text = NB.Translate("DC_UpdateForm+");
btnAccept.Click += (s, g) => { Button b = (Button)s; Form f = (Form)b.Parent; f.Close(); }; btnAccept.Click += (s, g) => { Button b = (Button)s; Form f = (Form)b.Parent; f.Close(); };
QuestionForm.Controls.Add(lblText); QuestionForm.Controls.Add(lblText);

View File

@ -154,8 +154,8 @@ namespace EduNetworkBuilder
{ {
DHCPInterface = DHCPif; DHCPInterface = DHCPif;
lblIP.Text = NB.Translate("IPAE_EditIf"); lblIP.Text = NB.Translate("IPAE_EditIf");
lblNetmask.Text = "IPAE_EditStart"; lblNetmask.Text = NB.Translate("IPAE_EditStart");
lblGateway.Text = "IPAE_EditEnd"; lblGateway.Text = NB.Translate("IPAE_EditEnd");
tbIPAddress.Enabled = false; tbIPAddress.Enabled = false;
tbGateway.Enabled = true; tbGateway.Enabled = true;
tbNetmask.Enabled = true; tbNetmask.Enabled = true;
@ -200,7 +200,7 @@ namespace EduNetworkBuilder
if (taddress < startaddress) if (taddress < startaddress)
{ {
e.Cancel = true; e.Cancel = true;
MessageBox.Show("IPAE_tbGateValIPEqualLarger"); MessageBox.Show(NB.Translate("IPAE_tbGateValIPEqualLarger"));
} }
} }
} }
@ -215,7 +215,7 @@ namespace EduNetworkBuilder
if (!DHCPInterface.IsLocal(new IPAddress(tbNetmask.Text))) if (!DHCPInterface.IsLocal(new IPAddress(tbNetmask.Text)))
{ {
e.Cancel = true; e.Cancel = true;
MessageBox.Show("IPAE_tbNtmskValEndIPRange"); MessageBox.Show(NB.Translate("IPAE_tbNtmskValEndIPRange"));
} }
} }
} }