Solar and stellar flares: occurrence frequency, properties of active regions and efficiency of stellar dynamoтезисы доклада