08 2019 档案
摘要:public Bitmap ChangeImgSize(Image bit, double Multiple) { Bitmap newBitmap = new Bitmap(Convert.ToInt32(bit.Width * Multiple), Convert.ToInt32(bit.Hei
阅读全文
摘要:elementCanvas继承UserControl 声明属性: #region 缩放属性添加 float ratio = 1.0f; public float Ratio { set { ratio = value; Width = width; Height = height; } get =>
阅读全文
摘要:一:申请方式: String ACTION_MANAGE_OVERLAY_PERMISSION = "android.settings.action.MANAGE_OVERLAY_PERMISSION"; Intent intent = new Intent(ACTION_MANAGE_OVERLA
阅读全文
摘要:public String GetDeviceMAC() { String strMacAddr = null; try { // 获得IpD地址 InetAddress ip = getLocalInetAddress(); byte[] b = NetworkInterface.getByIne
阅读全文
摘要:private void Window_KeyDown(object sender, KeyEventArgs e) { if (e.KeyStates==Keyboard.GetKeyStates(Key.Escape)) { this.Close(); } }
阅读全文
摘要:private void button8_Click(object sender, EventArgs e) { FolderBrowserDialog dialog = new FolderBrowserDialog(); dialog.Description = "请选择文件路径"; if (d
阅读全文
摘要:System.Windows.Forms.ColorDialog colorDialog = new System.Windows.Forms.ColorDialog(); //允许使用该对话框的自定义颜色 colorDialog.AllowFullOpen = true; colorDialog.
阅读全文
摘要:后台通知: public event PropertyChangedEventHandler PropertyChanged; protected void OnPropertyChanged(string propertyName) { if (PropertyChanged != null) {
阅读全文
摘要:一:在AndroidManifest.xml文件中赋予相关权限 二:
阅读全文