protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { _SelectedInfo = null; SelectedInfoChanged = null; Area = Rectangle.Empty; ScaleX = 0; ScaleY = 0; foreach (KeyValuePair <object, DXControl> pair in MapInfoObjects) { if (pair.Value == null) { continue; } if (pair.Value.IsDisposed) { continue; } pair.Value.Dispose(); } MapInfoObjects.Clear(); MapInfoObjects = null; if (Image != null) { if (!Image.IsDisposed) { Image.Dispose(); } Image = null; } if (Panel != null) { if (!Panel.IsDisposed) { Panel.Dispose(); } Panel = null; } } }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { if (Lines != null) { for (int i = 0; i < Lines.Count; i++) { if (Lines[i] != null) { if (!Lines[i].IsDisposed) { Lines[i].Dispose(); } Lines[i] = null; } } Lines.Clear(); Lines = null; } if (ScrollBar != null) { if (!ScrollBar.IsDisposed) { ScrollBar.Dispose(); } ScrollBar = null; } if (TextPanel != null) { if (!TextPanel.IsDisposed) { TextPanel.Dispose(); } TextPanel = null; } } }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { Tabs.Remove(this); if (Panel != null) { if (!Panel.IsDisposed) { Panel.Dispose(); } Panel = null; } if (TextPanel != null) { if (!TextPanel.IsDisposed) { TextPanel.Dispose(); } TextPanel = null; } if (ScrollBar != null) { if (!ScrollBar.IsDisposed) { ScrollBar.Dispose(); } ScrollBar = null; } if (History != null) { for (int i = 0; i < History.Count; i++) { if (History[i] != null) { if (!History[i].IsDisposed) { History[i].Dispose(); } History[i] = null; } } History.Clear(); History = null; } if (AlertIcon != null) { if (!AlertIcon.IsDisposed) { AlertIcon.Dispose(); } AlertIcon = null; } } }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { if (SupportTabControl != null) { if (!SupportTabControl.IsDisposed) { SupportTabControl.Dispose(); } SupportTabControl = null; } if (AutoPotionTab != null) { if (!AutoPotionTab.IsDisposed) { AutoPotionTab.Dispose(); } AutoPotionTab = null; } if (AutoSkillTab != null) { if (!AutoSkillTab.IsDisposed) { AutoSkillTab.Dispose(); } AutoSkillTab = null; } if (AutoBattleTab != null) { if (!AutoBattleTab.IsDisposed) { AutoBattleTab.Dispose(); } AutoBattleTab = null; } if (WarriorSkillPanel != null) { if (!WarriorSkillPanel.IsDisposed) { WarriorSkillPanel.Dispose(); } WarriorSkillPanel = null; } if (WarriorSkillPanelTitle != null) { if (!WarriorSkillPanelTitle.IsDisposed) { WarriorSkillPanelTitle.Dispose(); } WarriorSkillPanelTitle = null; } if (Links != null) { for (int i = 0; i < Links.Length; i++) { Links[i] = null; } Links = null; } for (int i = 0; i < Rows.Length; i++) { if (Rows[i] == null) { continue; } if (!Rows[i].IsDisposed) { Rows[i].Dispose(); } Rows[i] = null; } Rows = null; if (ScrollBar != null) { if (!ScrollBar.IsDisposed) { ScrollBar.Dispose(); } ScrollBar = null; } } }