This commit is contained in:
stax76
2017-08-31 09:00:07 +02:00
parent 059b20a2cd
commit d84127f178
2 changed files with 7 additions and 7 deletions

View File

@@ -47,8 +47,8 @@ namespace mpvnet
mpv.Init();
mpv.ObserveBoolProp("fullscreen", MpvChangeFullscreen);
mpv.AfterShutdown += Mpv_AfterShutdown;
mpv.FileLoaded += Mpv_FileLoaded;
mpv.VideoSizeChanged += Mpv_VideoSizeChanged;
mpv.PlaybackRestart += Mpv_PlaybackRestart;
CM = new ContextMenuEx();
ContextMenu = CM;
@@ -61,6 +61,11 @@ namespace mpvnet
}
}
private void Mpv_PlaybackRestart()
{
BeginInvoke(new Action(() => Text = mpv.GetStringProp("filename") + " - mpv.net"));
}
private void CM_Popup(object sender, EventArgs e)
{
CursorHelp.Show();
@@ -87,11 +92,6 @@ namespace mpvnet
BeginInvoke(new Action(() => SetFormPosSize()));
}
private void Mpv_FileLoaded()
{
BeginInvoke(new Action(() => Text = mpv.GetStringProp("filename") + " - mpv.net"));
}
private void Mpv_AfterShutdown() => Invoke(new Action(() => Close()));
public bool IsFullscreen