private void btnFeatureSet_Click(object sender, EventArgs e) { if (MainForm.Group != "Admin") { var ap = EncDec.DecryptData(MainForm.Conf.Permissions.First(q => q.name == "Admin").password, MainForm.Conf.EncryptCode); var p = new Prompt(LocRm.GetString("AdminPassword"), "", true); p.ShowDialog(this); string pwd = p.Val; p.Dispose(); if (pwd != ap) { MessageBox.Show(this, LocRm.GetString("PasswordIncorrect")); return; } } var f = new Features(); f.ShowDialog(this); f.Dispose(); MainClass.RenderResources(); }