public ChannelInfo() { InitializeComponent(); cIViewModel = new ChannelInfoViewModel(); this.DataContext = cIViewModel; this.MouseLeftButtonDown += ChannelInfo_MouseLeftButtonDown; btnChannelNumGeneration.IsEnabled = true; }
private bool ChannelMatchesFilter(ChannelInfoViewModel channel) { if (string.IsNullOrWhiteSpace(this.SearchString)) { return(true); } if (channel.Name.Contains(this.SearchString, StringComparison.OrdinalIgnoreCase) || channel.Description.Contains(this.SearchString, StringComparison.OrdinalIgnoreCase)) { return(true); } return(false); }
public ChannelInfo() { InitializeComponent(); GlobalCache.ChannePropertiesList = THRIFTSERVICES.Services.ThriftServiceBasic.SelectChannelPropertiesList(); cIViewModel = new ChannelInfoViewModel(); this.DataContext = cIViewModel; this.MouseLeftButtonDown += ChannelInfo_MouseLeftButtonDown; btnChannelNumGeneration.IsEnabled = true; try { PointLatLngImg point = new PointLatLngImg(); point.Point = new PointLatLng(GlobalCache.Latitude, GlobalCache.Longitude); MainMap.CurrentPosition = point.Point; } catch (Exception) { } }