예제 #1
0
        /// <summary>
        /// Update attribute value for the view.
        /// </summary>
        /// <param name="view">Updated view.</param>
        /// <param name="controls">Update controls.</param>
        /// <param name="index">Attribute index.</param>
        /// <param name="value">Updated value.</param>
        /// <returns></returns>
        private static bool UpdateProperty(IGXDLMSView view, ControlCollection controls, int index, object value)
        {
            bool found = false;

            foreach (Control it in controls)
            {
                if (it is GXValueField)
                {
                    GXValueField obj = it as GXValueField;
                    if (obj.Index == index)
                    {
                        obj.Target = view.Target;
                        obj.UpdateValueItems(view.Target, index, value);
                        obj.Value = value;
                        found     = true;
                    }
                }
                else if (it is GXButton)
                {
                    GXButton obj = it as GXButton;
                    obj.Enabled = false;
                }
                else if (it.Controls.Count != 0)
                {
                    found = UpdateProperty(view, it.Controls, index, value);
                }
                if (found)
                {
                    break;
                }
            }
            return(found);
        }
예제 #2
0
 private static bool UpdateAccessRights(IGXDLMSView view, System.Windows.Forms.Control.ControlCollection controls, GXDLMSObject target, int index, bool method, bool connected)
 {
     foreach (Control it in controls)
     {
         if (!method && it is GXValueField)
         {
             GXValueField obj = it as GXValueField;
             if (obj.Index == index)
             {
                 obj.Target = target;
                 AccessMode am = target.GetAccess(index);
                 OnUpdateAccessRights(view, obj, connected && ((am & AccessMode.Write) != 0));
                 return(!obj.NotifyChanges);
             }
         }
         else if (it is GXButton)
         {
             GXButton btn = it as GXButton;
             btn.Target = target;
             //Update custom buttons.
             if (method && index == 0 && btn.Index < 1)
             {
                 OnUpdateAccessRights(view, btn, connected);
                 continue;
             }
             if (method && btn.Index == index && btn.Action == ActionType.Action)
             {
                 MethodAccessMode ma = target.GetMethodAccess(index);
                 OnUpdateAccessRights(view, btn, connected && ma != MethodAccessMode.NoAccess);
                 return(true);
             }
             if (!method && btn.Index == index && (btn.Action == ActionType.Read || btn.Action == ActionType.Write))
             {
                 AccessMode am = target.GetAccess(index);
                 if (btn.Action == ActionType.Read)
                 {
                     OnUpdateAccessRights(view, btn, connected && ((am & AccessMode.Read) != 0));
                 }
                 else if (btn.Action == ActionType.Write)
                 {
                     OnUpdateAccessRights(view, btn, connected && ((am & AccessMode.Write) != 0));
                 }
             }
         }
         else if (it.Controls.Count != 0)
         {
             bool ret = UpdateAccessRights(view, it.Controls, target, index, method, connected);
             //If object is updated.
             if (ret)
             {
                 return(true);
             }
         }
     }
     return(false);
 }
예제 #3
0
 private static void Init(IGXDLMSView view, System.Windows.Forms.Control.ControlCollection controls, EventHandler eventHandler)
 {
     foreach (Control it in controls)
     {
         if (it is GXButton)
         {
             GXButton btn = it as GXButton;
             btn.View   = view;
             btn.Click += eventHandler;
         }
         else if (it is GXValueField)
         {
             GXValueField vf = it as GXValueField;
             vf.DefaultType = vf.Type;
         }
         else if (it.Controls.Count != 0)
         {
             Init(view, it.Controls, eventHandler);
         }
     }
 }
예제 #4
0
 private static bool UpdateAccessRights(IGXDLMSView view, GXDLMSClient client, System.Windows.Forms.Control.ControlCollection controls, GXDLMSObject target, int index, bool method, bool connected)
 {
     foreach (Control it in controls)
     {
         if (!method && it is GXValueField)
         {
             GXValueField obj = it as GXValueField;
             if (obj.Index == index)
             {
                 obj.Target = target;
                 bool access = connected;
                 if (connected)
                 {
                     if (client != null)
                     {
                         access = client.CanWrite(target, index);
                     }
                     else
                     {
                         AccessMode am = target.GetAccess(index);
                         access = (am & AccessMode.Write) != 0;
                     }
                 }
                 OnUpdateAccessRights(view, client, obj, connected && access);
                 return(!obj.NotifyChanges);
             }
         }
         else if (it is GXButton)
         {
             bool     access;
             GXButton btn = it as GXButton;
             btn.Target = target;
             //Update custom buttons.
             if (method && index == 0 && btn.Index < 1)
             {
                 OnUpdateAccessRights(view, client, btn, connected);
                 continue;
             }
             if (method && btn.Index == index && btn.Action == ActionType.Action)
             {
                 if (client != null)
                 {
                     access = client.CanInvoke(target, index);
                 }
                 else
                 {
                     access = target.GetMethodAccess(index) != MethodAccessMode.NoAccess;
                     if (!access)
                     {
                         access = target.GetMethodAccess3(index) != MethodAccessMode3.NoAccess;
                     }
                 }
                 OnUpdateAccessRights(view, client, btn, connected && access);
                 return(true);
             }
             if (!method && btn.Index == index && (btn.Action == ActionType.Read || btn.Action == ActionType.Write))
             {
                 if (btn.Action == ActionType.Read)
                 {
                     if (client != null)
                     {
                         access = client.CanRead(target, index);
                     }
                     else
                     {
                         access = (target.GetAccess(index) & AccessMode.Read) != 0;
                         if (!access)
                         {
                             access = (target.GetAccess3(index) & AccessMode3.Read) != 0;
                         }
                     }
                     OnUpdateAccessRights(view, client, btn, connected && access);
                 }
                 else if (btn.Action == ActionType.Write)
                 {
                     if (client != null)
                     {
                         access = client.CanWrite(target, index);
                     }
                     else
                     {
                         access = (target.GetAccess(index) & AccessMode.Write) != 0;
                         if (!access)
                         {
                             access = (target.GetAccess3(index) & AccessMode3.Write) != 0;
                         }
                     }
                     OnUpdateAccessRights(view, client, btn, connected && access);
                 }
             }
         }
         else if (it.Controls.Count != 0)
         {
             bool ret = UpdateAccessRights(view, client, it.Controls, target, index, method, connected);
             //If object is updated.
             if (ret)
             {
                 return(true);
             }
         }
     }
     return(false);
 }
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(GXDLMSMBusClientView));
     this.groupBox1               = new System.Windows.Forms.GroupBox();
     this.SendBtn                 = new Gurux.DLMS.UI.GXButton();
     this.CaptureBtn              = new Gurux.DLMS.UI.GXButton();
     this.groupBox5               = new System.Windows.Forms.GroupBox();
     this.TransferKeyBtn          = new Gurux.DLMS.UI.GXButton();
     this.SetBtn                  = new Gurux.DLMS.UI.GXButton();
     this.ResetAlarmBtn           = new Gurux.DLMS.UI.GXButton();
     this.groupBox3               = new System.Windows.Forms.GroupBox();
     this.DeInstallSlaveBtn       = new Gurux.DLMS.UI.GXButton();
     this.InstallSlaveBtn         = new Gurux.DLMS.UI.GXButton();
     this.SynchronizeClockBtn     = new Gurux.DLMS.UI.GXButton();
     this.groupBox2               = new System.Windows.Forms.GroupBox();
     this.CaptureDefinitionView   = new System.Windows.Forms.ListView();
     this.DataInformationBlockCh  = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.ValueInformationBlockCh = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.EncryptionKeyStatusTB   = new Gurux.DLMS.UI.GXValueField();
     this.EncryptionKeyStatusLbl  = new System.Windows.Forms.Label();
     this.ConfigurationTB         = new Gurux.DLMS.UI.GXValueField();
     this.ConfigurationLbl        = new System.Windows.Forms.Label();
     this.AlarmTB                 = new Gurux.DLMS.UI.GXValueField();
     this.AlarmLbl                = new System.Windows.Forms.Label();
     this.StatusTB                = new Gurux.DLMS.UI.GXValueField();
     this.StatusLbl               = new System.Windows.Forms.Label();
     this.AccessNumberTB          = new Gurux.DLMS.UI.GXValueField();
     this.AccessNumberLbl         = new System.Windows.Forms.Label();
     this.DeviceTypeTB            = new Gurux.DLMS.UI.GXValueField();
     this.DeviceTypeLbl           = new System.Windows.Forms.Label();
     this.VersionTB               = new Gurux.DLMS.UI.GXValueField();
     this.VersionLbl              = new System.Windows.Forms.Label();
     this.ManufacturerIDTB        = new Gurux.DLMS.UI.GXValueField();
     this.ManufacturerIDLbl       = new System.Windows.Forms.Label();
     this.IdentificationNumberTB  = new Gurux.DLMS.UI.GXValueField();
     this.IdentificationNumberLbl = new System.Windows.Forms.Label();
     this.PrimaryAddressTB        = new Gurux.DLMS.UI.GXValueField();
     this.PrimaryAddressLbl       = new System.Windows.Forms.Label();
     this.CapturePeriodTB         = new Gurux.DLMS.UI.GXValueField();
     this.CapturePeriodLbl        = new System.Windows.Forms.Label();
     this.MBusPortReferenceTB     = new Gurux.DLMS.UI.GXValueField();
     this.MBusPortReferenceLbl    = new System.Windows.Forms.Label();
     this.LogicalNameTB           = new Gurux.DLMS.UI.GXValueField();
     this.LogicalNameLbl          = new System.Windows.Forms.Label();
     this.errorProvider1          = new System.Windows.Forms.ErrorProvider(this.components);
     this.groupBox1.SuspendLayout();
     this.groupBox5.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.groupBox2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).BeginInit();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox1.Controls.Add(this.SendBtn);
     this.groupBox1.Controls.Add(this.CaptureBtn);
     this.groupBox1.Controls.Add(this.groupBox5);
     this.groupBox1.Controls.Add(this.ResetAlarmBtn);
     this.groupBox1.Controls.Add(this.groupBox3);
     this.groupBox1.Controls.Add(this.SynchronizeClockBtn);
     this.groupBox1.Controls.Add(this.groupBox2);
     this.groupBox1.Controls.Add(this.EncryptionKeyStatusTB);
     this.groupBox1.Controls.Add(this.EncryptionKeyStatusLbl);
     this.groupBox1.Controls.Add(this.ConfigurationTB);
     this.groupBox1.Controls.Add(this.ConfigurationLbl);
     this.groupBox1.Controls.Add(this.AlarmTB);
     this.groupBox1.Controls.Add(this.AlarmLbl);
     this.groupBox1.Controls.Add(this.StatusTB);
     this.groupBox1.Controls.Add(this.StatusLbl);
     this.groupBox1.Controls.Add(this.AccessNumberTB);
     this.groupBox1.Controls.Add(this.AccessNumberLbl);
     this.groupBox1.Controls.Add(this.DeviceTypeTB);
     this.groupBox1.Controls.Add(this.DeviceTypeLbl);
     this.groupBox1.Controls.Add(this.VersionTB);
     this.groupBox1.Controls.Add(this.VersionLbl);
     this.groupBox1.Controls.Add(this.ManufacturerIDTB);
     this.groupBox1.Controls.Add(this.ManufacturerIDLbl);
     this.groupBox1.Controls.Add(this.IdentificationNumberTB);
     this.groupBox1.Controls.Add(this.IdentificationNumberLbl);
     this.groupBox1.Controls.Add(this.PrimaryAddressTB);
     this.groupBox1.Controls.Add(this.PrimaryAddressLbl);
     this.groupBox1.Controls.Add(this.CapturePeriodTB);
     this.groupBox1.Controls.Add(this.CapturePeriodLbl);
     this.groupBox1.Controls.Add(this.MBusPortReferenceTB);
     this.groupBox1.Controls.Add(this.MBusPortReferenceLbl);
     this.groupBox1.Controls.Add(this.LogicalNameTB);
     this.groupBox1.Controls.Add(this.LogicalNameLbl);
     this.groupBox1.Location = new System.Drawing.Point(12, 12);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(482, 529);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "MBus Client Object";
     this.groupBox1.UseCompatibleTextRendering = true;
     //
     // SendBtn
     //
     this.SendBtn.Index    = 6;
     this.SendBtn.Location = new System.Drawing.Point(372, 442);
     this.SendBtn.Name     = "SendBtn";
     this.SendBtn.Size     = new System.Drawing.Size(94, 23);
     this.SendBtn.TabIndex = 16;
     this.SendBtn.Text     = "Send...";
     this.SendBtn.UseVisualStyleBackColor = true;
     //
     // CaptureBtn
     //
     this.CaptureBtn.Index    = 3;
     this.CaptureBtn.Location = new System.Drawing.Point(15, 442);
     this.CaptureBtn.Name     = "CaptureBtn";
     this.CaptureBtn.Size     = new System.Drawing.Size(112, 23);
     this.CaptureBtn.TabIndex = 13;
     this.CaptureBtn.Text     = "Capture";
     this.CaptureBtn.UseVisualStyleBackColor = true;
     //
     // groupBox5
     //
     this.groupBox5.Controls.Add(this.TransferKeyBtn);
     this.groupBox5.Controls.Add(this.SetBtn);
     this.groupBox5.Location = new System.Drawing.Point(9, 472);
     this.groupBox5.Name     = "groupBox5";
     this.groupBox5.Size     = new System.Drawing.Size(462, 52);
     this.groupBox5.TabIndex = 52;
     this.groupBox5.TabStop  = false;
     this.groupBox5.Text     = "Encryption key";
     //
     // TransferKeyBtn
     //
     this.TransferKeyBtn.Index    = 8;
     this.TransferKeyBtn.Location = new System.Drawing.Point(124, 19);
     this.TransferKeyBtn.Name     = "TransferKeyBtn";
     this.TransferKeyBtn.Size     = new System.Drawing.Size(112, 23);
     this.TransferKeyBtn.TabIndex = 1;
     this.TransferKeyBtn.Text     = "Transfer...";
     this.TransferKeyBtn.UseVisualStyleBackColor = true;
     //
     // SetBtn
     //
     this.SetBtn.Index    = 7;
     this.SetBtn.Location = new System.Drawing.Point(6, 19);
     this.SetBtn.Name     = "SetBtn";
     this.SetBtn.Size     = new System.Drawing.Size(112, 23);
     this.SetBtn.TabIndex = 0;
     this.SetBtn.Text     = "Set...";
     this.SetBtn.UseVisualStyleBackColor = true;
     //
     // ResetAlarmBtn
     //
     this.ResetAlarmBtn.Index    = 4;
     this.ResetAlarmBtn.Location = new System.Drawing.Point(133, 442);
     this.ResetAlarmBtn.Name     = "ResetAlarmBtn";
     this.ResetAlarmBtn.Size     = new System.Drawing.Size(112, 23);
     this.ResetAlarmBtn.TabIndex = 14;
     this.ResetAlarmBtn.Text     = "Reset alarm";
     this.ResetAlarmBtn.UseVisualStyleBackColor = true;
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.DeInstallSlaveBtn);
     this.groupBox3.Controls.Add(this.InstallSlaveBtn);
     this.groupBox3.Location = new System.Drawing.Point(9, 386);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(463, 50);
     this.groupBox3.TabIndex = 50;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Slave";
     //
     // DeInstallSlaveBtn
     //
     this.DeInstallSlaveBtn.Index    = 2;
     this.DeInstallSlaveBtn.Location = new System.Drawing.Point(124, 19);
     this.DeInstallSlaveBtn.Name     = "DeInstallSlaveBtn";
     this.DeInstallSlaveBtn.Size     = new System.Drawing.Size(112, 23);
     this.DeInstallSlaveBtn.TabIndex = 1;
     this.DeInstallSlaveBtn.Text     = "De-install";
     this.DeInstallSlaveBtn.UseVisualStyleBackColor = true;
     //
     // InstallSlaveBtn
     //
     this.InstallSlaveBtn.Index    = 1;
     this.InstallSlaveBtn.Location = new System.Drawing.Point(6, 19);
     this.InstallSlaveBtn.Name     = "InstallSlaveBtn";
     this.InstallSlaveBtn.Size     = new System.Drawing.Size(112, 23);
     this.InstallSlaveBtn.TabIndex = 0;
     this.InstallSlaveBtn.Text     = "Install";
     this.InstallSlaveBtn.UseVisualStyleBackColor = true;
     //
     // SynchronizeClockBtn
     //
     this.SynchronizeClockBtn.Index    = 5;
     this.SynchronizeClockBtn.Location = new System.Drawing.Point(254, 442);
     this.SynchronizeClockBtn.Name     = "SynchronizeClockBtn";
     this.SynchronizeClockBtn.Size     = new System.Drawing.Size(112, 23);
     this.SynchronizeClockBtn.TabIndex = 15;
     this.SynchronizeClockBtn.Text     = "Synchronize clock";
     this.SynchronizeClockBtn.UseVisualStyleBackColor = true;
     //
     // groupBox2
     //
     this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox2.Controls.Add(this.CaptureDefinitionView);
     this.groupBox2.Location = new System.Drawing.Point(9, 73);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(463, 125);
     this.groupBox2.TabIndex = 41;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Capture Definition:";
     //
     // CaptureDefinitionView
     //
     this.CaptureDefinitionView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                                | System.Windows.Forms.AnchorStyles.Left)
                                                                               | System.Windows.Forms.AnchorStyles.Right)));
     this.CaptureDefinitionView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.DataInformationBlockCh,
         this.ValueInformationBlockCh
     });
     this.CaptureDefinitionView.FullRowSelect = true;
     this.CaptureDefinitionView.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.CaptureDefinitionView.HideSelection = false;
     this.CaptureDefinitionView.Location      = new System.Drawing.Point(0, 19);
     this.CaptureDefinitionView.Name          = "CaptureDefinitionView";
     this.CaptureDefinitionView.Size          = new System.Drawing.Size(457, 72);
     this.CaptureDefinitionView.TabIndex      = 0;
     this.CaptureDefinitionView.UseCompatibleStateImageBehavior = false;
     this.CaptureDefinitionView.View = System.Windows.Forms.View.Details;
     //
     // DataInformationBlockCh
     //
     this.DataInformationBlockCh.Text  = "Data Information";
     this.DataInformationBlockCh.Width = 114;
     //
     // ValueInformationBlockCh
     //
     this.ValueInformationBlockCh.Text  = "Value Information";
     this.ValueInformationBlockCh.Width = 147;
     //
     // EncryptionKeyStatusTB
     //
     this.EncryptionKeyStatusTB.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                               | System.Windows.Forms.AnchorStyles.Right)));
     this.EncryptionKeyStatusTB.Index         = 14;
     this.EncryptionKeyStatusTB.Location      = new System.Drawing.Point(122, 360);
     this.EncryptionKeyStatusTB.Name          = "EncryptionKeyStatusTB";
     this.EncryptionKeyStatusTB.NotifyChanges = false;
     this.EncryptionKeyStatusTB.Size          = new System.Drawing.Size(350, 20);
     this.EncryptionKeyStatusTB.TabIndex      = 12;
     this.EncryptionKeyStatusTB.Type          = Gurux.DLMS.Enums.ValueFieldType.CompoBox;
     //
     // EncryptionKeyStatusLbl
     //
     this.EncryptionKeyStatusLbl.AutoSize = true;
     this.EncryptionKeyStatusLbl.Location = new System.Drawing.Point(3, 363);
     this.EncryptionKeyStatusLbl.Name     = "EncryptionKeyStatusLbl";
     this.EncryptionKeyStatusLbl.Size     = new System.Drawing.Size(114, 13);
     this.EncryptionKeyStatusLbl.TabIndex = 37;
     this.EncryptionKeyStatusLbl.Text     = "Encryption Key Status:";
     //
     // ConfigurationTB
     //
     this.ConfigurationTB.Index         = 13;
     this.ConfigurationTB.Location      = new System.Drawing.Point(357, 334);
     this.ConfigurationTB.Name          = "ConfigurationTB";
     this.ConfigurationTB.NotifyChanges = false;
     this.ConfigurationTB.Size          = new System.Drawing.Size(115, 20);
     this.ConfigurationTB.TabIndex      = 11;
     this.ConfigurationTB.Type          = Gurux.DLMS.Enums.ValueFieldType.TextBox;
     //
     // ConfigurationLbl
     //
     this.ConfigurationLbl.AutoSize = true;
     this.ConfigurationLbl.Location = new System.Drawing.Point(245, 337);
     this.ConfigurationLbl.Name     = "ConfigurationLbl";
     this.ConfigurationLbl.Size     = new System.Drawing.Size(72, 13);
     this.ConfigurationLbl.TabIndex = 36;
     this.ConfigurationLbl.Text     = "Configuration:";
     //
     // AlarmTB
     //
     this.AlarmTB.Index         = 12;
     this.AlarmTB.Location      = new System.Drawing.Point(122, 334);
     this.AlarmTB.Name          = "AlarmTB";
     this.AlarmTB.NotifyChanges = false;
     this.AlarmTB.Size          = new System.Drawing.Size(115, 20);
     this.AlarmTB.TabIndex      = 10;
     this.AlarmTB.Type          = Gurux.DLMS.Enums.ValueFieldType.TextBox;
     //
     // AlarmLbl
     //
     this.AlarmLbl.AutoSize = true;
     this.AlarmLbl.Location = new System.Drawing.Point(6, 337);
     this.AlarmLbl.Name     = "AlarmLbl";
     this.AlarmLbl.Size     = new System.Drawing.Size(36, 13);
     this.AlarmLbl.TabIndex = 34;
     this.AlarmLbl.Text     = "Alarm:";
     //
     // StatusTB
     //
     this.StatusTB.Index         = 11;
     this.StatusTB.Location      = new System.Drawing.Point(357, 308);
     this.StatusTB.Name          = "StatusTB";
     this.StatusTB.NotifyChanges = false;
     this.StatusTB.Size          = new System.Drawing.Size(115, 20);
     this.StatusTB.TabIndex      = 9;
     this.StatusTB.Type          = Gurux.DLMS.Enums.ValueFieldType.TextBox;
     //
     // StatusLbl
     //
     this.StatusLbl.AutoSize = true;
     this.StatusLbl.Location = new System.Drawing.Point(264, 311);
     this.StatusLbl.Name     = "StatusLbl";
     this.StatusLbl.Size     = new System.Drawing.Size(40, 13);
     this.StatusLbl.TabIndex = 31;
     this.StatusLbl.Text     = "Status:";
     //
     // AccessNumberTB
     //
     this.AccessNumberTB.Index         = 10;
     this.AccessNumberTB.Location      = new System.Drawing.Point(122, 308);
     this.AccessNumberTB.Name          = "AccessNumberTB";
     this.AccessNumberTB.NotifyChanges = false;
     this.AccessNumberTB.Size          = new System.Drawing.Size(115, 20);
     this.AccessNumberTB.TabIndex      = 8;
     this.AccessNumberTB.Type          = Gurux.DLMS.Enums.ValueFieldType.TextBox;
     //
     // AccessNumberLbl
     //
     this.AccessNumberLbl.AutoSize = true;
     this.AccessNumberLbl.Location = new System.Drawing.Point(3, 311);
     this.AccessNumberLbl.Name     = "AccessNumberLbl";
     this.AccessNumberLbl.Size     = new System.Drawing.Size(85, 13);
     this.AccessNumberLbl.TabIndex = 29;
     this.AccessNumberLbl.Text     = "Access Number:";
     //
     // DeviceTypeTB
     //
     this.DeviceTypeTB.Index         = 9;
     this.DeviceTypeTB.Location      = new System.Drawing.Point(357, 283);
     this.DeviceTypeTB.Name          = "DeviceTypeTB";
     this.DeviceTypeTB.NotifyChanges = false;
     this.DeviceTypeTB.Size          = new System.Drawing.Size(115, 20);
     this.DeviceTypeTB.TabIndex      = 7;
     this.DeviceTypeTB.Type          = Gurux.DLMS.Enums.ValueFieldType.TextBox;
     //
     // DeviceTypeLbl
     //
     this.DeviceTypeLbl.AutoSize = true;
     this.DeviceTypeLbl.Location = new System.Drawing.Point(264, 286);
     this.DeviceTypeLbl.Name     = "DeviceTypeLbl";
     this.DeviceTypeLbl.Size     = new System.Drawing.Size(71, 13);
     this.DeviceTypeLbl.TabIndex = 27;
     this.DeviceTypeLbl.Text     = "Device Type:";
     //
     // VersionTB
     //
     this.VersionTB.Index         = 8;
     this.VersionTB.Location      = new System.Drawing.Point(122, 283);
     this.VersionTB.Name          = "VersionTB";
     this.VersionTB.NotifyChanges = false;
     this.VersionTB.Size          = new System.Drawing.Size(115, 20);
     this.VersionTB.TabIndex      = 6;
     this.VersionTB.Type          = Gurux.DLMS.Enums.ValueFieldType.TextBox;
     //
     // VersionLbl
     //
     this.VersionLbl.AutoSize = true;
     this.VersionLbl.Location = new System.Drawing.Point(3, 286);
     this.VersionLbl.Name     = "VersionLbl";
     this.VersionLbl.Size     = new System.Drawing.Size(45, 13);
     this.VersionLbl.TabIndex = 26;
     this.VersionLbl.Text     = "Version:";
     //
     // ManufacturerIDTB
     //
     this.ManufacturerIDTB.Index         = 7;
     this.ManufacturerIDTB.Location      = new System.Drawing.Point(357, 257);
     this.ManufacturerIDTB.Name          = "ManufacturerIDTB";
     this.ManufacturerIDTB.NotifyChanges = false;
     this.ManufacturerIDTB.Size          = new System.Drawing.Size(115, 20);
     this.ManufacturerIDTB.TabIndex      = 5;
     this.ManufacturerIDTB.Type          = Gurux.DLMS.Enums.ValueFieldType.TextBox;
     //
     // ManufacturerIDLbl
     //
     this.ManufacturerIDLbl.AutoSize = true;
     this.ManufacturerIDLbl.Location = new System.Drawing.Point(264, 260);
     this.ManufacturerIDLbl.Name     = "ManufacturerIDLbl";
     this.ManufacturerIDLbl.Size     = new System.Drawing.Size(87, 13);
     this.ManufacturerIDLbl.TabIndex = 24;
     this.ManufacturerIDLbl.Text     = "Manufacturer ID:";
     //
     // IdentificationNumberTB
     //
     this.IdentificationNumberTB.Index         = 6;
     this.IdentificationNumberTB.Location      = new System.Drawing.Point(122, 257);
     this.IdentificationNumberTB.Name          = "IdentificationNumberTB";
     this.IdentificationNumberTB.NotifyChanges = false;
     this.IdentificationNumberTB.Size          = new System.Drawing.Size(115, 20);
     this.IdentificationNumberTB.TabIndex      = 4;
     this.IdentificationNumberTB.Type          = Gurux.DLMS.Enums.ValueFieldType.TextBox;
     //
     // IdentificationNumberLbl
     //
     this.IdentificationNumberLbl.AutoSize = true;
     this.IdentificationNumberLbl.Location = new System.Drawing.Point(3, 260);
     this.IdentificationNumberLbl.Name     = "IdentificationNumberLbl";
     this.IdentificationNumberLbl.Size     = new System.Drawing.Size(110, 13);
     this.IdentificationNumberLbl.TabIndex = 21;
     this.IdentificationNumberLbl.Text     = "Identification Number:";
     //
     // PrimaryAddressTB
     //
     this.PrimaryAddressTB.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                          | System.Windows.Forms.AnchorStyles.Right)));
     this.PrimaryAddressTB.Index         = 5;
     this.PrimaryAddressTB.Location      = new System.Drawing.Point(122, 230);
     this.PrimaryAddressTB.Name          = "PrimaryAddressTB";
     this.PrimaryAddressTB.NotifyChanges = false;
     this.PrimaryAddressTB.Size          = new System.Drawing.Size(350, 20);
     this.PrimaryAddressTB.TabIndex      = 3;
     this.PrimaryAddressTB.Type          = Gurux.DLMS.Enums.ValueFieldType.TextBox;
     //
     // PrimaryAddressLbl
     //
     this.PrimaryAddressLbl.AutoSize = true;
     this.PrimaryAddressLbl.Location = new System.Drawing.Point(3, 233);
     this.PrimaryAddressLbl.Name     = "PrimaryAddressLbl";
     this.PrimaryAddressLbl.Size     = new System.Drawing.Size(85, 13);
     this.PrimaryAddressLbl.TabIndex = 19;
     this.PrimaryAddressLbl.Text     = "Primary Address:";
     //
     // CapturePeriodTB
     //
     this.CapturePeriodTB.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                         | System.Windows.Forms.AnchorStyles.Right)));
     this.CapturePeriodTB.Index         = 4;
     this.CapturePeriodTB.Location      = new System.Drawing.Point(122, 204);
     this.CapturePeriodTB.Name          = "CapturePeriodTB";
     this.CapturePeriodTB.NotifyChanges = false;
     this.CapturePeriodTB.Size          = new System.Drawing.Size(350, 20);
     this.CapturePeriodTB.TabIndex      = 2;
     this.CapturePeriodTB.Type          = Gurux.DLMS.Enums.ValueFieldType.TextBox;
     //
     // CapturePeriodLbl
     //
     this.CapturePeriodLbl.AutoSize = true;
     this.CapturePeriodLbl.Location = new System.Drawing.Point(3, 207);
     this.CapturePeriodLbl.Name     = "CapturePeriodLbl";
     this.CapturePeriodLbl.Size     = new System.Drawing.Size(80, 13);
     this.CapturePeriodLbl.TabIndex = 17;
     this.CapturePeriodLbl.Text     = "Capture Period:";
     //
     // MBusPortReferenceTB
     //
     this.MBusPortReferenceTB.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                             | System.Windows.Forms.AnchorStyles.Right)));
     this.MBusPortReferenceTB.Index         = 2;
     this.MBusPortReferenceTB.Location      = new System.Drawing.Point(122, 47);
     this.MBusPortReferenceTB.Name          = "MBusPortReferenceTB";
     this.MBusPortReferenceTB.NotifyChanges = false;
     this.MBusPortReferenceTB.Size          = new System.Drawing.Size(350, 20);
     this.MBusPortReferenceTB.TabIndex      = 1;
     this.MBusPortReferenceTB.Type          = Gurux.DLMS.Enums.ValueFieldType.TextBox;
     //
     // MBusPortReferenceLbl
     //
     this.MBusPortReferenceLbl.AutoSize = true;
     this.MBusPortReferenceLbl.Location = new System.Drawing.Point(6, 50);
     this.MBusPortReferenceLbl.Name     = "MBusPortReferenceLbl";
     this.MBusPortReferenceLbl.Size     = new System.Drawing.Size(112, 13);
     this.MBusPortReferenceLbl.TabIndex = 2;
     this.MBusPortReferenceLbl.Text     = "MBus Port Reference:";
     //
     // LogicalNameTB
     //
     this.LogicalNameTB.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
     this.LogicalNameTB.Index         = 1;
     this.LogicalNameTB.Location      = new System.Drawing.Point(122, 21);
     this.LogicalNameTB.Name          = "LogicalNameTB";
     this.LogicalNameTB.NotifyChanges = false;
     this.LogicalNameTB.Size          = new System.Drawing.Size(350, 20);
     this.LogicalNameTB.TabIndex      = 0;
     this.LogicalNameTB.Type          = Gurux.DLMS.Enums.ValueFieldType.TextBox;
     //
     // LogicalNameLbl
     //
     this.LogicalNameLbl.AutoSize = true;
     this.LogicalNameLbl.Location = new System.Drawing.Point(6, 24);
     this.LogicalNameLbl.Name     = "LogicalNameLbl";
     this.LogicalNameLbl.Size     = new System.Drawing.Size(75, 13);
     this.LogicalNameLbl.TabIndex = 0;
     this.LogicalNameLbl.Text     = "Logical Name:";
     //
     // errorProvider1
     //
     this.errorProvider1.BlinkStyle       = System.Windows.Forms.ErrorBlinkStyle.NeverBlink;
     this.errorProvider1.ContainerControl = this;
     this.errorProvider1.Icon             = ((System.Drawing.Icon)(resources.GetObject("errorProvider1.Icon")));
     //
     // GXDLMSMBusClientView
     //
     this.ClientSize = new System.Drawing.Size(506, 556);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Name            = "GXDLMSMBusClientView";
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.groupBox5.ResumeLayout(false);
     this.groupBox3.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).EndInit();
     this.ResumeLayout(false);
 }
예제 #6
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(GXDLMSRegisterView));
     this.groupBox1      = new System.Windows.Forms.GroupBox();
     this.ResetBtn       = new Gurux.DLMS.UI.GXButton();
     this.UnitTB         = new Gurux.DLMS.UI.GXValueField();
     this.UnitLbl        = new System.Windows.Forms.Label();
     this.ScalerTB       = new Gurux.DLMS.UI.GXValueField();
     this.ScalerLbl      = new System.Windows.Forms.Label();
     this.ValueTB        = new Gurux.DLMS.UI.GXValueField();
     this.ValueLbl       = new System.Windows.Forms.Label();
     this.LogicalNameTB  = new Gurux.DLMS.UI.GXValueField();
     this.LogicalNameLbl = new System.Windows.Forms.Label();
     this.errorProvider1 = new System.Windows.Forms.ErrorProvider(this.components);
     this.DescriptionLbl = new System.Windows.Forms.Label();
     this.DescriptionTB  = new System.Windows.Forms.TextBox();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).BeginInit();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox1.Controls.Add(this.DescriptionLbl);
     this.groupBox1.Controls.Add(this.DescriptionTB);
     this.groupBox1.Controls.Add(this.ResetBtn);
     this.groupBox1.Controls.Add(this.UnitTB);
     this.groupBox1.Controls.Add(this.UnitLbl);
     this.groupBox1.Controls.Add(this.ScalerTB);
     this.groupBox1.Controls.Add(this.ScalerLbl);
     this.groupBox1.Controls.Add(this.ValueTB);
     this.groupBox1.Controls.Add(this.ValueLbl);
     this.groupBox1.Controls.Add(this.LogicalNameTB);
     this.groupBox1.Controls.Add(this.LogicalNameLbl);
     this.groupBox1.Location = new System.Drawing.Point(12, 12);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(333, 188);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Register Object";
     //
     // ResetBtn
     //
     this.ResetBtn.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.ResetBtn.Index    = 1;
     this.ResetBtn.Location = new System.Drawing.Point(236, 151);
     this.ResetBtn.Name     = "ResetBtn";
     this.ResetBtn.Size     = new System.Drawing.Size(75, 23);
     this.ResetBtn.TabIndex = 7;
     this.ResetBtn.Text     = "Reset";
     this.ResetBtn.UseVisualStyleBackColor = true;
     //
     // UnitTB
     //
     this.UnitTB.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.UnitTB.Index    = 0;
     this.UnitTB.Location = new System.Drawing.Point(103, 123);
     this.UnitTB.Name     = "UnitTB";
     this.UnitTB.ReadOnly = true;
     this.UnitTB.Size     = new System.Drawing.Size(208, 20);
     this.UnitTB.TabIndex = 2;
     this.UnitTB.Type     = Gurux.DLMS.UI.GXValueFieldType.TextBox;
     //
     // UnitLbl
     //
     this.UnitLbl.AutoSize = true;
     this.UnitLbl.Location = new System.Drawing.Point(7, 126);
     this.UnitLbl.Name     = "UnitLbl";
     this.UnitLbl.Size     = new System.Drawing.Size(29, 13);
     this.UnitLbl.TabIndex = 6;
     this.UnitLbl.Text     = "Unit:";
     //
     // ScalerTB
     //
     this.ScalerTB.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.ScalerTB.Index    = 0;
     this.ScalerTB.Location = new System.Drawing.Point(103, 97);
     this.ScalerTB.Name     = "ScalerTB";
     this.ScalerTB.ReadOnly = true;
     this.ScalerTB.Size     = new System.Drawing.Size(208, 20);
     this.ScalerTB.TabIndex = 1;
     this.ScalerTB.Type     = Gurux.DLMS.UI.GXValueFieldType.TextBox;
     //
     // ScalerLbl
     //
     this.ScalerLbl.AutoSize = true;
     this.ScalerLbl.Location = new System.Drawing.Point(7, 100);
     this.ScalerLbl.Name     = "ScalerLbl";
     this.ScalerLbl.Size     = new System.Drawing.Size(40, 13);
     this.ScalerLbl.TabIndex = 4;
     this.ScalerLbl.Text     = "Scaler:";
     //
     // ValueTB
     //
     this.ValueTB.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.ValueTB.Index    = 2;
     this.ValueTB.Location = new System.Drawing.Point(103, 71);
     this.ValueTB.Name     = "ValueTB";
     this.ValueTB.Size     = new System.Drawing.Size(208, 20);
     this.ValueTB.TabIndex = 0;
     this.ValueTB.Type     = Gurux.DLMS.UI.GXValueFieldType.TextBox;
     //
     // ValueLbl
     //
     this.ValueLbl.AutoSize = true;
     this.ValueLbl.Location = new System.Drawing.Point(7, 74);
     this.ValueLbl.Name     = "ValueLbl";
     this.ValueLbl.Size     = new System.Drawing.Size(37, 13);
     this.ValueLbl.TabIndex = 2;
     this.ValueLbl.Text     = "Value:";
     //
     // LogicalNameTB
     //
     this.LogicalNameTB.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
     this.LogicalNameTB.Index    = 1;
     this.LogicalNameTB.Location = new System.Drawing.Point(103, 45);
     this.LogicalNameTB.Name     = "LogicalNameTB";
     this.LogicalNameTB.ReadOnly = true;
     this.LogicalNameTB.Size     = new System.Drawing.Size(208, 20);
     this.LogicalNameTB.TabIndex = 1;
     this.LogicalNameTB.Type     = Gurux.DLMS.UI.GXValueFieldType.TextBox;
     //
     // LogicalNameLbl
     //
     this.LogicalNameLbl.AutoSize = true;
     this.LogicalNameLbl.Location = new System.Drawing.Point(7, 48);
     this.LogicalNameLbl.Name     = "LogicalNameLbl";
     this.LogicalNameLbl.Size     = new System.Drawing.Size(75, 13);
     this.LogicalNameLbl.TabIndex = 0;
     this.LogicalNameLbl.Text     = "Logical Name:";
     //
     // errorProvider1
     //
     this.errorProvider1.BlinkStyle       = System.Windows.Forms.ErrorBlinkStyle.NeverBlink;
     this.errorProvider1.ContainerControl = this;
     this.errorProvider1.Icon             = ((System.Drawing.Icon)(resources.GetObject("errorProvider1.Icon")));
     //
     // DescriptionLbl
     //
     this.DescriptionLbl.AutoSize = true;
     this.DescriptionLbl.Location = new System.Drawing.Point(7, 22);
     this.DescriptionLbl.Name     = "DescriptionLbl";
     this.DescriptionLbl.Size     = new System.Drawing.Size(63, 13);
     this.DescriptionLbl.TabIndex = 9;
     this.DescriptionLbl.Text     = "Description:";
     //
     // DescriptionTB
     //
     this.DescriptionTB.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
     this.DescriptionTB.Location = new System.Drawing.Point(103, 19);
     this.DescriptionTB.Name     = "DescriptionTB";
     this.DescriptionTB.ReadOnly = true;
     this.DescriptionTB.Size     = new System.Drawing.Size(208, 20);
     this.DescriptionTB.TabIndex = 8;
     //
     // GXDLMSRegisterView
     //
     this.ClientSize = new System.Drawing.Size(357, 214);
     this.Controls.Add(this.groupBox1);
     this.Name = "GXDLMSRegisterView";
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).EndInit();
     this.ResumeLayout(false);
 }