protected CsharpAction(CsharpCodeType t) { // ReSharper disable DoNotCallOverridableMethodsInConstructor CodeType = t; Properties["CompileError"] = new MetaProp("CompileError", typeof(string), new ReadOnlyAttribute(true)); CompileError = ""; Properties["CompileError"].Show = false; Properties["CompileError"].PropertyChanged += CompileErrorPropertyChanged; // ReSharper restore DoNotCallOverridableMethodsInConstructor }
protected DynamicallyCompiledCodeComposite(CsharpCodeType codeType, params Component[] children) : base(children) { CodeType = codeType; Properties["CompileError"] = new MetaProp("CompileError", typeof(string), new ReadOnlyAttribute(true), new DisplayNameAttribute( ProfessionbuddyBot.Instance.Strings[ "Action_CSharpAction_CompileError"])) { Show = false }; Properties["CompileError"].PropertyChanged += CompileErrorPropertyChanged; }
protected DynamicallyCompiledCodeAction(CsharpCodeType codeType) { CodeType = codeType; Properties["CompileError"] = new MetaProp( "CompileError", typeof(string), new ReadOnlyAttribute(true), new DisplayNameAttribute( Strings["Action_CSharpAction_CompileError"])) { Show = false }; Properties["CompileError"].PropertyChanged += CompileErrorPropertyChanged; }
public CsharpAction(CsharpCodeType t):this() { CodeType = t; }
public CsharpAction(CsharpCodeType t) : this() { CodeType = t; }