zoukankan      html  css  js  c++  java
  • 整理 .Net 2.0 下 WinForms中常用的方法(更新中...)

    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.Windows.Forms;

    /*
     * 整理:夏荣全
     * 日期:2008年1月11日
     * 联系:lyout@live.cn
     * 说明:转载请注明出处
     * 使用:Lyout.FormMethods.方法名
    */

    namespace Lyout {
        
    delegate void SetTextCallback(Control control, string text);
        
    delegate void SetEnableCallback(Control control, bool enable);
        
    delegate string GetTextCallback(Control control);
        
    delegate void ClearItemsCallback(ComboBox comboBox);
        
    delegate void AddItemCallback(ComboBox comboBox, object item);

        
    /// <summary>
        
    /// WinForm中常用的方法类
        
    /// </summary>

        public sealed class FormMethods {
            
    多线程方法

            
    Mdi窗口方法
        }

    }



    当然,跨线程也可以用 backgroundWorker 组,这就看个人所需了。
  • 相关阅读:
    Ubuntu 14.04 卸载通过源码安装的库
    Ubuntu 14.04 indigo 相关依赖
    Ubuntu 14.04 indigo 安装 cartographer 1.0.0
    Ubuntu 14.04 改变文件或者文件夹的拥有者
    安装cartographer遇到Unrecognized syntax identifier "proto3". This parser only recognizes "proto2"问题
    Unrecognized syntax identifier "proto3". This parser only recognizes "proto2". ”问题解决方法
    查看所有用户组,用户名
    1卸载ROS
    Ubuntu14.04 软件安装卸载
    Ubuntu14.04系统显示器不自动休眠修改
  • 原文地址:https://www.cnblogs.com/lyout/p/1034871.html
Copyright © 2011-2022 走看看