//管理者パスワードの確認 //Ver5.4.2 //bool PasswordCheck() { bool CheckPassword() { var op = _kernel.ListOption.Get("Basic"); if (!(bool)op.GetValue("useAdminPassword")) { return(true); } var password = (string)op.GetValue("password"); if (password == "") { return(true); } var dlg = new PasswordDlg(_kernel); while (true) { if (DialogResult.OK != dlg.ShowDialog()) { return(false); } if (dlg.PasswordStr == password) { return(true); } Msg.Show(MsgKind.Error, (_kernel.IsJp()) ? "パスワードが違います" : "password incorrect"); } }
//�Ǘ��҃p�X���[�h�̊m�F //Ver5.4.2 //bool PasswordCheck() { bool CheckPassword() { var op = _kernel.ListOption.Get("Basic"); if (!(bool)op.GetValue("useAdminPassword")) return true; var password = (string)op.GetValue("password"); if (password == "") return true; var dlg = new PasswordDlg(_kernel); while (true) { if (DialogResult.OK != dlg.ShowDialog()) return false; if (dlg.PasswordStr == password) return true; Msg.Show(MsgKind.Error,(_kernel.IsJp()) ? "�p�X���[�h���Ⴂ�܂�" : "password incorrect"); } }