private bool CommandCameraCapture(string name, string path) { CommandCameraCapture commandCameraCapture = CommandFactory.CreateCommand <CommandCameraCapture>("Camera Capture"); commandCameraCapture.PictureName = name; commandCameraCapture.PicturePath = path; return(commandCameraCapture.Execute()); }
private void buttonItemSnapShot_Click(object sender, EventArgs e) { CommandCameraCapture command = CommandFactory.CreateCommand <CommandCameraCapture>("Camera Capture"); CommandFactory.CommandQueue.Push(command); }