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


C# System.EventArgs类代码示例

本文整理汇总了C#中System.EventArgs的典型用法代码示例。如果您正苦于以下问题:C# System.EventArgs类的具体用法?C# System.EventArgs怎么用?C# System.EventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


System.EventArgs类属于命名空间,在下文中一共展示了System.EventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: cmdSend_Click

        private void cmdSend_Click(object sender, EventArgs e)
        {
            var msg = new Message {Type = MessageType.chat, To = _jid, Body = rtfSend.Text};

            _xmppClient.Send(msg);
            OutgoingMessage(msg);
            rtfSend.Text = "";
        }
开发者ID:uri247,项目名称:lib,代码行数:8,代码来源:FrmChat.cs

示例2: Quit

 /** `Quit` : **`Parse`**
  *
  * Prompts user through `Terminal` to quit the game.
  **/
 public static bool Quit(
                 adv::Person sender,
                 EventArgs e,
                 Command c,
                 string input) {
     Terminal.Alert(Pathways.messages["quit"]);
     return true;
 }
开发者ID:evan-erdos,项目名称:PathwaysEngine,代码行数:12,代码来源:Handler.cs

示例3: HandleTextViewClosed

 private void HandleTextViewClosed(object sender, EventArgs e)
 {
     ITextView view = sender as ITextView;
     if (view != null)
     {
         _openedViews.Remove(view);
         view.Closed -= HandleTextViewClosed;
     }
 }
开发者ID:sebandraos,项目名称:LangSvcV2,代码行数:9,代码来源:OpenedViewTrackerService.cs

示例4: Load

 /** `Load` : **`Parse`**
  *
  * Loads a game from a `*.yml` file. Currently broken.
  **/
 public static bool Load(
                 adv::Person sender,
                 EventArgs e,
                 Command c,
                 string input) {
     Terminal.Clear();
     Terminal.LogImmediate(
         "I/O Disabled, restarting level.");
     SceneManager.LoadScene(0);
     return true;
 }
开发者ID:evan-erdos,项目名称:PathwaysEngine,代码行数:15,代码来源:Handler.cs

示例5: cmdChangeSubject_Click

        /// <summary>
        /// Changing the subject in a chatroom in MUC rooms this could return an error when you are a normal user and not allowed
        /// to change the subject.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cmdChangeSubject_Click(object sender, EventArgs e)
        {
            var msg = new Matrix.Xmpp.Client.Message
                          {
                              Type = MessageType.groupchat,
                              To = _roomJid,
                              Subject = txtSubject.Text
                          };

            _xmppClient.Send(msg);
        }
开发者ID:uri247,项目名称:lib,代码行数:17,代码来源:FrmGroupChat.cs

示例6: WndProc

 protected override void WndProc(ref System.Windows.Forms.Message m)
 {
     const int WM_HOTKEY = 0x0312;
     switch(m.Msg)
     {
         case WM_HOTKEY:
             System.EventArgs e;
             e = new System.EventArgs();
             if(HotKeyPress!=null)
                 HotKeyPress(this, e);
             OnHotKeyPress(this, e);
             break;
     }
     base.WndProc(ref m);
 }
开发者ID:atroxaper,项目名称:pushtotalk,代码行数:15,代码来源:hotkeyform.cs

示例7: cmdSend_Click

        private void cmdSend_Click(object sender, EventArgs e)
        {
            // Make sure that the users send no empty messages
            if (rtfSend.Text.Length > 0)
            {
                var msg = new Matrix.Xmpp.Client.Message
                              {
                                  Type = MessageType.groupchat,
                                  To = _roomJid,
                                  Body = rtfSend.Text
                              };

                _xmppClient.Send(msg);

                rtfSend.Clear();
            }
        }
开发者ID:uri247,项目名称:lib,代码行数:17,代码来源:FrmGroupChat.cs

示例8: play

 public virtual void play()
 {
     System.EventArgs playEvent = new System.EventArgs();
     this.parent.RaiseOnplayEvent(this.parent, playEvent);
 }
开发者ID:bartek94ka,项目名称:MP3KA,代码行数:5,代码来源:AxInterop.AXVLC.cs

示例9: MediaPlayerStopped

 public virtual void MediaPlayerStopped()
 {
     System.EventArgs mediaplayerstoppedEvent = new System.EventArgs();
     this.parent.RaiseOnMediaPlayerStopped(this.parent, mediaplayerstoppedEvent);
 }
开发者ID:bartek94ka,项目名称:MP3KA,代码行数:5,代码来源:AxInterop.AXVLC.cs

示例10: MediaPlayerNothingSpecial

 public virtual void MediaPlayerNothingSpecial()
 {
     System.EventArgs mediaplayernothingspecialEvent = new System.EventArgs();
     this.parent.RaiseOnMediaPlayerNothingSpecial(this.parent, mediaplayernothingspecialEvent);
 }
开发者ID:bartek94ka,项目名称:MP3KA,代码行数:5,代码来源:AxInterop.AXVLC.cs

示例11: MediaPlayerForward

 public virtual void MediaPlayerForward()
 {
     System.EventArgs mediaplayerforwardEvent = new System.EventArgs();
     this.parent.RaiseOnMediaPlayerForward(this.parent, mediaplayerforwardEvent);
 }
开发者ID:bartek94ka,项目名称:MP3KA,代码行数:5,代码来源:AxInterop.AXVLC.cs

示例12: MediaPlayerEncounteredError

 public virtual void MediaPlayerEncounteredError()
 {
     System.EventArgs mediaplayerencounterederrorEvent = new System.EventArgs();
     this.parent.RaiseOnMediaPlayerEncounteredError(this.parent, mediaplayerencounterederrorEvent);
 }
开发者ID:bartek94ka,项目名称:MP3KA,代码行数:5,代码来源:AxInterop.AXVLC.cs

示例13: WindowClientSizeChangedHandler

		private void WindowClientSizeChangedHandler(object sender, EventArgs e)
		{
			this.UpdateSize();
		}
开发者ID:aienabled,项目名称:NoesisGUI.MonoGameWrapper,代码行数:4,代码来源:MonoGameNoesisGUIWrapper.cs

示例14: Error

 public virtual void Error()
 {
     System.EventArgs errorEvent = new System.EventArgs();
     this.parent.RaiseOnErrorEvent(this.parent, errorEvent);
 }
开发者ID:kimykunjun,项目名称:test,代码行数:5,代码来源:AxInterop.WMPLib.cs

示例15: handle_mouse

        private void handle_mouse(int X)
        {
            int new_point = X - this.slider_rect.Left;
            float scale = slider_rect.Width/(this.Max - this.Min);

            float new_value = new_point/scale;
            new_value = System.Math.Max(this.Min, new_value);
            new_value = System.Math.Min(new_value, this.Max);

            if (this.Value != new_value)
            {
                this.Value = new_value;
                if (this.ValueChanged != null)
                {
                    var ev_args = new System.EventArgs();
                    this.ValueChanged(this, ev_args);
                }
            }
        }
开发者ID:firestream99,项目名称:VisioAutomation,代码行数:19,代码来源:Slider.cs


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