示例#1
0
        private void FrmRegistryEditor_Load(object sender, EventArgs e)
        {
            if (_connectClient.Value.AccountType != "Admin")
            {
                MessageBox.Show(
                    "The client software is not running as administrator and therefore some functionality like Update, Create, Open and Delete may not work properly!",
                    "Alert!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }

            this.Text = WindowHelper.GetWindowTitle("Registry Editor", _connectClient);

            // signal client to retrive the root nodes (indicated by null)
            _registryHandler.LoadRegistryKey(null);
        }