private void InitializeExportListCommands()
 {
     if (this.exportListCommandSeparator == null)
     {
         this.exportListCommandSeparator = Command.CreateSeparator();
     }
     if (this.exportListCommand == null)
     {
         this.exportListCommand          = new Command();
         this.exportListCommand.Text     = Strings.ExportListDefaultCommandText;
         this.exportListCommand.Icon     = Icons.ExportList;
         this.exportListCommand.Name     = "ExportListCommand";
         this.exportListCommand.Execute += this.ExportListCommand_Execute;
     }
     base.ExportListCommands.AddRange(new Command[]
     {
         this.exportListCommandSeparator,
         this.exportListCommand
     });
     if (this.ListControl is DataTreeListView)
     {
         if (this.expandAllCommand == null)
         {
             this.expandAllCommand          = new Command();
             this.expandAllCommand.Text     = Strings.ExpandAllDefaultCommandText;
             this.expandAllCommand.Name     = "ExpandAllCommand";
             this.expandAllCommand.Icon     = Icons.ExpandAll;
             this.expandAllCommand.Execute += delegate(object param0, EventArgs param1)
             {
                 DataTreeListView dataTreeListView = this.ListControl as DataTreeListView;
                 if (dataTreeListView != null)
                 {
                     dataTreeListView.ExpandAll();
                 }
             };
         }
         base.ExportListCommands.Insert(base.ExportListCommands.IndexOf(this.exportListCommand), this.expandAllCommand);
         if (this.collapseRootsCommand == null)
         {
             this.collapseRootsCommand          = new Command();
             this.collapseRootsCommand.Text     = Strings.CollapseAllDefaultCommandText;
             this.collapseRootsCommand.Name     = "CollapseAllCommand";
             this.collapseRootsCommand.Icon     = Icons.CollapseAll;
             this.collapseRootsCommand.Execute += delegate(object param0, EventArgs param1)
             {
                 DataTreeListView dataTreeListView = this.ListControl as DataTreeListView;
                 if (dataTreeListView != null)
                 {
                     dataTreeListView.CollapseRootItems();
                 }
             };
         }
         base.ExportListCommands.Insert(base.ExportListCommands.IndexOf(this.exportListCommand), this.collapseRootsCommand);
     }
 }