public bool RemoveByKey(WindowsListKey wlKey, bool close) { int i; bool flag; WindowsListEntry windowsListEntry1 = null; for (i = 0; i < m_List.Count; i++) { WindowsListEntry windowsListEntry2 = (WindowsListEntry)m_List[i]; if (wlKey.Equals(windowsListEntry2.Key)) { windowsListEntry1 = windowsListEntry2; break; } } if (windowsListEntry1 == null) { flag = false; } else { m_List.RemoveAt(i); if (close) { windowsListEntry1.Form.Close(); } flag = true; } return flag; }
public bool IsPresent(WindowsListKey wlK) { foreach (WindowsListEntry entry1 in this.m_List) { if (entry1.Key.Equals(wlK)) { return true; } } return false; }
public bool RemoveByKey(WindowsListKey wlKey) { return RemoveByKey(wlKey, false); }
public Form Window(WindowsListKey key) { for (int num1 = 0; num1 < this.m_List.Count; num1++) { WindowsListEntry entry1 = (WindowsListEntry) this.m_List[num1]; if (key.Equals(entry1.Key)) { Form form1 = entry1.Form; if (form1.WindowState == FormWindowState.Minimized) { form1.WindowState = FormWindowState.Normal; } form1.Show(); return form1; } } return null; }
public WindowsListEntry(WindowsListKey key, Form form, Form parentForm) { m_key = key; m_form = form; m_ParentFrm = parentForm; }