Example #1
0
 public NWPresetItem(string name, string ip, UInt32 sport, UInt32 wport, string mac, SerializableSecureString password)
 {
     Name = name;
     NWServerIP = ip;
     NWServerPort = sport;
     NWWaitPort = wport;
     NWMacAdd = mac;
     NWPassword = password;
 }
Example #2
0
 public NWPresetItem(string name, string ip, UInt32 sport, UInt32 wport, string mac, SerializableSecureString password)
 {
     Name         = name;
     NWServerIP   = ip;
     NWServerPort = sport;
     NWWaitPort   = wport;
     NWMacAdd     = mac;
     NWPassword   = password;
 }
 public bool Compare(SerializableSecureString s)
 {
     if (Length != s.Length)
     {
         return(false);
     }
     // 本来はマーシャリングして中身を取り出して Compare するべき
     return(new NetworkCredential(string.Empty, secureString).Password == new NetworkCredential(string.Empty, s.SecureString).Password);
 }
Example #4
0
 public NWPresetItem()
 {
     NWPassword = new SerializableSecureString();
 }
Example #5
0
 public bool Compare(SerializableSecureString s)
 {
     if (Length != s.Length)
         return false;
     // 本来はマーシャリングして中身を取り出して Compare するべき
     return new NetworkCredential(string.Empty, secureString).Password == new NetworkCredential(string.Empty, s.SecureString).Password;
 }
Example #6
0
 public NWPresetItem()
 {
     NWPassword = new SerializableSecureString();
 }