Esempio n. 1
0
 public bool Save(Uri.Locator resource)
 {
     return new Xml.Dom.Document(this.root).Save(resource) && this.ResetPage();
 }
Esempio n. 2
0
		protected virtual void ParseArguments(Uri.Locator name)
		{
			this.Rate = name.Query["rate"];
		}
Esempio n. 3
0
		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;
		}
Esempio n. 4
0
		protected abstract DirectShow.Binding.IGraph Open(Uri.Locator name);