mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* Applied patch from Alberto Fernandez with the following changes... * Added Shorcut to MenuItem. * Changed demo.cs to work with new FileDialog. * Created dialogs (Basic funcionality). * Added new: Timer.cs (?) * Removed function ControlLocationChanged (the code has been moved to Control.OnLocationChanged, and now works from child Control, instead from parent.) * MenuItem * Menu * ContextMenu * MainMenu * Fixed Control.Size bug * New Samples: ButtonEvents2.cs ChangeParentDemo.cs (works with Gtk-Warnings) LabelClickDemo.cs (doesn't work for now) Menu.cs * Added new: CommonDialog.cs OpenFileDialog.cs SaveFileDialog.cs FolderBrowserDialog.cs PageSetupDialog.cs PrintDialog.cs * Changed: FileDialog.cs (now Inherits from CommonDialog, and is an abstract class). * Control.Parent works now. * Added - copied from current System.Windows.Forms (wine based): ApplicationContext.cs BindingContext.cs BoundsSpecified.cs ComVisible.cs ControlBindingsCollection.cs ControlStyles.cs CreateParams.cs DragAction.cs DragDropEffects.cs DragEventArgs.cs DragEventHandler.cs DrawItemEventHandler.cs FlatStyle.cs FormBorderStyle.cs FormStartPosition.cs FormWindowState.cs GiveFeedbackEventArgs.cs GiveFeedbackEventHandler.cs HelpEventArgs.cs HelpEventHandler.cs IDataObject.cs ImageList.cs ImeMode.cs IMessageFilter.cs IWin32Window.cs InputLanguageChangedEventArgs.cs InputLanguageChangedEventHandler.cs InputLanguageChangingEventArgs.cs InputLanguageChangingEventHandler.cs InputLanguageCollection.cs InputLanguage.cs InvalidateEventArgs.cs InvalidateEventHandler.cs LayoutEventHandler.cs LeftRightAlignment.cs MdiLayout.cs MeasureItemEventArgs.cs MeasureItemEventHandler.cs MenuMerge.cs Message.cs MouseEventHandler.cs QueryAccessibilityHelpEventArgs.cs QueryAccessibilityHelpEventHandler.cs QueryContinueDragEventArgs.cs QueryContinueDragEventHandler.cs SizeGripStyle.cs UICues.cs UICuesEventArgs.cs UICuesEventHandler.cs * Added (new, incomplete): Cursor.cs Menu.cs ContextMenu.cs * Changed (to be compatible, now have empty methods): MainMenu.cs MenuItem.cs * Added (provides static conversion methods): SWFGtkConv.cs * Work on: Control.cs - Completed stub, connected some events. Forms.cs - Completed stub. Button.cs - Some methos overriden, some property changes have to be aplied to the contained Gtk.Label (instead to the Gtk.Button) * Others minor changes... svn path=/trunk/mcs/; revision=21206
107 lines
2.3 KiB
C#
107 lines
2.3 KiB
C#
//
|
|
// System.Windows.Forms.BindingContext.cs
|
|
//
|
|
// Author:
|
|
// stubbed out by Jaak Simm ([email protected])
|
|
// Dennis hayes ([email protected])
|
|
//
|
|
// (C) 2002/3 Ximian, Inc
|
|
//
|
|
using System.ComponentModel;
|
|
namespace System.Windows.Forms {
|
|
|
|
public class BindingContext {
|
|
|
|
/// <summary>
|
|
/// Manages the collection of BindingManagerBase objects for any object that inherits from the Control class.
|
|
/// </summary>
|
|
|
|
//private
|
|
// --- Constructor
|
|
[MonoTODO]
|
|
public BindingContext ()
|
|
{
|
|
//
|
|
}
|
|
|
|
//
|
|
// --- Public Properties
|
|
// Following properties not stubbed out, because they are only supporting internal .NET Framework infrastructure.
|
|
[MonoTODO]
|
|
public bool IsReadOnly {
|
|
get {
|
|
throw new NotImplementedException ();
|
|
}
|
|
}
|
|
|
|
[MonoTODO]
|
|
public BindingManagerBase this[object dataSource] {
|
|
|
|
get { throw new NotImplementedException (); }
|
|
}
|
|
|
|
[MonoTODO]
|
|
public BindingManagerBase this[object dataSource,string dataMember] {
|
|
|
|
get { throw new NotImplementedException (); }
|
|
}
|
|
|
|
//
|
|
// --- Methods
|
|
// Following methods not stubbed out, because they are only supporting internal .NET Framework infrastructure.
|
|
[MonoTODO]
|
|
protected virtual void AddCore(object dataSource,BindingManagerBase listManager){
|
|
}
|
|
|
|
[MonoTODO]
|
|
protected virtual void ClearCore(){
|
|
}
|
|
|
|
// - void ICollection.CopyTo(Array ar,int index)
|
|
// - IEnumerator IEnumerable.GetEnumerator()
|
|
|
|
[MonoTODO]
|
|
protected virtual void OnCollectionChanged(CollectionChangeEventArgs ccevent){
|
|
}
|
|
|
|
[MonoTODO]
|
|
protected virtual void RemoveCore(object dataSource){
|
|
}
|
|
|
|
[MonoTODO]
|
|
protected internal void Add(object dataSource, BindingManagerBase listManager)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
protected internal void Clear()
|
|
{
|
|
//FIXME:
|
|
}
|
|
|
|
[MonoTODO]
|
|
public bool Contains(object dataSource)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public bool Contains(object dataSource,string dataMember)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
protected internal void Remove(object dataSource)
|
|
{
|
|
//FIXME:
|
|
}
|
|
|
|
//
|
|
// --- Public Events
|
|
// Following events not stubbed out, because they are only supporting internal .NET Framework infrastructure
|
|
public event CollectionChangeEventHandler CollectionChanged;
|
|
}
|
|
}
|