摘要: c#DevExpress 按钮visible设置false隐藏不成功 simplebutton放在容器里面则不会生效,若要隐藏,需要隐藏容器 点击容器,显示对应的按钮 这里隐藏《跳过》按钮。 layoutControlItem_ignore.Visibility = LayoutVisibility 阅读全文
posted @ 2024-04-17 16:00 txwtech 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 重载: protected override bool ProcessDialogKey(Keys keyData) { if (keyData == Keys.Enter) { // 回车键按下时不调用基类的方法,从而不触发任何事件 MessageBox.Show("请使用鼠标点击按钮", CFi 阅读全文
posted @ 2024-04-12 14:47 txwtech 阅读(6) 评论(0) 推荐(0) 编辑
摘要: [DllImport("user32.dll")]//拖动无窗体的控件 public static extern bool ReleaseCapture(); [DllImport("user32.dll")] public static extern bool SendMessage(IntPtr 阅读全文
posted @ 2024-04-12 14:43 txwtech 阅读(2) 评论(0) 推荐(0) 编辑
摘要: if (textBox_username.Text=="L8xxx87xxx5" && textBox_Text=="txw") 翻译 搜索 复制 阅读全文
posted @ 2024-04-10 08:10 txwtech 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #双边滤波,代码实现 import numpy as np import math import cv2 def getClosenessHeight(sigma_g,H,W): r,c = np.mgrid[0:H:1,0:W:1] r-=(H-1)/2 c-=(W-1)/2 closeWeigh 阅读全文
posted @ 2024-04-07 15:54 txwtech 阅读(10) 评论(0) 推荐(0) 编辑
摘要: numpy.exp():返回e的幂次方,e是 常数,2.71828 np.power(): 计算 x 的 y 次方。 import numpy as np #计算常数e的幂次方 np.exp(2) #计算 x 的 y 次方 np.power(3,2) exp,高等数学里以自然常数e为底的指数函数,它 阅读全文
posted @ 2024-04-02 08:49 txwtech 阅读(5) 评论(0) 推荐(0) 编辑
摘要: import random import cv2 import numpy as np from datetime import datetime import math def printWithdate(str): time2 = datetime.now() time2a = time2.st 阅读全文
posted @ 2024-03-29 16:43 txwtech 阅读(6) 评论(0) 推荐(0) 编辑
摘要: import { error } from "jquery" function open_door() {console.log('door is opened')} function GetValue():string{ return 'ok' } open_door() let value2 = 阅读全文
posted @ 2024-03-29 10:49 txwtech 阅读(3) 评论(0) 推荐(0) 编辑
摘要: TypeScript(ts) worker_threads.Worker类代码示范 TypeScript中worker_threads.Worker类的典型用法示范 1: Promise return new Promise((resolve, reject) => { const worker = 阅读全文
posted @ 2024-03-29 10:45 txwtech 阅读(17) 评论(0) 推荐(0) 编辑
摘要: import { extend } from "jquery" //映射类型 type Account ={ id:number isEmployee:boolean notes:string[] } //所有字段都是可选的 type OptionalAccount={ [k in keyof Ac 阅读全文
posted @ 2024-03-28 08:04 txwtech 阅读(13) 评论(0) 推荐(0) 编辑