本帖最后由 bulls5988 于 2011-10-14 20:06:20 编辑

解决方案 »

  1.   

    可以给类加一个事件
    //类中
    public event Action<bool> StateChecked;//m_index_dataread函数中
    if (condition)
    {
        if (this.StateChecked != null)
        {
            this.StateChecked(true);
        }
    }
    else
    {
        if (this.StateChecked != null)
        {
            this.StateChecked(true);
        }
    }// 窗体中
    m_index_read mycard = new m_index_read();
    mycard.StateChecked += b => b_sales.Enabled = b;