コード例 #1
0
 public ChannelInfo()
 {
     InitializeComponent();
     cIViewModel                       = new ChannelInfoViewModel();
     this.DataContext                  = cIViewModel;
     this.MouseLeftButtonDown         += ChannelInfo_MouseLeftButtonDown;
     btnChannelNumGeneration.IsEnabled = true;
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        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)
            {
            }
        }