/// <summary>
        /// SHow advanced authentication settings.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AdvancedBtn_Click(object sender, EventArgs e)
        {
            GXAuthentication authentication = Manufacturer.GetActiveAuthentication();

            if (authentication.Type == Gurux.DLMS.Authentication.HighGMAC)
            {
                AuthenticationGmacForm dlg = new AuthenticationGmacForm(authentication);
                dlg.ShowDialog(this);
            }
            else if (authentication.Type > Gurux.DLMS.Authentication.Low)
            {
                AuthenticationForm dlg = new AuthenticationForm(authentication);
                dlg.ShowDialog(this);
            }
            else
            {
                throw new ArgumentOutOfRangeException("Invalid authentication type.");
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// SHow advanced authentication settings.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void AdvancedBtn_Click(object sender, EventArgs e)
 {
     GXAuthentication authentication = Manufacturer.GetActiveAuthentication();
     if (authentication.Type == Gurux.DLMS.Authentication.HighGMAC)
     {
         AuthenticationGmacForm dlg = new AuthenticationGmacForm(authentication);
         dlg.ShowDialog(this);
     }
     else if (authentication.Type > Gurux.DLMS.Authentication.Low)
     {
         AuthenticationForm dlg = new AuthenticationForm(authentication);
         dlg.ShowDialog(this);
     }
     else
     {
         throw new ArgumentOutOfRangeException("Invalid authentication type.");
     }
 }
Exemplo n.º 3
0
        /// <summary>
        /// Show advanced authentication settings.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AdvancedBtn_Click(object sender, EventArgs e)
        {
            AuthenticationGmacForm dlg = new AuthenticationGmacForm(Manufacturer);

            dlg.ShowDialog(this);
        }
Exemplo n.º 4
0
 /// <summary>
 /// Show advanced authentication settings.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void AdvancedBtn_Click(object sender, EventArgs e)
 {
     AuthenticationGmacForm dlg = new AuthenticationGmacForm(Manufacturer);
     dlg.ShowDialog(this);
 }