title: Countdown timer system.timers problem xamarin forms
body: <p>Now i updated the code and im not getting errors, problem is its not counting</p>
  <pre><code>   private System.Timers.Timer _timer;
      private int _countSeconds;
      public MainPage()
      {
          InitializeComponent();
          _timer = new System.Timers.Timer();
          _timer.Interval = 1000;
          _timer.Elapsed += _timer_Elapsed;
          _countSeconds = 5;
          _timer.Enabled = true;
      }
                            
      private void _timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
      {
          _countSeconds--;
          CountLabel.Text = _countSeconds.ToString();
  
          if (_countSeconds == 0)
          {
              _timer.Stop();
          }
          throw new NotImplementedException();
          
         
      }
                       
      }
  }
  </code></pre>
  <p>I think it has something to do with the OnTimedEvent method i need to specify arguments when calling it. I just dont know what to pass in but i would like it to be called from a button but no clue what system timers elapsedeventargs e is. Looked on youtube, reddit, stackoverflow and microsoft. No real explanation or help anywhere.</p>
  <p>Heres my MainPage.xaml</p>
  <pre><code>&lt;Label Text=&quot;Count&quot; x:Name=&quot;CountLabel&quot;  HorizontalTextAlignment=&quot;Center&quot; VerticalTextAlignment=&quot;Center&quot; FontSize=&quot;Large&quot;&gt;&lt;/Label&gt;
  </code></pre>