public bool Save(Uri.Locator resource) { return new Xml.Dom.Document(this.root).Save(resource) && this.ResetPage(); }
protected virtual void ParseArguments(Uri.Locator name) { this.Rate = name.Query["rate"]; }
bool Media.Player.IStream.Open(Uri.Locator name) { this.ParseArguments(name); bool result = (this.Graph = this.Open(name)).NotNull(); if (result) { if (this.Debug) this.Graph.Save(Uri.Locator.FromPlatformPath(System.Environment.SpecialFolder.MyDocuments, "graph.grf")); this.Graph.Send = (DateTime position, TimeSpan lifeTime, Bitmap.Image frame) => { if (this.Graph.NotNull()) { this.LastPosition = position; this.sendFrame(0, position, lifeTime, frame, null); } }; } return result; }
protected abstract DirectShow.Binding.IGraph Open(Uri.Locator name);