protected override void OnLostFocus(System.EventArgs e) { base.OnLostFocus(e); if (BackColor == System.Drawing.SystemColors.Highlight) { System.Nullable <System.Drawing.Color> nullable = originalBackColor; BackColor = nullable.HasValue ? nullable.GetValueOrDefault() : System.Drawing.Color.White; } Refresh(); }
private void InsertRawDataFile(RawDataFile obj) { System.Nullable <int> p1 = obj.FileId; System.Nullable <System.DateTime> p2 = obj.UploadDate; string p3 = obj.UploaderLogin; this.RawDataFile_Insert(obj.FileName, obj.FolderName, obj.Contents, ref p1, ref p2, ref p3); obj.FileId = p1.GetValueOrDefault(); obj.UploadDate = p2.GetValueOrDefault(); obj.UploaderLogin = p3; }
protected override void OnEnabledChanged(System.EventArgs e) { base.OnEnabledChanged(e); if (!Enabled) { if (!originalBackColor.HasValue) { originalBackColor = new System.Nullable <System.Drawing.Color>(BackColor); } BackColor = System.Drawing.SystemColors.Control; } else { System.Nullable <System.Drawing.Color> nullable = originalBackColor; BackColor = nullable.HasValue ? nullable.GetValueOrDefault() : System.Drawing.Color.White; } Refresh(); }
static StackObject *GetValueOrDefault_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method); System.Nullable <System.Int32> instance_of_this_method = (System.Nullable <System.Int32>) typeof(System.Nullable <System.Int32>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); var result_of_this_method = instance_of_this_method.GetValueOrDefault(); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); WriteBackInstance(__domain, ptr_of_this_method, __mStack, ref instance_of_this_method); __intp.Free(ptr_of_this_method); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method; return(__ret + 1); }