private void UpdateSystemForm() { FormAttribute formAttribute = (FormAttribute)(from attribute in this.GetType().GetCustomAttributes(true) where attribute is FormAttribute select attribute).First(); var asmName = this.GetType().BaseType.Assembly.GetName().FullName; string xml = resourceManager.GetSystemFormXML(asmName, formAttribute.Resource, formUID); b1UIDAO.LoadBatchAction(xml); formEventHandler.RegisterForm(formUID, this); this.OnInitializeComponent(); }