string stanice="frekvence1";
Public string get()
{
string stanice="kiss";
return stanice;
}
string stanice="frekvence1";
Public string get()
{
string stanice="kiss";
return stanice;
}
[ServiceContract] public interface IEventService { [OperationContract] [WebGet(UriTemplate = "EventInfo/{exe_name}", ResponseFormat = WebMessageFormat.Xml)] EventInfo GetEventInfo(string exe_name); }
[OperationContract] [WebInvoke(Method = "PUT", UriTemplate = "/customer/{id}")] public void PutCustomer(int id, Customer customer) { } [OperationContract] [WebInvoke(Method = "DELETE", UriTemplate = "/customer/{id}")] public void DeleteCustomer(int id) { }
[DataContract] public class EventInfo { [DataMember] public string Name { get; set; } }
<EventInfo> <Name>AKCE</Name> </EventInfo>
[DataContract(Name="MyEventInfo")] public class EventInfo { [DataMember(Name="Jmeno")] public string Name { get; set; } }
<MyEventInfo xmlns="http://schemas.datacontract.org/2004/07/WCF8bcPgServices" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <Jmeno>AKCE</Jmeno> </MyEventInfo>
WebRequest request = WebRequest.Create(service + invoke); request.Method = "GET"; using (WebResponse response = request.GetResponse()) { using (Stream stream = response.GetResponseStream()) { XmlTextReader reader = new XmlTextReader(stream); } }
private static ScrollViewer GetScrollbar(DependencyObject dep) { for (int i = 0; i < VisualTreeHelper.GetChildrenCount(dep); i++) { var child = VisualTreeHelper.GetChild(dep, i); if (child != null && child is ScrollViewer) return child as ScrollViewer; else { ScrollViewer sub = GetScrollbar(child); if (sub != null) return sub; } } return null; }