public StatisticsInformationModel(StatisticsInformation entity)
 {
     Id = entity.Id;
     IP = entity.IP;
     Date = entity.Date;
     ControllerName = entity.ControllerName;
     ActionName = entity.ActionName;
     Country = entity.Country;
 }
Ejemplo n.º 2
0
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            var url = String.Format(@"http://particular.net/support?caller=serviceMatrix&smversion={0}&vsversion={1}",
                                    System.Web.HttpUtility.UrlEncode(StatisticsInformation.GetOperatingSystemVersion()),
                                    System.Web.HttpUtility.UrlEncode(StatisticsInformation.GetVisualStudioVersion(this.ServiceProvider.GetService <EnvDTE.DTE>())));
            var vsWebBroserService = this.ServiceProvider.GetService <SVsWebBrowsingService, IVsWebBrowsingService>();
            var frame = default(IVsWindowFrame);

            vsWebBroserService.Navigate(url, 1, out frame);
        }