Beispiel #1
0
    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;
    }
Beispiel #2
0
	public bool IsPresent(WindowsListKey wlK)
	{
		foreach (WindowsListEntry entry1 in this.m_List)
		{
			if (entry1.Key.Equals(wlK))
			{
				return true;
			}
		}
		return false;
	}
Beispiel #3
0
 public bool RemoveByKey(WindowsListKey wlKey)
 {
   return RemoveByKey(wlKey, false);
 }
Beispiel #4
0
	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;
	}
Beispiel #5
0
 public WindowsListEntry(WindowsListKey key, Form form, Form parentForm)
 {
   m_key = key;
   m_form = form;
   m_ParentFrm = parentForm;
 }