static void Main(string[] args) { //ParseData model = new ParseData(); string source = @"free:nophoto,Noname1,nophoto,Noname2:<26,[10%],[15%],[12%],nophoto,nophoto,nophoto;<26,[10%],[15%],[12%],nophoto,nophoto,nophoto;<26,[10%],[15%],[12%],nophoto,nophoto,nophoto=limited:12345678:nophoto,Noname1,nophoto,Noname2:100"; var list = ParseData.ParseLines(source.Split('=')); }
public ViewModel() { string source = @"free:nophoto,Noname1,nophoto,Noname2:<26,[10%],[15%],[12%],nophoto,nophoto,nophoto;<26,[10%],[15%],[12%],nophoto,nophoto,nophoto;<26,[10%],[15%],[12%],nophoto,nophoto,nophoto=limited:12345678:nophoto,Noname1,nophoto,Noname2:100"; var list = ParseData.ParseLines(source.Split('=')); foreach (Match match in list) { Matches.Add(match); } }