You may not know that the fire is electrical. That happened to a friend of mine. He thought he had an electrical fire when the cockpit filled with smoke. He admirably got the aircraft on the ground very quickly indeed without time to get a mayday in. It turned out to be a fire in the engine bay. No burns and a repairable aircraft was the result of the prompt action.