47 lines
861 B
C#
47 lines
861 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace MisDataName
|
|
{
|
|
public class MisMenuFunHash
|
|
{
|
|
public static Hashtable PassWord = new Hashtable();
|
|
|
|
public static string PassWord_Read(string PwdType)
|
|
{
|
|
if (PassWord.ContainsKey(PwdType))
|
|
{
|
|
return PassWord[PwdType].ToString();
|
|
|
|
}
|
|
else
|
|
{
|
|
return "NotFound";
|
|
}
|
|
|
|
}
|
|
|
|
public static void PassWord_Write(string PwdType, string Password)
|
|
{
|
|
|
|
if (PassWord.ContainsKey(PwdType))
|
|
{
|
|
|
|
PassWord[PwdType] = Password;
|
|
}
|
|
else
|
|
{
|
|
PassWord.Add(PwdType, Password);
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|