public static void Cam() { using (var c = new Camera (Camera.Unit.Front, Camera.Mode.RW)) { c.TakePhoto (); } Dialog.Alert ("OMFG", "I got camera!1!1", new Button ("Ok!")); }