public PlaylistMediaCollection(EngineWrapper engine, ListViewEx TrackDisplayList, Label TotalPlayLengthDisplay, PlayControl PlayControl) : base(engine, "Playlist Media", "", TrackDisplayList, false) { this.PlayControl = PlayControl; this.TotalPlayLengthDisplay = TotalPlayLengthDisplay; PlayControl.Playlist = this; UpdateTrackDisplay(); }
public TrackCollection(EngineWrapper engine, string Name, string Location, bool AutoLoadTracks = true) : this(engine, Name) { this.Location = Location; if (AutoLoadTracks && !String.IsNullOrEmpty(Location)) { ReloadTracks(); } }
public MediaCollection(EngineWrapper engine, string CollectionName, string CollectionLocation, ListView TrackDisplayList, bool AutoLoadTracks = true) { this.engine = engine; MediaList = new TrackCollection(engine, CollectionName, CollectionLocation, AutoLoadTracks); this.TrackDisplayList = TrackDisplayList; if (AutoLoadTracks) { UpdateTrackDisplay(); } }
public PlayControl(Form1 owner, EngineWrapper engine, PictureBox PlayButton, PictureBox StopButton, PictureBox SkipButton, PictureBox RecueButton, TrackBar SongTracker) { this.owner = owner; this.engine = engine; this.PlayButton = PlayButton; this.StopButton = StopButton; this.SkipButton = SkipButton; this.RecueButton = RecueButton; this.SongTracker = SongTracker; }
public ShowMediaCollection(EngineWrapper engine, ListView TrackDisplayList, ComboBox ShowDisplayList) { this.engine = engine; ShowNames = new List <string>(); ShowMedia = new List <TrackCollection>(); this.TrackDisplayList = TrackDisplayList; this.ShowDisplayList = ShowDisplayList; Location = Settings.ShowMediaPath; ReloadShowNames(); }
public Track(string Name, string Location, EngineWrapper engine) { this.Name = Name; this.Location = Location; SoundSource = engine.LoadFile(FullPath); PlayLength = SoundSource.PlayLength; PlayPosition = 0; TimeSpan t = TimeSpan.FromMilliseconds(PlayLength); string answer = string.Format("{0:D2}:{1:D2}:{2:D2}", t.Hours, t.Minutes, t.Seconds); Duration = answer; }
public Form1() { InitializeComponent(); #if !SWIG && NOT_NET4 && !NO_ENGINE this.Text += " - Engine: NET2.IrrKlang - .NET Version: " + Environment.Version.ToString(); #elif !SWIG && !NOT_NET4 && !NO_ENGINE this.Text += " - Engine: NET4.IrrKlang - .NET Version: " + Environment.Version.ToString(); #elif NO_ENGINE this.Text += " - Engine: NO ENGINE - .NET Version: " + Environment.Version.ToString(); #elif SWIG && NOT_NET4 this.Text += " - Engine: SWIG / NET2.IrrKlang - .NET Version: " + Environment.Version.ToString(); #elif SWIG && !NOT_NET4 this.Text += " - Engine: SWIG / NET4.IrrKlang - .NET Version: " + Environment.Version.ToString(); #endif try { engine = new EngineWrapper(); //Console.WriteLine(example.My_variable); //Console.WriteLine(example.fact(5)); //Console.WriteLine(example.get_time()); } catch (Exception e) { Exception inner = e; MessageBox.Show(inner.ToString()); while (inner.InnerException != null) { inner = inner.InnerException; MessageBox.Show(inner.ToString()); } throw inner; //Exception ex = SwigEnginePINVOKE.SWIGPendingException.Retrieve(); //throw ex; } //engine.LoadPlugins(Settings.PluginsPath); ShowMedia = new ShowMediaCollection(engine, lvShowMedia, cmbShowList); StationMedia = new StationMediaCollection(engine, lvStationMedia); ScheduledMedia = new ScheduledMediaCollection(engine, lvScheduledMedia); PlayerControl = new PlayControl(this, engine, picPlayBtn, picStopBtn, picSkipBtn, picRecueBtn, trackBar1); PlaylistMedia = new PlaylistMediaCollection(engine, lvPlaylist, lblTotalPlayLength, PlayerControl); }
public ScheduledMediaCollection(EngineWrapper engine, ListView TrackDisplayList) : base(engine, "Scheduled Media", Settings.ScheduledMediaPath, TrackDisplayList, false) { Schedule = new List <ScheduledMediaInfo>(); FindScheduledTracks(); }
public StationMediaCollection(EngineWrapper engine, ListView TrackDisplayList) : base(engine, "Station Media", Settings.StationMediaPath, TrackDisplayList) { UpdateTrackDisplay(); }
public TrackCollection(EngineWrapper engine, string Name) { this.engine = engine; this.Name = Name; Tracks = new LinkedListExt <Track>(); }