public Miner(IMiningCtrl minerCtrl) { ctrl = minerCtrl; var minerName = RigEx.Read(RigEx.Lastminer); RigEx.WriteLineColors($"Last miner is: {minerName}".AddTimeStamp(), ConsoleColor.DarkCyan); ChangeAndRunMinerAction(minerName); ctrl.ButtonChangeAndRunMinerAction += ChangeAndRunMinerAction; ctrl.MinerActivityAction += OnMinerActivityAction; }