上一页 1 2 3 4 5 6 ··· 10 下一页
  2021年3月7日
摘要: using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; public class ChatLinkListener : MonoBehaviour, IPointerClickHandler, IBeginDr 阅读全文
posted @ 2021-03-07 15:08 凌落成迷 阅读(537) 评论(0) 推荐(0) 编辑
  2021年1月25日
摘要: 平面坐标计算代码 /// 平面坐标系,通过三角函数求终点坐标 /// startPoint(x,y): 起点 /// angle: 角度 /// distance: 距离 /// <returns>终点坐标</returns> function calNewPointByAngle2(startPo 阅读全文
posted @ 2021-01-25 16:40 凌落成迷 阅读(126) 评论(0) 推荐(0) 编辑
  2020年11月24日
摘要: 后台运行 this.ShowInTaskbar = false;//不在任务栏中显示 this.Visibility = Visibility.Hidden;//不显示窗口 设置右下角托盘 //托盘小图标 NotifyIcon notifyIcon; void icon() { string pat 阅读全文
posted @ 2020-11-24 15:02 凌落成迷 阅读(66) 评论(0) 推荐(0) 编辑
  2020年8月16日
摘要: 1 1、格式化货币(跟系统的环境有关,中文系统默认格式化人民币,英文系统格式化美元) 2 string.Format("{0:C}",0.2) 结果为:¥0.20 (英文操作系统结果:$0.20) 3 默认格式化小数点后面保留两位小数,如果需要保留一位或者更多,可以指定位数 4 string.For 阅读全文
posted @ 2020-08-16 15:00 凌落成迷 阅读(2004) 评论(0) 推荐(0) 编辑
  2020年6月3日
摘要: #region 开机自启 /// <summary> /// 开机自启创建 /// </summary> /// <param name="exeName">程序名称</param> /// <returns></returns> public bool StartAutomaticallyCrea 阅读全文
posted @ 2020-06-03 17:22 凌落成迷 阅读(429) 评论(0) 推荐(0) 编辑
摘要: XMAL中<Window x:Class="WpfNoScreen.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2020-06-03 17:09 凌落成迷 阅读(1864) 评论(0) 推荐(1) 编辑
  2020年5月20日
摘要: 按键 似乎有问题,并没有想象中那么灵敏 if (Application.platform == RuntimePlatform.Android&&Input.GetKeyDown(KeyCode.Escape)) { //返回键 } if (Application.platform == Runti 阅读全文
posted @ 2020-05-20 15:39 凌落成迷 阅读(144) 评论(0) 推荐(0) 编辑
  2020年4月28日
摘要: UGUI切换层级 int allCount = this.transform.childCount;//获取当前容器中所有image的数量 _gob.transform.SetSiblingIndex(allCount-1);//count-1指把child物体_gob在当前子物体列表的顺序设置为最 阅读全文
posted @ 2020-04-28 13:43 凌落成迷 阅读(410) 评论(0) 推荐(0) 编辑
  2020年4月24日
摘要: 报错:尝试读取或写入受保护的内存。这通常指示其他内存已损坏 因为 waveSource是在主线程中生成的,但是waveSource.Dispose();是新建了一个线程调用的,所以此处问题,我是用以下方式解决的 private void Time_Elapsed(object sender, Ela 阅读全文
posted @ 2020-04-24 11:49 凌落成迷 阅读(320) 评论(0) 推荐(0) 编辑
摘要: Dispatcher.Invoke( new Action(delegate { textBox.Text+= msg; }) ); System.Windows.Application.Current.Dispatcher.Invoke(new System.Action(() => { IPri 阅读全文
posted @ 2020-04-24 11:12 凌落成迷 阅读(221) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页