提交 63103537 编写于 作者: M Miguel de Icaza

[winforms] Pass 2 of removing NET_2_0 from winforms

上级 e4f22a9c
......@@ -27,7 +27,6 @@
//
#if NET_2_0
namespace System.Windows.Forms
{
public enum ArrowDirection
......@@ -38,4 +37,3 @@ namespace System.Windows.Forms
Down = 17
}
}
#endif
\ No newline at end of file
......@@ -27,7 +27,6 @@
//
#if NET_2_0
namespace System.Windows.Forms
{
public enum BindingCompleteState
......@@ -37,4 +36,3 @@ namespace System.Windows.Forms
Exception = 2
}
}
#endif
\ No newline at end of file
......@@ -404,23 +404,19 @@ namespace System.Windows.Forms {
ThemeEngine.Current.CPDrawMenuGlyph (graphics, rectangle, glyph, ThemeEngine.Current.ColorMenuText, Color.Empty);
}
#if NET_2_0
public static void DrawMenuGlyph (Graphics graphics, Rectangle rectangle, MenuGlyph glyph, Color foreColor, Color backColor)
{
ThemeEngine.Current.CPDrawMenuGlyph (graphics, rectangle, glyph, foreColor, backColor);
}
#endif
public static void DrawMenuGlyph(Graphics graphics, int x, int y, int width, int height, MenuGlyph glyph) {
DrawMenuGlyph(graphics, new Rectangle(x, y, width, height), glyph);
}
#if NET_2_0
public static void DrawMenuGlyph (Graphics graphics, int x, int y, int width, int height, MenuGlyph glyph, Color foreColor, Color backColor)
{
DrawMenuGlyph (graphics, new Rectangle (x, y, width, height), glyph, foreColor, backColor);
}
#endif
public static void DrawMixedCheckBox(Graphics graphics, Rectangle rectangle, ButtonState state) {
ThemeEngine.Current.CPDrawMixedCheckBox (graphics, rectangle, state);
......@@ -484,7 +480,6 @@ namespace System.Windows.Forms {
ThemeEngine.Current.CPDrawStringDisabled (graphics, s, font, color, layoutRectangle, format);
}
#if NET_2_0
public static void DrawStringDisabled (IDeviceContext dc, string s, Font font, Color color, Rectangle layoutRectangle, TextFormatFlags format)
{
ThemeEngine.Current.CPDrawStringDisabled (dc, s, font, color, layoutRectangle, format);
......@@ -494,7 +489,6 @@ namespace System.Windows.Forms {
{
ThemeEngine.Current.CPDrawVisualStyleBorder (graphics, bounds);
}
#endif
#endregion // Public Static Methods
}
}
......@@ -48,14 +48,10 @@ namespace System.Windows.Forms {
CacheText = 0x00004000,
EnableNotifyMessage = 0x00008000,
#if NET_2_0
[EditorBrowsable (EditorBrowsableState.Never)]
#endif
DoubleBuffer = 0x00010000,
#if NET_2_0
OptimizedDoubleBuffer = 0x00020000,
UseTextForAccessibility = 0x00040000
#endif
}
}
......@@ -27,7 +27,6 @@
//
#if NET_2_0
namespace System.Windows.Forms
{
public enum ControlUpdateMode
......@@ -36,4 +35,3 @@ namespace System.Windows.Forms
Never = 1
}
}
#endif
......@@ -218,11 +218,8 @@ namespace System.Windows.Forms {
editable.CancelEdit ();
OnItemChanged (new ItemChangedEventArgs (Position));
}
#if NET_2_0
if (list is ICancelAddNew)
((ICancelAddNew)list).CancelNew (listposition);
#endif
}
public override void EndCurrentEdit ()
......@@ -237,10 +234,8 @@ namespace System.Windows.Forms {
editable.EndEdit ();
}
#if NET_2_0
if (list is ICancelAddNew)
((ICancelAddNew)list).EndNew (listposition);
#endif
}
public void Refresh ()
......@@ -261,23 +256,19 @@ namespace System.Windows.Forms {
onCurrentChangedHandler (this, e);
}
#if NET_2_0
// don't call OnCurrentItemChanged here, as it can be overridden
if (onCurrentItemChangedHandler != null) {
onCurrentItemChangedHandler (this, e);
}
#endif
}
#if NET_2_0
protected override void OnCurrentItemChanged (EventArgs e)
{
if (onCurrentItemChangedHandler != null) {
onCurrentItemChangedHandler (this, e);
}
}
#endif
protected virtual void OnItemChanged (ItemChangedEventArgs e)
{
......@@ -289,13 +280,11 @@ namespace System.Windows.Forms {
transfering_data = false;
}
#if NET_2_0
void OnListChanged (ListChangedEventArgs args)
{
if (ListChanged != null)
ListChanged (this, args);
}
#endif
protected virtual void OnPositionChanged (EventArgs e)
{
......@@ -374,12 +363,7 @@ namespace System.Windows.Forms {
return TypeDescriptor.GetProperties (t, att);
}
#if NET_2_0
protected
#else
private
#endif
void OnMetaDataChanged (EventArgs e)
protected void OnMetaDataChanged (EventArgs e)
{
if (MetaDataChanged != null)
MetaDataChanged (this, e);
......@@ -392,9 +376,7 @@ namespace System.Windows.Forms {
case ListChangedType.PropertyDescriptorDeleted:
case ListChangedType.PropertyDescriptorChanged:
OnMetaDataChanged (EventArgs.Empty);
#if NET_2_0
OnListChanged (e);
#endif
break;
case ListChangedType.ItemDeleted:
if (list.Count == 0) {
......@@ -402,10 +384,8 @@ namespace System.Windows.Forms {
listposition = -1;
UpdateIsBinding ();
#if NET_2_0
OnPositionChanged (EventArgs.Empty);
OnCurrentChanged (EventArgs.Empty);
#endif
}
else if (e.NewIndex <= listposition) {
/* the deleted row was either the current one, or one earlier in the list.
......@@ -419,9 +399,7 @@ namespace System.Windows.Forms {
}
OnItemChanged (new ItemChangedEventArgs (-1));
#if NET_2_0
OnListChanged (e);
#endif
break;
case ListChangedType.ItemAdded:
if (list.Count == 1) {
......@@ -429,15 +407,10 @@ namespace System.Windows.Forms {
ChangeRecordState (e.NewIndex,
false, false, true, false);
#if ONLY_1_1
UpdateIsBinding ();
#else
OnItemChanged (new ItemChangedEventArgs (-1));
OnListChanged (e);
#endif
}
else {
#if NET_2_0
if (e.NewIndex <= listposition) {
ChangeRecordState (e.NewIndex,
false, false, false, false);
......@@ -449,42 +422,29 @@ namespace System.Windows.Forms {
OnItemChanged (new ItemChangedEventArgs (-1));
OnListChanged (e);
}
#else
OnItemChanged (new ItemChangedEventArgs (-1));
#endif
}
break;
case ListChangedType.ItemChanged:
if (editing) {
#if NET_2_0
if (e.NewIndex == listposition)
OnCurrentItemChanged (EventArgs.Empty);
#endif
OnItemChanged (new ItemChangedEventArgs (e.NewIndex));
}
#if NET_2_0
OnListChanged (e);
#endif
break;
case ListChangedType.Reset:
PushData();
UpdateIsBinding();
#if NET_2_0
OnListChanged (e);
#endif
break;
default:
#if NET_2_0
OnListChanged (e);
#endif
break;
}
}
#if NET_2_0
public event ListChangedEventHandler ListChanged;
#endif
public event ItemChangedEventHandler ItemChanged;
public event EventHandler MetaDataChanged;
}
......
......@@ -111,17 +111,12 @@ namespace System.Windows.Forms
[DefaultEvent("Navigate")]
[DefaultProperty("DataSource")]
[Designer("System.Windows.Forms.Design.DataGridDesigner, " + Consts.AssemblySystem_Design, "System.ComponentModel.Design.IDesigner")]
#if NET_2_0
[ComplexBindingProperties ("DataSource", "DataMember")]
[ClassInterface (ClassInterfaceType.AutoDispatch)]
[ComVisible (true)]
#endif
public class DataGrid : Control, ISupportInitialize, IDataGridEditingService
{
[Flags]
#if !NET_2_0
[Serializable]
#endif
public enum HitTestType
{
None = 0,
......@@ -375,14 +370,12 @@ namespace System.Windows.Forms
}
}
#if NET_2_0
[Browsable (false)]
[EditorBrowsable (EditorBrowsableState.Never)]
public override ImageLayout BackgroundImageLayout {
get { return base.BackgroundImageLayout; }
set { base.BackgroundImageLayout = value; }
}
#endif
[DispId(-504)]
[DefaultValue(BorderStyle.Fixed3D)]
......@@ -465,10 +458,8 @@ namespace System.Windows.Forms
if (grid_style.ColumnHeadersVisible != value) {
grid_style.ColumnHeadersVisible = value;
#if NET_2_0
// UIA Framework: To keep track of header
OnUIAColumnHeadersVisibleChanged ();
#endif
}
}
}
......@@ -635,11 +626,7 @@ namespace System.Windows.Forms
[DefaultValue(null)]
[RefreshProperties(RefreshProperties.Repaint)]
#if NET_2_0
[AttributeProvider (typeof (IListSource))]
#else
[TypeConverter("System.Windows.Forms.Design.DataSourceConverter, " + Consts.AssemblySystem_Design)]
#endif
public object DataSource {
get { return datasource; }
set {
......@@ -747,12 +734,10 @@ namespace System.Windows.Forms
CurrentTableStyle.GridColumnStyles[columnIndex].SetColumnValueAtRow (ListManager,
rowIndex, value);
#if NET_2_0
// UIA Framework: Raising changes in datasource.
OnUIAGridCellChanged (new CollectionChangeEventArgs (CollectionChangeAction.Refresh,
new DataGridCell (rowIndex,
columnIndex)));
#endif
}
}
......@@ -765,9 +750,6 @@ namespace System.Windows.Forms
get { return new Font (Font, FontStyle.Underline); }
}
#if !NET_2_0
[ComVisible(false)]
#endif
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public Color LinkHoverColor {
......@@ -2163,21 +2145,17 @@ namespace System.Windows.Forms
if (selected_rows.Count == 0)
selection_start = row;
#if NET_2_0
// UIA Framework: To raise event only when selecting
bool wasSelected = rows [row].IsSelected;
#endif
selected_rows[row] = true;
rows[row].IsSelected = true;
InvalidateRow (row);
#if NET_2_0
// UIA Framework:
if (!wasSelected)
OnUIASelectionChangedEvent (new CollectionChangeEventArgs (CollectionChangeAction.Add, row));
#endif
}
......@@ -2262,20 +2240,16 @@ namespace System.Windows.Forms
public void UnSelect (int row)
{
#if NET_2_0
// UIA Framework: To raise event only when unselecting
bool wasSelected = rows [row].IsSelected;
#endif
rows[row].IsSelected = false;
selected_rows.Remove (row);
InvalidateRow (row);
#if NET_2_0
// UIA Framework: Raises selection event
if (!wasSelected)
OnUIASelectionChangedEvent (new CollectionChangeEventArgs (CollectionChangeAction.Remove, row));
#endif
}
#endregion // Public Instance Methods
......@@ -2470,7 +2444,6 @@ namespace System.Windows.Forms
new_rows[i].VerticalOffset = new_rows[i-1].VerticalOffset + new_rows[i-1].Height;
}
#if NET_2_0
// UIA Framework event: Updates collection list depending on binding
CollectionChangeAction action = CollectionChangeAction.Refresh;
if (rows != null) {
......@@ -2479,15 +2452,12 @@ namespace System.Windows.Forms
else
action = CollectionChangeAction.Remove;
}
#endif
rows = new_rows;
if (recalc)
CalcAreasAndInvalidate ();
#if NET_2_0
// UIA Framework event: Row added/removed
OnUIACollectionChangedEvent (new CollectionChangeEventArgs (action, -1));
#endif
}
internal void UpdateRowsFrom (DataGridRelationshipRow row)
......@@ -2799,14 +2769,12 @@ namespace System.Windows.Forms
remove { base.BackgroundImageChanged -= value; }
}
#if NET_2_0
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public new event EventHandler BackgroundImageLayoutChanged {
add { base.BackgroundImageLayoutChanged += value; }
remove { base.BackgroundImageLayoutChanged -= value; }
}
#endif
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
......@@ -3373,8 +3341,6 @@ namespace System.Windows.Forms
#endregion // Code originally in DataGridDrawingLogic.cs
#if NET_2_0
#region UIA Framework: Methods, Properties and Events
static object UIACollectionChangedEvent = new object ();
......@@ -3467,7 +3433,5 @@ namespace System.Windows.Forms
#endregion // UIA Framework: Methods, Properties and Events
#endif
}
}
......@@ -93,9 +93,7 @@ namespace System.Windows.Forms
}
[TypeConverter(typeof(System.ComponentModel.StringConverter))]
#if NET_2_0
[DefaultValue (false)]
#endif
public object FalseValue {
get {
return false_value;
......@@ -126,9 +124,7 @@ namespace System.Windows.Forms
}
[TypeConverter(typeof(System.ComponentModel.StringConverter))]
#if NET_2_0
[DefaultValue (true)]
#endif
public object TrueValue {
get {
return true_value;
......@@ -178,13 +174,8 @@ namespace System.Windows.Forms
base.ConcedeFocus ();
}
#if NET_2_0
protected internal override void Edit (CurrencyManager source, int rowNum, Rectangle bounds, bool readOnly, string displayText, bool cellIsVisible)
{
#else
protected internal override void Edit (CurrencyManager source, int rowNum, Rectangle bounds, bool readOnly, string instantText, bool cellIsVisible)
{
#endif
editing_row = rowNum;
model_state = FromValueToState (GetColumnValueAtRow (source, rowNum));
editing_state = model_state | CheckState.Selected;
......
......@@ -44,11 +44,9 @@ namespace System.Windows.Forms
#endregion
#region Constructors
#if NET_2_0
public DataGridColumnHeaderAccessibleObject ()
{
}
#endif
public DataGridColumnHeaderAccessibleObject (DataGridColumnStyle owner)
{
this.owner = owner;
......@@ -231,9 +229,7 @@ namespace System.Windows.Forms
[Editor("System.Windows.Forms.Design.DataGridColumnStyleMappingNameEditor, " + Consts.AssemblySystem_Design, typeof(System.Drawing.Design.UITypeEditor))]
[Localizable(true)]
#if NET_2_0
[DefaultValue ("")]
#endif
public string MappingName {
get {
return mapping_name;
......@@ -404,24 +400,15 @@ namespace System.Windows.Forms
Edit (source, rowNum, bounds, readOnly, string.Empty);
}
#if NET_2_0
protected internal virtual void Edit (CurrencyManager source, int rowNum, Rectangle bounds, bool readOnly, string displayText)
{
string instantText = displayText;
#else
protected internal virtual void Edit (CurrencyManager source, int rowNum, Rectangle bounds, bool readOnly, string instantText)
{
#endif
Edit (source, rowNum, bounds, readOnly, instantText, true);
}
protected internal abstract void Edit (CurrencyManager source,
int rowNum, Rectangle bounds, bool readOnly,
#if NET_2_0
string displayText,
#else
string instantText,
#endif
bool cellIsVisible);
......@@ -501,15 +488,9 @@ namespace System.Windows.Forms
SetDataGridInColumn (value);
}
#if NET_2_0
protected internal virtual void UpdateUI (CurrencyManager source, int rowNum, string displayText)
{
}
#else
protected internal virtual void UpdateUI (CurrencyManager source, int rowNum, string instantText)
{
}
#endif
#endregion // Public Instance Methods
......
......@@ -42,9 +42,7 @@ namespace System.Windows.Forms
[ToolboxItem(false)]
public class DataGridTableStyle : Component, IDataGridEditingService
{
#if NET_2_0
readonly
#endif
public static DataGridTableStyle DefaultTableStyle = new DataGridTableStyle (true);
#region Local Variables
......@@ -314,9 +312,7 @@ namespace System.Windows.Forms
}
}
#if !NET_2_0
[ComVisible(false)]
#endif
[EditorBrowsable(EditorBrowsableState.Never)]
[Browsable(false)]
public Color LinkHoverColor {
......@@ -331,9 +327,7 @@ namespace System.Windows.Forms
}
[Editor("System.Windows.Forms.Design.DataGridTableStyleMappingNameEditor, " + Consts.AssemblySystem_Design, typeof(System.Drawing.Design.UITypeEditor))]
#if NET_2_0
[DefaultValue ("")]
#endif
public string MappingName {
get { return mapping_name; }
set {
......
......@@ -34,10 +34,8 @@ namespace System.Windows.Forms
[DefaultProperty("GridEditName")]
[DesignTimeVisible(false)]
[ToolboxItem(false)]
#if NET_2_0
[ClassInterface (ClassInterfaceType.AutoDispatch)]
[ComVisible (true)]
#endif
public class DataGridTextBox : TextBox
{
......
......@@ -76,9 +76,7 @@ namespace System.Windows.Forms
#region Public Instance Properties
[Editor("System.Windows.Forms.Design.DataGridColumnStyleFormatEditor, " + Consts.AssemblySystem_Design, typeof(System.Drawing.Design.UITypeEditor))]
#if NET_2_0
[DefaultValue (null)]
#endif
public string Format {
get { return format; }
set {
......@@ -166,14 +164,9 @@ namespace System.Windows.Forms
HideEditBox ();
}
#if NET_2_0
protected internal override void Edit (CurrencyManager source, int rowNum, Rectangle bounds, bool readOnly, string displayText, bool cellIsVisible)
{
string instantText = displayText;
#else
protected internal override void Edit (CurrencyManager source, int rowNum, Rectangle bounds, bool readOnly, string instantText, bool cellIsVisible)
{
#endif
grid.SuspendLayout ();
textbox.TextChanged -= new EventHandler (textbox_TextChanged);
......@@ -336,14 +329,9 @@ namespace System.Windows.Forms
grid.ResumeLayout (false);
}
#if NET_2_0
protected internal override void UpdateUI (CurrencyManager source, int rowNum, string displayText)
{
string instantText = displayText;
#else
protected internal override void UpdateUI (CurrencyManager source, int rowNum, string instantText)
{
#endif
if (textbox.Visible // I don't really like this, but it gets DataGridTextBoxColumnTest.TestUpdateUI passing
&& textbox.IsInEditOrNavigateMode) {
textbox.Text = GetFormattedValue (source, rowNum);
......
......@@ -24,8 +24,6 @@
// Ivan N. Zlatev <contact@i-nz.net>
//
#if NET_2_0
using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
......@@ -6733,5 +6731,3 @@ namespace System.Windows.Forms {
}
}
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
using System;
using System.ComponentModel;
......@@ -155,5 +153,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -23,7 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
namespace System.Windows.Forms {
......@@ -39,5 +38,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public enum DataGridViewAutoSizeColumnMode {
......@@ -40,5 +38,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public class DataGridViewAutoSizeColumnModeEventArgs : EventArgs {
......@@ -49,5 +47,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -24,12 +24,8 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public delegate void DataGridViewAutoSizeColumnModeEventHandler (object sender, DataGridViewAutoSizeColumnModeEventArgs e);
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public enum DataGridViewAutoSizeColumnsMode {
......@@ -39,5 +37,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public class DataGridViewAutoSizeColumnsModeEventArgs : EventArgs {
......@@ -43,5 +41,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -24,12 +24,8 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public delegate void DataGridViewAutoSizeColumnsModeEventHandler (object sender, DataGridViewAutoSizeColumnsModeEventArgs e);
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public class DataGridViewAutoSizeModeEventArgs : EventArgs {
......@@ -43,5 +41,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -24,12 +24,8 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public delegate void DataGridViewAutoSizeModeEventHandler (object sender, DataGridViewAutoSizeModeEventArgs e);
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public enum DataGridViewAutoSizeRowMode {
......@@ -35,5 +33,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -23,9 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
namespace System.Windows.Forms {
public enum DataGridViewAutoSizeRowsMode {
......@@ -39,5 +36,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
using System.ComponentModel;
namespace System.Windows.Forms {
......@@ -264,4 +262,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
using System.ComponentModel;
namespace System.Windows.Forms {
......@@ -45,5 +43,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -24,12 +24,9 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public delegate void DataGridViewBindingCompleteEventHandler (object sender, DataGridViewBindingCompleteEventArgs e);
}
#endif
......@@ -23,8 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
using System.Drawing;
using System.ComponentModel;
using System.Windows.Forms.VisualStyles;
......@@ -285,4 +283,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,7 +24,6 @@
//
#if NET_2_0
using System.Drawing;
using System.ComponentModel;
......@@ -99,4 +98,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -25,7 +25,6 @@
//
#if NET_2_0
using System;
using System.Drawing;
......@@ -1587,5 +1586,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public enum DataGridViewCellBorderStyle {
......@@ -43,5 +41,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -24,7 +24,6 @@
//
#if NET_2_0
using System.ComponentModel;
......@@ -52,4 +51,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,12 +24,9 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public delegate void DataGridViewCellCancelEventHandler (object sender, DataGridViewCellCancelEventArgs e);
}
#endif
......@@ -23,8 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
using System.Collections;
using System.ComponentModel;
......@@ -222,5 +220,3 @@ namespace System.Windows.Forms
}
}
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public class DataGridViewCellContextMenuStripNeededEventArgs : DataGridViewCellEventArgs {
......@@ -43,4 +41,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,7 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
......@@ -32,4 +31,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public class DataGridViewCellErrorTextNeededEventArgs : DataGridViewCellEventArgs {
......@@ -45,4 +43,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,7 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
......@@ -32,4 +31,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public class DataGridViewCellEventArgs : EventArgs {
......@@ -50,4 +48,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,7 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
......@@ -32,4 +31,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public class DataGridViewCellFormattingEventArgs : ConvertEventArgs {
......@@ -66,4 +64,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,12 +24,8 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public delegate void DataGridViewCellFormattingEventHandler (object sender, DataGridViewCellFormattingEventArgs e);
}
#endif
......@@ -24,7 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
......@@ -50,4 +49,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,12 +24,8 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public delegate void DataGridViewCellMouseEventHandler (object sender, DataGridViewCellMouseEventArgs e);
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
using System.ComponentModel;
using System.Drawing;
......@@ -145,5 +143,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -24,7 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
......@@ -32,4 +31,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public class DataGridViewCellParsingEventArgs : ConvertEventArgs {
......@@ -65,4 +63,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,7 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
......@@ -32,4 +31,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public class DataGridViewCellStateChangedEventArgs : EventArgs {
......@@ -50,4 +48,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
using System.Drawing;
using System.ComponentModel;
using System.Globalization;
......@@ -388,4 +386,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public class DataGridViewCellStyleContentChangedEventArgs : EventArgs {
......@@ -50,4 +48,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,7 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
......@@ -32,4 +31,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -23,7 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
using System.ComponentModel;
using System.Globalization;
......@@ -47,4 +46,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -23,8 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
namespace System.Windows.Forms {
[FlagsAttribute()]
......@@ -41,5 +39,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public class DataGridViewCellToolTipTextNeededEventArgs : DataGridViewCellEventArgs {
......@@ -44,5 +42,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -24,12 +24,8 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public delegate void DataGridViewCellToolTipTextNeededEventHandler (object sender, DataGridViewCellToolTipTextNeededEventArgs e);
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
using System.ComponentModel;
namespace System.Windows.Forms {
......@@ -58,5 +56,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -23,12 +23,8 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
namespace System.Windows.Forms {
public delegate void DataGridViewCellValidatingEventHandler (object sender, DataGridViewCellValidatingEventArgs e);
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public class DataGridViewCellValueEventArgs : EventArgs {
......@@ -56,4 +54,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,12 +24,9 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public delegate void DataGridViewCellValueEventHandler (object sender, DataGridViewCellValueEventArgs e);
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
using System;
using System.ComponentModel;
using System.Drawing;
......@@ -467,4 +465,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,7 +24,6 @@
//
#if NET_2_0
using System.Drawing;
using System.ComponentModel;
......@@ -145,4 +144,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public enum DataGridViewClipboardCopyMode {
......@@ -37,4 +35,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
using System;
using System.ComponentModel;
......@@ -523,4 +521,3 @@ Example */
}
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
using System.ComponentModel;
using System.Collections;
using System.Collections.Generic;
......@@ -285,4 +283,3 @@ namespace System.Windows.Forms
}
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
public class DataGridViewColumnDividerDoubleClickEventArgs : HandledMouseEventArgs {
......@@ -44,4 +42,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,7 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
......@@ -32,4 +31,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,7 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
......@@ -44,4 +43,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -23,13 +23,9 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
namespace System.Windows.Forms {
public delegate void DataGridViewColumnEventHandler (object sender, DataGridViewColumnEventArgs e);
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
using System;
using System.Drawing;
using System.ComponentModel;
......@@ -314,4 +312,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -23,9 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
namespace System.Windows.Forms {
public enum DataGridViewColumnHeadersHeightSizeMode {
......@@ -36,4 +33,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -23,9 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
namespace System.Windows.Forms {
public enum DataGridViewColumnSortMode {
......@@ -35,5 +32,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -23,9 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
namespace System.Windows.Forms {
public class DataGridViewColumnStateChangedEventArgs : EventArgs {
......@@ -49,5 +46,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -23,13 +23,9 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
namespace System.Windows.Forms {
public delegate void DataGridViewColumnStateChangedEventHandler (object sender, DataGridViewColumnStateChangedEventArgs e);
}
#endif
......@@ -25,8 +25,6 @@
//
#if NET_2_0
using System.Collections;
using System.ComponentModel;
using System.Drawing;
......@@ -569,4 +567,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -23,9 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
using System.Collections;
using System.ComponentModel;
using System.Drawing.Design;
......@@ -244,5 +241,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -23,9 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
namespace System.Windows.Forms {
public enum DataGridViewComboBoxDisplayStyle {
......@@ -36,4 +33,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -23,9 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
using System.Runtime.InteropServices;
namespace System.Windows.Forms {
......@@ -98,4 +95,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -23,9 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
namespace System.Windows.Forms {
public enum DataGridViewContentAlignment {
......@@ -42,4 +39,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -23,9 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
namespace System.Windows.Forms {
[FlagsAttribute()]
......@@ -45,4 +42,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -23,9 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
using System;
namespace System.Windows.Forms {
......@@ -59,4 +56,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -23,13 +23,8 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
namespace System.Windows.Forms {
public delegate void DataGridViewDataErrorEventHandler (object sender, DataGridViewDataErrorEventArgs e);
}
#endif
......@@ -23,9 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
namespace System.Windows.Forms {
public enum DataGridViewEditMode {
......@@ -37,5 +34,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -23,9 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
namespace System.Windows.Forms {
public class DataGridViewEditingControlShowingEventArgs : EventArgs {
......@@ -51,4 +48,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -23,13 +23,8 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
namespace System.Windows.Forms {
public delegate void DataGridViewEditingControlShowingEventHandler (object sender, DataGridViewEditingControlShowingEventArgs e);
}
#endif
......@@ -22,10 +22,6 @@
// Author:
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
using System.Drawing;
using System.ComponentModel;
......@@ -107,4 +103,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
using System;
using System.Runtime.InteropServices;
......@@ -46,4 +44,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -23,9 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
namespace System.Windows.Forms {
public enum DataGridViewHeaderBorderStyle {
......@@ -38,4 +35,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -23,9 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
using System.ComponentModel;
using System.Drawing;
......@@ -227,4 +224,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -23,9 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
namespace System.Windows.Forms {
public enum DataGridViewHitTestType {
......@@ -40,4 +37,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -23,9 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
using System.Drawing;
using System.ComponentModel;
......@@ -264,4 +261,3 @@ namespace System.Windows.Forms {
}
#endif
......@@ -23,9 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
namespace System.Windows.Forms {
public enum DataGridViewImageCellLayout {
......@@ -36,5 +33,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -23,9 +23,6 @@
// Pedro Martínez Juliá <pedromj@gmail.com>
//
#if NET_2_0
using System.ComponentModel;
using System.Drawing;
......@@ -114,5 +111,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -24,8 +24,6 @@
//
//
#if NET_2_0
using System;
using System.Collections.Generic;
using System.Text;
......@@ -334,5 +332,3 @@ namespace System.Windows.Forms
}
}
#endif
......@@ -24,8 +24,6 @@
//
//
#if NET_2_0
using System;
using System.Collections.Generic;
using System.ComponentModel;
......@@ -249,5 +247,3 @@ namespace System.Windows.Forms
#endregion
}
}
#endif
\ No newline at end of file
......@@ -24,8 +24,6 @@
//
#if NET_2_0
namespace System.Windows.Forms {
[FlagsAttribute()]
......@@ -42,5 +40,3 @@ namespace System.Windows.Forms {
}
}
#endif
......@@ -23,8 +23,6 @@
//
#if NET_2_0
using System.ComponentModel;
using System.Drawing;
using System.Runtime.InteropServices;
......@@ -765,4 +763,3 @@ namespace System.Windows.Forms
}
}
#endif
......@@ -24,8 +24,6 @@
//
#if NET_2_0
using System.ComponentModel;
namespace System.Windows.Forms {
......@@ -45,5 +43,3 @@ namespace System.Windows.Forms {
}
}
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册