public FileWatcher(string pathToWatch) { serviceClient = new ServiceClient.ServiceClient("https://localhost:44352");//todo:Read from config file fileSystemWatcher = new FileSystemWatcher { Path = pathToWatch, Filter = "*.xlsx", IncludeSubdirectories = false, EnableRaisingEvents = true }; }
public Industry() { var layout = new StackLayout { Padding = 10 }; var label = new Label { Text = "Select Your Interest.", Font = Font.BoldSystemFontOfSize(NamedSize.Large), TextColor = Color.White, VerticalOptions = LayoutOptions.CenterAndExpand, XAlign = TextAlignment.Center, YAlign = TextAlignment.Center, }; layout.Children.Add(label); var subLabel = new Label { Text = "What do like to do?", Font = Font.BoldSystemFontOfSize(NamedSize.Medium), TextColor = Color.White, VerticalOptions = LayoutOptions.CenterAndExpand, XAlign = TextAlignment.Center, YAlign = TextAlignment.Center, }; layout.Children.Add(subLabel); var industries = new ServiceClient.ServiceClient().GetIndustries(); foreach (var industry in industries) { layout.Children.Add(CreateIndustry(industry)); } BackgroundImage = "industry.png"; Content = new ScrollView { Content = layout }; }