更新控件前-检查控件是否可用且句柄已创建

更新控件前-检查控件是否可用且句柄已创建

// 检查控件是否可用且句柄已创建

if (control == null || control.IsDisposed || !control.IsHandleCreated)
{return;
}