public InfluxDbUsersControl()
        {
            InitializeComponent();

            createUserDialog     = new CreateUserDialog();
            editUserDialog       = new EditUserDialog();
            userPasswordDialog   = new UserPasswordDialog();
            grantPrivilegeDialog = new GrantPrivilegeDialog();
            editPrivilegeDialog  = new EditPrivilegeDialog();

            // Set initial UI state
            UpdateUIState();
        }
        static protected bool UserNameAuthenticationPrompt(string realm, bool may_save, ref string user_name, out bool save)
        {
            string password;

            return(UserPasswordDialog.Show(false, realm, may_save, ref user_name, out password, out save));
        }
 static protected bool SimpleAuthenticationPrompt(string realm, bool may_save, ref string user_name, out string password, out bool save)
 {
     return(UserPasswordDialog.Show(true, realm, may_save, ref user_name, out password, out save));
 }