本文整理汇总了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 = "";
}
示例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;
}
示例3: HandleTextViewClosed
private void HandleTextViewClosed(object sender, EventArgs e)
{
ITextView view = sender as ITextView;
if (view != null)
{
_openedViews.Remove(view);
view.Closed -= HandleTextViewClosed;
}
}
示例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;
}
示例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);
}
示例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);
}
示例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();
}
}
示例8: play
public virtual void play()
{
System.EventArgs playEvent = new System.EventArgs();
this.parent.RaiseOnplayEvent(this.parent, playEvent);
}
示例9: MediaPlayerStopped
public virtual void MediaPlayerStopped()
{
System.EventArgs mediaplayerstoppedEvent = new System.EventArgs();
this.parent.RaiseOnMediaPlayerStopped(this.parent, mediaplayerstoppedEvent);
}
示例10: MediaPlayerNothingSpecial
public virtual void MediaPlayerNothingSpecial()
{
System.EventArgs mediaplayernothingspecialEvent = new System.EventArgs();
this.parent.RaiseOnMediaPlayerNothingSpecial(this.parent, mediaplayernothingspecialEvent);
}
示例11: MediaPlayerForward
public virtual void MediaPlayerForward()
{
System.EventArgs mediaplayerforwardEvent = new System.EventArgs();
this.parent.RaiseOnMediaPlayerForward(this.parent, mediaplayerforwardEvent);
}
示例12: MediaPlayerEncounteredError
public virtual void MediaPlayerEncounteredError()
{
System.EventArgs mediaplayerencounterederrorEvent = new System.EventArgs();
this.parent.RaiseOnMediaPlayerEncounteredError(this.parent, mediaplayerencounterederrorEvent);
}
示例13: WindowClientSizeChangedHandler
private void WindowClientSizeChangedHandler(object sender, EventArgs e)
{
this.UpdateSize();
}
示例14: Error
public virtual void Error()
{
System.EventArgs errorEvent = new System.EventArgs();
this.parent.RaiseOnErrorEvent(this.parent, errorEvent);
}
示例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);
}
}
}