摘要: 【导图】: 实现效果: 选择文件夹 打开图片文件选择: 打开图片选择: private string openFileDialog() { OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Filter = "图 阅读全文
posted @ 2024-10-18 15:01 春天花会开, 阅读(211) 评论(0) 推荐(0) 编辑
摘要: #region 下拉 private Dictionary<string, T> getComboSource<T>(params T[] types) where T : Enum { var enumValues = types.Length > 0 ? types : (T[])Enum.Ge 阅读全文
posted @ 2024-10-18 14:14 春天花会开, 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 【实现效果】 【问题】handycontrol的CheckComboBox没有SelectedItems这一项: 当保存下来的选中项,需要在下次打开的时候加载,而handycontrol的CheckComboBox没有SelectedItems, 于是就先解决如何拿到绑定SelectedItems, 阅读全文
posted @ 2024-09-21 16:21 春天花会开, 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 【需求】 现有一个需求,3行4列的从左到右从上到下的数组,转成4行3列,如图所示: 【实现方法】 通过C#编码实现,两种方法: 第一种方法: public double[] transpose(double[] src, int w, int h) { double[] dst = null; if 阅读全文
posted @ 2024-08-27 14:42 春天花会开, 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 一、C++函数中的double** 参数 C++ DLL中的接口如下: int gray2energy(double** data,const int length,const double gamma); 在C#中调用C++: 方式1,通过指针的方式在C#也用double**对应C++ 中的dou 阅读全文
posted @ 2024-08-23 15:06 春天花会开, 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 用到的工具有:supermemo、anki、quicker 【第一部分:supermemo导出txt文件】 第一步:在supermemo中找到想要导出的结点,右键“导出” >“问答文件” 第二步:取消勾选Allow HTML 第三步:记录文件位置 此时导出成功后会自动打开txt文件,可查看到是这个样 阅读全文
posted @ 2024-07-18 16:55 春天花会开, 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 【git的使用】 如何上传更改? 暂存:团队资源管理器 - 更改 - 输入提交记录 - 点击“全部提交”; 拉取:团队资源管理器 - 同步 - 拉取; 上传:团队资源管理器 - 同步 - 推送; 如何拉取代码? 先安装Git-2.41.0-64-bit.exe,然后有两种方式可以从gitlab浏览器 阅读全文
posted @ 2024-03-28 11:44 春天花会开, 阅读(11) 评论(0) 推荐(0) 编辑
摘要: public class ListBoxItemIndexConverter : IMultiValueConverter { public object Convert(object[] values, Type targetType, object parameter, CultureInfo 阅读全文
posted @ 2024-03-28 11:22 春天花会开, 阅读(46) 评论(0) 推荐(0) 编辑
摘要: <ListBox> <ListBox.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Horizontal"/> </ItemsPanelTemplate> </ListBox.ItemsPanel> </ListBox> 阅读全文
posted @ 2024-03-27 17:41 春天花会开, 阅读(102) 评论(0) 推荐(0) 编辑
摘要: private void setOther() { System.Threading.Tasks.Task.Run(() => { // 需要异步的内容 }); } 阅读全文
posted @ 2024-03-27 17:37 春天花会开, 阅读(4) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示