mirror of
https://github.com/StockSharp/StockSharp.git
synced 2026-12-06 17:42:13 +00:00
40 lines
923 B
C#
40 lines
923 B
C#
namespace StockSharp.Studio.Core.Commands
|
|
{
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
using Ecng.Common;
|
|
|
|
using StockSharp.Xaml.Code;
|
|
|
|
public class CompileStrategyInfoCommand : BaseStudioCommand
|
|
{
|
|
public CompileStrategyInfoCommand(StrategyInfo info, IEnumerable<CodeReference> references)
|
|
{
|
|
if (info == null)
|
|
throw new ArgumentNullException("info");
|
|
|
|
if (references == null)
|
|
throw new ArgumentNullException("references");
|
|
|
|
Info = info;
|
|
References = references;
|
|
}
|
|
|
|
public StrategyInfo Info { get; private set; }
|
|
public IEnumerable<CodeReference> References { get; private set; }
|
|
}
|
|
|
|
public class CompileStrategyInfoResultCommand : BaseStudioCommand
|
|
{
|
|
public CompileStrategyInfoResultCommand(CompilationResult result)
|
|
{
|
|
if (result == null)
|
|
throw new ArgumentNullException("result");
|
|
|
|
Result = result;
|
|
}
|
|
|
|
public CompilationResult Result { get; private set; }
|
|
}
|
|
} |