Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/22/10 00:44:01 (14 years ago)
Author:
swagner
Message:

Sorted usings and removed unused usings in entire solution (#1094)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.WinFormsUI/2.3.1/WinFormsUI-2.3.1/Docking/FloatWindowCollection.cs

    r2645 r4068  
    1 using System;
    21using System.Collections.Generic;
    32using System.Collections.ObjectModel;
    4 using System.Drawing;
    5 using System.Windows.Forms;
    63
    7 namespace WeifenLuo.WinFormsUI.Docking
    8 {
    9   public class FloatWindowCollection : ReadOnlyCollection<FloatWindow>
    10   {
    11     internal FloatWindowCollection()
    12             : base(new List<FloatWindow>())
    13     {
    14     }
     4namespace WeifenLuo.WinFormsUI.Docking {
     5  public class FloatWindowCollection : ReadOnlyCollection<FloatWindow> {
     6    internal FloatWindowCollection()
     7      : base(new List<FloatWindow>()) {
     8    }
    159
    16     internal int Add(FloatWindow fw)
    17     {
    18       if (Items.Contains(fw))
    19         return Items.IndexOf(fw);
     10    internal int Add(FloatWindow fw) {
     11      if (Items.Contains(fw))
     12        return Items.IndexOf(fw);
    2013
    21       Items.Add(fw);
    22             return Count - 1;
    23     }
     14      Items.Add(fw);
     15      return Count - 1;
     16    }
    2417
    25     internal void Dispose()
    26     {
    27       for (int i=Count - 1; i>=0; i--)
    28         this[i].Close();
    29     }
     18    internal void Dispose() {
     19      for (int i = Count - 1; i >= 0; i--)
     20        this[i].Close();
     21    }
    3022
    31     internal void Remove(FloatWindow fw)
    32     {
    33       Items.Remove(fw);
    34     }
     23    internal void Remove(FloatWindow fw) {
     24      Items.Remove(fw);
     25    }
    3526
    36     internal void BringWindowToFront(FloatWindow fw)
    37     {
    38       Items.Remove(fw);
    39       Items.Add(fw);
    40     }
    41   }
     27    internal void BringWindowToFront(FloatWindow fw) {
     28      Items.Remove(fw);
     29      Items.Add(fw);
     30    }
     31  }
    4232}
Note: See TracChangeset for help on using the changeset viewer.