C# には、1 分ごとに火と忘れのようなイベントがありますか?
このメソッドを毎分起動します。
    public void Earning()
    {
        var data= new Bussinesslayer().Getdata();
    }
C# には、1 分ごとに火と忘れのようなイベントがありますか?
このメソッドを毎分起動します。
    public void Earning()
    {
        var data= new Bussinesslayer().Getdata();
    }
Timer クラスを使用できます:
宣言:      
System.Timers.Timer _tmr;
初期化:
_tmr = new System.Timers.Timer();
セットアップ:
//Assigning the method that will be called
_tmr.Elapsed += new System.Timers.ElapsedEventHandler(tmr_Elapsed);
//Setting the interval (in milliseconds):
_tmr.Interval = 1000;
タイマーの開始:
_tmr.Start();
以下の例と同じ署名を持つ関数:
void tmr_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
  this.Earning();
  //please note that here you are in another thread.
}
タイマーを停止したい場合は、次を使用できます。
_tmr.Stop();