Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Linq;
using Portal.Shared.Data.Main;
using Portal.Shared.Properties;
namespace Portal.Shared.Services
{
/// <summary>
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Web;
using Portal.Shared.Controllers;
using Portal.Shared.Data.Main;
using Portal.Shared.Infrastructure;
using CrmBB.Models;
using Microsoft.Crm.Sdk.Messages;
using Microsoft.Xrm.Client;
using Microsoft.Xrm.Client.Services;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Client;
using Microsoft.Xrm.Sdk.Messages;
using Microsoft.Xrm.Sdk.Metadata;
using Microsoft.Xrm.Sdk.Query;
using Newtonsoft.Json;
$scope.save = function() {
$scope.$broadcast('show-errors-check-validity');
if($scope.frmSpreadsheet.$valid){
return spreadsheetService.save(vm.spreadsheet, $state.params.number).then(function() {
$scope.$emit('spreadsheet-saved');
$scope.frmSpreadsheet.$setPristine();
$state.go('bids.detail.view.survey.spreadsheet.view', $state.params);
});
}
<canvas width="1000" height="500" id="canvas"></canvas>
<script>
var colors = ['red','green','blue','cyan','maroon', 'olive', 'yellow'];
var width = 1000,
height = 500;
var cmpSep = 12.5,
streamerSep = 50,
streamerNr = 16,
sourceSep = 25,
sourceNr = 2,
@gautema
gautema / gist:1605791
Created January 13, 2012 12:08
System.Web.HttpCookieCollection
/// <devdoc>
/// <para>Returns an <see cref='System.Web.HttpCookie'/> item from the collection.</para>
/// </devdoc>
public HttpCookie Get(String name) {
HttpCookie cookie = (HttpCookie)BaseGet(name);
if (cookie == null && _response != null) {
// response cookies are created on demand
cookie = new HttpCookie(name);
AddCookie(cookie, true);