bool LoginFile() { LoginData dum = new LoginData(); bool lflag = false; while (XmlRead.Read()) { if (XmlRead.Depth == 2) { dum.FullName = XmlRead.Value; XmlRead.Skip(); XmlRead.Skip(); XmlRead.Read(); dum.UserName = XmlRead.Value; XmlRead.Skip(); XmlRead.Skip(); XmlRead.Read(); dum.PassWord = XmlRead.Value; XmlRead.Skip(); XmlRead.Skip(); L.AddLast(dum); lflag = true; } } return(lflag); }
public static void DataManager() { while (true) { var readClass = new XmlRead(); var currencyList = readClass.Read(); Thread.Sleep(20000); //var timer = new System.Timers.Timer(); //timer.Interval = 20000; //timer.Enabled = true; } }