当前位置: 首页>>代码示例>>C#>>正文


C# System.EventHandler类代码示例

本文整理汇总了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);
		}
开发者ID:hitswa,项目名称:winforms,代码行数:26,代码来源:swf-datagrid-realsample.cs

示例2: HeadlinesWindow

        internal HeadlinesWindow()
            : base(_keyBase, string.Empty)
        {
            InitializeComponent();

            Closed += new System.EventHandler(HeadlinesWindow_Closed);
        }
开发者ID:erpframework,项目名称:xeus-messenger2,代码行数:7,代码来源:HeadlinesWindow.xaml.cs

示例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();
        }
开发者ID:ytyaru,项目名称:ColorEditor20160610,代码行数:29,代码来源:ColorEditorForm.cs

示例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);
		}
开发者ID:guadalinex-archive,项目名称:guadalinex-v6,代码行数:7,代码来源:AsyncPixbufLoader.cs

示例5: InventoryBackup

 public InventoryBackup(RadegastInstance instance)
 {
     InitializeComponent();
     Disposed += new System.EventHandler(InventoryBackup_Disposed);
     this.instance = instance;
     inv = client.Inventory.Store;
 }
开发者ID:RevolutionSmythe,项目名称:radegast,代码行数:7,代码来源:InventoryBackup.cs

示例6: MyButtonClass

 // Метод-конструктор
 public MyButtonClass()
 {
     mrButton = new Button();
     mrButton.Text = 'Нажми меня';
     mrButton.Click += new System.EventHandler(MyButtonClickEventHandler);
     this.Controls.Add(mrButton);
 }
开发者ID:romKa919293,项目名称:Calc1,代码行数:8,代码来源:Program.cs

示例7: XPanel

        public XPanel()
        {
            InitializeComponent();

            SizeChanged += new System.EventHandler(this.OnSizeChanged);

            SetUpdateImgStyle();
        }
开发者ID:cheng521yun,项目名称:https---github.com-frontflag-FTMZ_CY,代码行数:8,代码来源:XPanel.cs

示例8: MTScratchpadRTStylusForm

        // MTScratchpadRTStylusForm constructor
        public MTScratchpadRTStylusForm()
        {
            InitializeComponent();

            // Setup event handlers
            Load += new System.EventHandler(this.OnLoadHandler);
            Paint += new PaintEventHandler(this.OnPaintHandler);
        }
开发者ID:dgrapp1,项目名称:WindowsSDK7-Samples,代码行数:9,代码来源:MTScratchpadRTStylus.cs

示例9: HelpMessageBox

 public HelpMessageBox()
 {
     InitializeComponent();
     btnCancel.Visible = false;
     btnOk.Visible = false;
     edtMessageText.ReadOnly = !_editMode;
     Load += new System.EventHandler(HelpMessageBox_Load);
 }
开发者ID:UtrsSoftware,项目名称:ATMLWorkBench,代码行数:8,代码来源:HelpMessageBox.cs

示例10: RegisterClick

 public static void RegisterClick(System.EventHandler clicktodo)
 {
     TaskbarIcon.Click -= _clickEvent;
     TaskbarIcon.DoubleClick -= _clickEvent;
     _clickEvent = clicktodo;
     TaskbarIcon.Click += _clickEvent;
     TaskbarIcon.DoubleClick += _clickEvent;
 }
开发者ID:NitroP,项目名称:OSUplayer,代码行数:8,代码来源:NotifySystem.cs

示例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");
 }
开发者ID:KurtKramer,项目名称:KSquareLibraries,代码行数:9,代码来源:RadioButtonList.cs

示例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 );
        }
开发者ID:larrychong,项目名称:DimSumProject,代码行数:9,代码来源:MainForm.cs

示例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;
     }
 }
开发者ID:nickmeuws,项目名称:TechnicalStockScan,代码行数:13,代码来源:API.cs

示例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 );
        }
开发者ID:Onairb,项目名称:DimSumProject,代码行数:14,代码来源:PortSettingsDialog.cs

示例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);
        }
开发者ID:JohnMcCaffery,项目名称:ChimeraClean,代码行数:10,代码来源:UnityState.cs


注:本文中的System.EventHandler类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。