// Constructor public MainPage() { InitializeComponent(); proxy = new NewsWCFClient("BasicHttpBinding_INewsWCF1"); proxy.connectReaderCompleted += new EventHandler <NewsService.connectReaderCompletedEventArgs>(connectReaderCallback); // Sample code to localize the ApplicationBar //BuildLocalizedApplicationBar(); }
protected override void OnStart(string[] args) { try { systemLog.WriteEntry("-Service Start-"); proxy = new NewsWCFClient(); thread = new Thread(this.stud); thread.Start(); } catch (Exception ex) { systemLog.WriteEntry(ex.Message); } if (!Directory.Exists("C:\\xmlFileWatcherCSharp")) { Directory.CreateDirectory("C:\\xmlFileWatcherCSharp"); } }
public MainWindow() { InitializeComponent(); proxy = new NewsWCFClient(); }