Exemplo n.º 1
0
        public void Dispose()
        {
            foreach (var group in Groups)
            {
                group.Dispose();
            }

            foreach (var condition in Conditions)
            {
                condition.Dispose();
            }

            if (ParentGroup != null)
            {
                ParentLayoutGroup.Remove(LayoutGroup);
            }

            LayoutGroup.Dispose();
            m_EditUse.Dispose();
            m_SQLLogic.Dispose();
            m_AddGroup.Dispose();
            m_AddCondition.Dispose();
            m_DeleteGroup.Dispose();
            m_SQLLogicLayoutItem.Dispose();
            m_MainSeparator.Dispose();
            m_SQLLogicEmptySpace.Dispose();
            m_EditUseLayoutItem.Dispose();
            m_AddGroupLayoutItem.Dispose();
            m_AddConditionLayoutItem.Dispose();
            m_DeleteGroupLayoutItem.Dispose();
        }
Exemplo n.º 2
0
 public override void Dispose()
 {
     if (DateCalendar1 != null)
     {
         DateCalendar1.EditDateModified -= DateCalendar_SelectionChanged;
     }
     if (DateCalendar2 != null)
     {
         DateCalendar2.EditDateModified -= DateCalendar_SelectionChanged;
     }
     foreach (Control ctrl in DateFilterControl.Controls)
     {
         if (ctrl is CheckEdit)
         {
             if (NotOurControl(ctrl as CheckEdit))
             {
                 (ctrl as CheckEdit).CheckedChanged -= OriginalDateFilterPopup_CheckedChanged;
             }
         }
     }
     try {
         this.View.ActiveFilterString = GetFilterCriteriaByControlState().ToString();
     }
     catch {
     }
     DateCalendar1.Dispose();
     DateCalendar2.Dispose();
     base.Dispose();
     if (dateCalendar != null)
     {
         dateCalendar.Dispose();
         dateCalendar = null;
     }
     if (Greater != null)
     {
         Greater.Dispose();
         Greater = null;
     }
     if (Less != null)
     {
         Less.Dispose();
         Less = null;
     }
     if (Between != null)
     {
         Between.Dispose();
         Between = null;
     }
     if (dateFilterControl != null)
     {
         dateFilterControl.Dispose();
         dateFilterControl = null;
     }
     if (item != null)
     {
         item.Dispose();
         item = null;
     }
 }
Exemplo n.º 3
0
 public void Dispose()
 {
     m_ConditionGroupLayout.Dispose();
     m_EditUse.Dispose();
     m_Condition.Dispose();
     m_Operator.Dispose();
     m_EditValue.Dispose();
     m_RemoveButton.Dispose();
     m_EditUseLayoutItem.Dispose();
     m_ConditionLayoutItem.Dispose();
     m_OperatorLayoutItem.Dispose();
     m_EditValueLayoutItem.Dispose();
     m_RemoveButtonLayoutItem.Dispose();
 }