View DicomQueryManager.cs
1 2 3 4 5 6 7 8 9 10
using System;
using System.Collections.Generic;
using System.Diagnostics;
using DicomObjects;
using DicomObjects.Enums;
 
namespace SB.Shared.Dicom
{
public class DicomQueryManager : IDicomQueryManager
{
View InstallNServicebus.ps1
1 2 3 4 5 6 7 8 9
#requires -version 2.0
param (
[parameter(Mandatory=$true)] [string]$password,
[string]$type = "Release",
[string]$profile = "NServiceBus.Production",
[string]$userName = "IPO\ServiceBus",
[array]$binfolders = @("SB.Pacs.Pollers","SB.Orders.ScannedDocuments", "SB.Billing.SaveOrderParts", "SB.OrderService.SaveOrders", "SB.Orders.ProcessDicomImages"), #The Order is important!
[bool]$sideBySide = $false #Install multiple version, won't uninstall existing service.
)
View FormBoundToScreen
1 2 3 4 5 6 7 8 9 10
private void DockFormIfOutOfViewableArea()
{
var widthTolerance = Location.X + (Width / 2);
var heightTolerance = Location.Y + (Height / 2);
Screen.AllScreens.OrderBy(r => r.WorkingArea.X).ForEach(screen =>
{
if (!IsOnThisScreen(screen)) return;
 
if (heightTolerance > screen.WorkingArea.Height)
Location = new Point(screen.WorkingArea.X, screen.Bounds.Height - Height + screen.Bounds.Y);
View RebuildIndexes
1 2 3 4 5 6 7 8 9 10
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET NOCOUNT ON
GO
 
IF (OBJECT_ID('RebuildIndexes') IS NOT NULL)
DROP PROCEDURE RebuildIndexes
GO
View Gemfile
1 2 3 4 5 6 7 8 9 10
source 'https://rubygems.org'
 
gem 'paperclip'
gem 'aws-sdk'
 
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.6'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
View ReportChanged.cs
1 2 3 4 5 6 7
private void ReportChanged(string siteName, string accessionNumbers, int radWhereReportStatus, bool isaddendum, string plaintext, string richtext)
{
Logger.Debug("Report {0} Site:{1} AccessionNumber: {2} Status: {3}", ReportEvent.Changed, siteName, accessionNumbers, (RadWhereReportStatus)radWhereReportStatus);
if (PowerscribeStatus.UnknownOrPending == (PowerscribeStatus)radWhereReportStatus)
return;
Hub.Publish(HubEvents.DictationSystem.PSInterop.ReportChanged);
}
View PowerscribeStatus.cs
1 2 3 4 5 6 7 8 9 10
namespace Powerscribe.Client
{
public enum PowerscribeStatus
{
/// <summary>
/// Specifies that a report was created and then discarded.
/// </summary>
Discarded = -1,
 
/// <summary>
View KillProcesses.cs
1 2 3 4 5 6 7 8 9 10
public static void KillProcesses(string processName, bool currentUserOnly, Process excludeMe = null)
{
var processes = new ManagementObjectSearcher(string.Format("SELECT * FROM Win32_Process WHERE Name='{0}'", processName)).Get();
foreach (var o in processes)
{
var process = (ManagementObject)o;
var processId = int.Parse(process["ProcessId"].ToString());
if (process["ExecutablePath"] == null) continue;
if (excludeMe != null && processId == excludeMe.Id) continue;
var ownerInfo = new object[2];
View DicomQueryManager.cs
1 2 3 4 5 6 7 8 9 10
using System;
using System.Linq;
using DicomObjects;
using DicomObjects.Enums;
 
namespace Dicom
{
public class DicomQueryManager : IDicomQueryManager
{
public string CurrentServer { get; set; }
View Install-License.ps1
1 2 3 4 5 6 7 8 9 10
Write "Installing NServiceBus License"
 
$content = [xml]"<?xml version=`"1.0`" encoding=`"utf-8`"?>
<license id=`"MyId`" expiration=`"2114-06-11T04:13:03.9080905`" type=`"Standard`" ProductName=`"Royalty Free Platform License`" WorkerThreads=`"Max`" LicenseVersion=`"5.0`" MaxMessageThroughputPerSecond=`"Max`" AllowedNumberOfWorkerNodes=`"Max`" UpgradeProtectionExpiration=`"2015-06-11`" Applications=`"ServiceInsight;NServiceBus;ServicePulse;ServiceMatrix;ServiceControl;`" LicenseType=`"Royalty Free Platform License`" Edition=`"Enterprise `" Quantity=`"2`" Perpetual=`"`">
<name>MyName</name>
<Signature xmlns=`"http://www.w3.org/2000/09/xmldsig#`">
<SignedInfo>
<CanonicalizationMethod Algorithm=`"http://www.w3.org/TR/2001/REC-xml-c14n-20010315`" />
<SignatureMethod Algorithm=`"http://www.w3.org/2000/09/xmldsig#rsa-sha1`" />
<Reference URI=`"`">
Something went wrong with that request. Please try again.