private bool onframetick(Widget widget, Gdk.FrameClock frame_clock) { if (this.player != null) { if (!this.player.CheckDeviceEnable()) { this.player.Dispose(); this.player = null; Bass.Free(); Bass.Init(); this._labeltitle.Text = "Device Disconnected"; this._labelpath.Text = ""; this._labellooptime.Text = ""; this._labelnowtime.Text = ""; return(true); } if (this._labelseektimemenu.Active) { this._labelnowtime.Text = this.player.TimePosition.ToString(@"hh\:mm\:ss\.ff") + " / " + this.player.TotalTime.ToString(@"hh\:mm\:ss\.ff"); } else if (this._labelelpsedtimemenu.Active) { this._labelnowtime.Text = "+" + (this.player.LoopCount * (this.player.LoopEndTime - this.player.LoopStartTime) + this.player.TimePosition).ToString(@"hh\:mm\:ss\.ff") + " / " + this.player.TotalTime.ToString(@"hh\:mm\:ss\.ff"); } else if (this._labelremainingtimemenu.Active) { this._labelnowtime.Text = "-" + (this.player.TotalTime - this.player.TimePosition).ToString(@"hh\:mm\:ss\.ff") + " / " + this.player.TotalTime.ToString(@"hh\:mm\:ss\.ff"); } } Endsita(); _seekbararea.QueueDraw(); return(true); }
bool InvokeNative(Gtk.Widget widget, Gdk.FrameClock frame_clock) { bool __result = native_cb(widget == null ? IntPtr.Zero : widget.Handle, frame_clock == null ? IntPtr.Zero : frame_clock.Handle, __data); return(__result); }