Click here to Skip to main content
15,922,533 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hey friends,
I am explaining what I would like to manage.
I have a listview and there are some coloumn in it like date,id number, angle...
Customer must have an access specific area in listview for instance 10.05.2018 - 11.05.2018 all products.They will write their wishes between which dates and see.
Especially I wrote an index top of informations like this
sw.WriteLine(1);


so that I can access using these indexes.

11:05:2018 __ 17:27:59 __ 01342 __ __25__ __ 720__
11:05:2018 __ 17:27:59 __ 09284 __ __28__ __ 729__
11:05:2018 __ 17:28:29 __ 01342 __ __25__ __ 720__

These are in text.So They are information about material's feature .Costumer can would like to know these features between dates.So on the interface there are two object that costumer should write dates and these information between dates will be written in listview.


What I have tried:

C#
private void Write_File()
       {
           string now = DateTime.Now.ToString("dd:MM:yyyy __ HH:mm:ss");

           sw = File.AppendText(filePath);


           sw.Write(now);
           sw.Write(" __ 01342 __");
           sw.Write(" __25__");
           sw.WriteLine(" __ 720__");


           sw.Write(now);
           sw.Write(" __ 09284 __");
           sw.Write(" __28__");
           sw.WriteLine(" __ 729__");

           sw.Flush();
           sw.Close();
       }
Posted
Updated 13-May-18 20:08pm
v3
Comments
F-ES Sitecore 11-May-18 9:25am    
What's the question?
BillWoodruff 12-May-18 17:34pm    
We need much more detail to help you with this.
Emrah Duatepe 14-May-18 1:22am    
Guys,information that comes to me like this

11:05:2018 __ 17:27:59 __ 01342 __ __25__ __ 720__
11:05:2018 __ 17:27:59 __ 09284 __ __28__ __ 729__
11:05:2018 __ 17:28:29 __ 01342 __ __25__ __ 720__

These are in text.So They are information about material's feature .Costumer can would like to know these features between dates.So on the interface there are two object that costumer should write dates and these information between dates will be written in listview.
Richard MacCutchan 14-May-18 3:30am    
Create a class that will hold the different fields of the text. Then parse the strings into their constituent parts. and create a collection of objects of your class containing the details. You can then display the data in some view type that allows the customer to select individual items.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900