Category Archives: Design and Architect

多线程环境中UI Control 上的属性设计

//UI Control上的属性public string StatusInfo {     set     {         _StatusInfo = value;         ChangeStatusText();     }     get     {         return _StatusInfo;     } } private void ChangeStatusText(){     try     {         if (this.InvokeRequired)         {             this.Invoke(new MethodInvoker(this.ChangeStatusText));             return;         }          lStatusInfo.Text = _StatusInfo;    //设置UI Element     }     catch (Exception e)     … Continue reading

Posted in Design and Architect | Leave a comment

DI vs IoC

Wikipedia对依赖注入有如下描述: Dependency injection (DI) is a programming technique, sometimes also (incorrectly) referred to as inversion of control or IoC, even though, technically speaking, dependency injection specifically refers to a limited-scope implementation of a particular form of IoC. Dependency injection is … Continue reading

Posted in Design and Architect | Leave a comment