void AddConditionButton_Click(object sender, EventArgs e) { try { SearchLayout.SuspendLayout(); new UISearchCondition(ModuleInfo, this); SearchLayout.ResumeLayout(); } catch (Exception ex) { ParentModule.ShowError(ex); } }
public void CreateFixedCondition(ModuleFieldInfo fieldInfo) { try { SearchLayout.SuspendLayout(); var newCondition = new UISearchCondition(ModuleInfo, this); newCondition.SetCondition(fieldInfo); SearchLayout.ResumeLayout(); ConditionModule.UpdateConditionQuery(); } catch (Exception ex) { ParentModule.ShowError(ex); } }