本文整理汇总了C#中System.EventHandler类的典型用法代码示例。如果您正苦于以下问题:C# EventHandler类的具体用法?C# EventHandler怎么用?C# EventHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EventHandler类属于System命名空间,在下文中一共展示了EventHandler类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitializeComponent
void InitializeComponent ()
{
dataGrid = new DataGrid ();
SuspendLayout ();
//
// dataGrid
//
dataGrid.DataMember = "";
dataGrid.HeaderForeColor = System.Drawing.SystemColors.ControlText;
dataGrid.Location = new System.Drawing.Point (10, 50);
dataGrid.Name = "dataGrid";
dataGrid.Size = new System.Drawing.Size (600, 500);
//
// MainForm
//
AutoScaleBaseSize = new System.Drawing.Size (5, 13);
ClientSize = new System.Drawing.Size (700, 600);
Controls.Add (dataGrid);
Text = "SWF-Datagrid RealSample";
Name = "MainForm";
Load += new System.EventHandler (MainFormLoad);
ResumeLayout (false);
}
示例2: HeadlinesWindow
internal HeadlinesWindow()
: base(_keyBase, string.Empty)
{
InitializeComponent();
Closed += new System.EventHandler(HeadlinesWindow_Closed);
}
示例3: ColorEditorForm
public ColorEditorForm()
{
InitializeComponent();
this.nowColor = Color.FromArgb(0, 0, 0);
((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
this.numericUpDown1ValueChangedEventHandler = new System.EventHandler(this.numericUpDown1_ValueChanged);
this.numericUpDown2ValueChangedEventHandler = new System.EventHandler(this.numericUpDown2_ValueChanged);
this.numericUpDown3ValueChangedEventHandler = new System.EventHandler(this.numericUpDown3_ValueChanged);
this.hScrollBar1ValueChangedEventHandler += new System.EventHandler(this.hScrollBar1_ValueChanged);
this.hScrollBar2ValueChangedEventHandler += new System.EventHandler(this.hScrollBar2_ValueChanged);
this.hScrollBar3ValueChangedEventHandler += new System.EventHandler(this.hScrollBar3_ValueChanged);
this.numericUpDown1.ValueChanged += this.numericUpDown1ValueChangedEventHandler;
this.numericUpDown2.ValueChanged += this.numericUpDown2ValueChangedEventHandler;
this.numericUpDown3.ValueChanged += this.numericUpDown3ValueChangedEventHandler;
this.hScrollBar1.ValueChanged += this.hScrollBar1ValueChangedEventHandler;
this.hScrollBar2.ValueChanged += this.hScrollBar2ValueChangedEventHandler;
this.hScrollBar3.ValueChanged += this.hScrollBar3ValueChangedEventHandler;
((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
}
示例4: AsyncPixbufLoader
public AsyncPixbufLoader ()
{
delay = new Delay (0, new GLib.IdleHandler (AsyncRead));
ap = new System.EventHandler (HandleAreaPrepared);
au = new Gdk.AreaUpdatedHandler (HandleAreaUpdated);
ev = new System.EventHandler (HandleClosed);
}
示例5: InventoryBackup
public InventoryBackup(RadegastInstance instance)
{
InitializeComponent();
Disposed += new System.EventHandler(InventoryBackup_Disposed);
this.instance = instance;
inv = client.Inventory.Store;
}
示例6: MyButtonClass
// Метод-конструктор
public MyButtonClass()
{
mrButton = new Button();
mrButton.Text = 'Нажми меня';
mrButton.Click += new System.EventHandler(MyButtonClickEventHandler);
this.Controls.Add(mrButton);
}
示例7: XPanel
public XPanel()
{
InitializeComponent();
SizeChanged += new System.EventHandler(this.OnSizeChanged);
SetUpdateImgStyle();
}
示例8: MTScratchpadRTStylusForm
// MTScratchpadRTStylusForm constructor
public MTScratchpadRTStylusForm()
{
InitializeComponent();
// Setup event handlers
Load += new System.EventHandler(this.OnLoadHandler);
Paint += new PaintEventHandler(this.OnPaintHandler);
}
示例9: HelpMessageBox
public HelpMessageBox()
{
InitializeComponent();
btnCancel.Visible = false;
btnOk.Visible = false;
edtMessageText.ReadOnly = !_editMode;
Load += new System.EventHandler(HelpMessageBox_Load);
}
示例10: RegisterClick
public static void RegisterClick(System.EventHandler clicktodo)
{
TaskbarIcon.Click -= _clickEvent;
TaskbarIcon.DoubleClick -= _clickEvent;
_clickEvent = clicktodo;
TaskbarIcon.Click += _clickEvent;
TaskbarIcon.DoubleClick += _clickEvent;
}
示例11: RadioButtonList
public RadioButtonList()
{
LogMsg ("RadioButtonList *** Entering ***");
SizeChanged += new System.EventHandler (this.OnSizeChanged);
Load += new System.EventHandler (this.OnLoad);
InitializeComponent ();
optionsFont = new Font ("Microsoft Sans Serif", 6.75f);
LogMsg ("RadioButtonList Exiting");
}
示例12: MainForm
public MainForm()
{
InitializeComponent();if (transDefaultFormMainForm == null) transDefaultFormMainForm = this;
btnOpenOrClosePort.Click += new System.EventHandler( btnOpenOrClosePort_Click );
btnPort.Click += new System.EventHandler( btnPort_Click );
Load += new System.EventHandler(Form1_Load);
tmrLookForPortChanges.Tick += new System.EventHandler( tmrLookForPortChanges_Tick );
}
示例13: AttachReadNotify
/// <summary>
/// Attach a ReadNotify handler.
/// </summary>
public void AttachReadNotify(System.EventHandler ReadNotifyHandler)
{
// If we have a reader
if (myReader != null)
{
// Attach the read notification handler.
myReader.ReadNotify += ReadNotifyHandler;
myReadNotifyHandler = ReadNotifyHandler;
}
}
示例14: PortSettingsDialog
/// <summary>
/// Initialize port settings.
/// InitializeComponent is required by the Windows Form Designer.
/// </summary>
public PortSettingsDialog()
{
InitializeComponent();
InitializePortSettings();
btnOK.Click += new System.EventHandler( btnOK_Click );
Load += new System.EventHandler(PortSettingsDialog_Load);
btnCancel.Click += new System.EventHandler( btnCancel_Click );
}
示例15: UnityState
public UnityState(OverlayPlugin manager, XmlNode node)
: base(GetName(node, "creating unity state"), manager, node, false)
{
mUnity = Path.GetFullPath(GetString(node, null, "File"));
mManager = manager;
mMainWindow = GetManager(manager, node, "unity state");
mBounds = manager.GetBounds(node, "unity state");
ResizedHandler = new System.EventHandler(this.Resized);
}