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 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
 }
Example #3
0
        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;
 }
Example #5
0
 public CsharpAction(CsharpCodeType t):this()
 {
     CodeType = t;
 }
Example #6
0
 public CsharpAction(CsharpCodeType t) : this()
 {
     CodeType = t;
 }