diff --git a/agent/windows-setup-agent/EndpointInputBox.Designer.cs b/agent/windows-setup-agent/EndpointInputBox.Designer.cs
new file mode 100644
index 000000000..27236f758
--- /dev/null
+++ b/agent/windows-setup-agent/EndpointInputBox.Designer.cs
@@ -0,0 +1,150 @@
+namespace Icinga
+{
+ partial class EndpointInputBox
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null)) {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.components = new System.ComponentModel.Container();
+ this.btnOK = new System.Windows.Forms.Button();
+ this.btnCancel = new System.Windows.Forms.Button();
+ this.txtHost = new System.Windows.Forms.TextBox();
+ this.txtPort = new System.Windows.Forms.TextBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.lblHost = new System.Windows.Forms.Label();
+ this.lblPort = new System.Windows.Forms.Label();
+ this.errErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
+ ((System.ComponentModel.ISupportInitialize)(this.errErrorProvider)).BeginInit();
+ this.SuspendLayout();
+ //
+ // btnOK
+ //
+ this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
+ this.btnOK.Location = new System.Drawing.Point(150, 120);
+ this.btnOK.Name = "btnOK";
+ this.btnOK.Size = new System.Drawing.Size(75, 23);
+ this.btnOK.TabIndex = 2;
+ this.btnOK.Text = "OK";
+ this.btnOK.UseVisualStyleBackColor = true;
+ //
+ // btnCancel
+ //
+ this.btnCancel.CausesValidation = false;
+ this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
+ this.btnCancel.Location = new System.Drawing.Point(231, 120);
+ this.btnCancel.Name = "btnCancel";
+ this.btnCancel.Size = new System.Drawing.Size(75, 23);
+ this.btnCancel.TabIndex = 3;
+ this.btnCancel.Text = "Cancel";
+ this.btnCancel.UseVisualStyleBackColor = true;
+ //
+ // txtHost
+ //
+ this.txtHost.Location = new System.Drawing.Point(55, 49);
+ this.txtHost.Name = "txtHost";
+ this.txtHost.Size = new System.Drawing.Size(251, 20);
+ this.txtHost.TabIndex = 0;
+ this.txtHost.Validating += new System.ComponentModel.CancelEventHandler(this.txtHost_Validating);
+ //
+ // txtPort
+ //
+ this.txtPort.Location = new System.Drawing.Point(55, 80);
+ this.txtPort.Name = "txtPort";
+ this.txtPort.Size = new System.Drawing.Size(100, 20);
+ this.txtPort.TabIndex = 1;
+ this.txtPort.Text = "5665";
+ this.txtPort.Validating += new System.ComponentModel.CancelEventHandler(this.txtPort_Validating);
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(17, 16);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(276, 13);
+ this.label1.TabIndex = 4;
+ this.label1.Text = "Please enter the connection details for the new endpoint:";
+ //
+ // lblHost
+ //
+ this.lblHost.AutoSize = true;
+ this.lblHost.Location = new System.Drawing.Point(17, 52);
+ this.lblHost.Name = "lblHost";
+ this.lblHost.Size = new System.Drawing.Size(32, 13);
+ this.lblHost.TabIndex = 5;
+ this.lblHost.Text = "Host:";
+ //
+ // lblPort
+ //
+ this.lblPort.AutoSize = true;
+ this.lblPort.Location = new System.Drawing.Point(20, 83);
+ this.lblPort.Name = "lblPort";
+ this.lblPort.Size = new System.Drawing.Size(29, 13);
+ this.lblPort.TabIndex = 6;
+ this.lblPort.Text = "Port:";
+ //
+ // errErrorProvider
+ //
+ this.errErrorProvider.ContainerControl = this;
+ //
+ // EndpointInputBox
+ //
+ this.AcceptButton = this.btnOK;
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.CancelButton = this.btnCancel;
+ this.ClientSize = new System.Drawing.Size(326, 159);
+ this.Controls.Add(this.lblPort);
+ this.Controls.Add(this.lblHost);
+ this.Controls.Add(this.label1);
+ this.Controls.Add(this.txtPort);
+ this.Controls.Add(this.txtHost);
+ this.Controls.Add(this.btnCancel);
+ this.Controls.Add(this.btnOK);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "EndpointInputBox";
+ this.ShowIcon = false;
+ this.ShowInTaskbar = false;
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "Add Endpoint";
+ ((System.ComponentModel.ISupportInitialize)(this.errErrorProvider)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button btnOK;
+ private System.Windows.Forms.Button btnCancel;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Label lblHost;
+ private System.Windows.Forms.Label lblPort;
+ public System.Windows.Forms.TextBox txtHost;
+ public System.Windows.Forms.TextBox txtPort;
+ private System.Windows.Forms.ErrorProvider errErrorProvider;
+ }
+}
\ No newline at end of file
diff --git a/agent/windows-setup-agent/EndpointInputBox.cs b/agent/windows-setup-agent/EndpointInputBox.cs
new file mode 100644
index 000000000..b54692766
--- /dev/null
+++ b/agent/windows-setup-agent/EndpointInputBox.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+
+namespace Icinga
+{
+ public partial class EndpointInputBox : Form
+ {
+ public EndpointInputBox()
+ {
+ InitializeComponent();
+ }
+
+ private void txtHost_Validating(object sender, CancelEventArgs e)
+ {
+ if (txtHost.Text.Length == 0) {
+ e.Cancel = true;
+ errErrorProvider.SetError(txtHost, "Please enter a host name.");
+ }
+ }
+
+ private void txtPort_Validating(object sender, CancelEventArgs e)
+ {
+ if (txtPort.Text.Length == 0) {
+ e.Cancel = true;
+ errErrorProvider.SetError(txtPort, "Please enter a port.");
+ }
+ }
+ }
+}
diff --git a/agent/windows-setup-agent/EndpointInputBox.resx b/agent/windows-setup-agent/EndpointInputBox.resx
new file mode 100644
index 000000000..2a9109638
--- /dev/null
+++ b/agent/windows-setup-agent/EndpointInputBox.resx
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 22, 24
+
+
\ No newline at end of file