Example #1
0
 protected virtual void OnList(ListEventArgs e)
 {
     if (List != null)
         List(this, e);
 }
Example #2
0
 private void listView_SelectedIndexChanged(object sender, System.EventArgs e)
 {
     if (this.listView.SelectedIndex >= 0)
     {
         ListEventArgs eventArgs = new ListEventArgs((this.listView.SelectedItem as BrightIdeasSoftware.OLVListItem).RowObject);
         OnList(eventArgs);
     }
 }
Example #3
0
 void m_listWindow_List(object sender, ListEventArgs e)
 {
     foreach (KeyValuePair<string, ListWindow> kvp in listWindows)
     {
         if (sender == kvp.Value)
         {
             if (propertyWindows.ContainsKey(kvp.Key))
             {
                 propertyWindows[kvp.Key].Entity = e.Entity;
                 return;
             }
             else
             {
                 if (syntaxHighlightingWindows.ContainsKey(kvp.Key))
                     syntaxHighlightingWindows[kvp.Key].Entity = e.Entity;
                 if (treeWindows.ContainsKey(kvp.Key))
                     treeWindows[kvp.Key].Entity = e.Entity;
                 return;
             }
         }
     }
 }