Click here to Skip to main content
16,016,736 members

Comments by Haechtsuppe (Top 7 by date)

Haechtsuppe 26-Jan-17 7:14am View    
yep it's a 'char' field, based on Stone-aged AS400 table. Nobody cared about those Problems in these days and now in 2017 a mid-twenty aged developer has to handle schemes which are older than me :-|
Haechtsuppe 26-Jan-17 6:44am View    
Oh well thank you, that works so far, but I also extended my web Service with the latest check-out entry, than calculate and write it back to temporary table.

"SELECT TOP 1 time FROM tblmyTable where username = '" + username + "' AND date = '"+ int.Parse(time.ToString("ddMMyyyy"))+"' AND indicator='check-out' ORDER BY time DESC;";

but your solution also works for me with a few customizations.
Thank you
Haechtsuppe 21-Apr-16 8:19am View    
Probably I need a small kick how to place a bar including the hamburger on top and hide the splitview completely.
As you can see here:
https://www.thurrott.com/wp-content/uploads/2015/08/music.jpg

and not like that:
https://raw.githubusercontent.com/wiki/MyToolkit/MyToolkit/MyToolkitHamburgerClosedLight.png
Haechtsuppe 31-Mar-16 7:32am View    
Oh, that works really nice thank you :-)
Haechtsuppe 31-Mar-16 5:09am View    
Wow, thank you I have not worked with Linq since years. It works great, I added a function to trim the string so I won't get the tags:

<pre lang="c#"> public void fillContent(int number)
{
XDocument doc = XDocument.Load(@"data\stations.xml");
XElement station = doc.Descendants("Station").FirstOrDefault(s => (int?)s.Attribute("ID") == number).Element("Text");
TBText.Text = removeTag(station);
}
private string removeTag(XElement element)
{
string innerXml = element.ToString().Trim().Replace(string.Format("<{0}>", element.Name), "");
innerXml = innerXml.Trim().Replace(string.Format("", element.Name), "");
return innerXml.Trim();
}</pre>

If I plan in future projects to deploy the application with XML files, do you have a hint how to handle it?