title: expose my class methods
body: <p>I am making a simple app in wpf c#. I am new to object programming, been on a few course but trying to do my best. I expect this is very newbie mistake, so I apologise in advance!</p>
  
  <p>I will explain in words then show my code.</p>
  
  <p>I needed to work out the number of days from TODAY to the  wage start day (we always start the wages on the same day e.g. Saturday), I will then use the number of days in a calculation to work out the wage start date. </p>
  
  <p>To do this I have tried to write a class with a method. My expectation is that I should be able to call this method from the MainWindow.xaml.cs MainWindow. I was expecting to call the method with the format <strong>Class.Method</strong>. HOWEVER, in the MainWindow class  when I type in my class name intellisense does not bring up my method as an option, I was expecting it to.</p>
  
  <p>I expect I have not defined the class  or the method properly, anyway here is the code:</p>
  
  <p>The calling event handler </p>
  
  <pre><code>     private void cBChSite_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
      {
          string Location = cBChSite.SelectedItem.ToString();
          //Below is the call the the method DateCalcs.WageStart(Location); Which intellisense does not show
          int DaysAdjStart=DateCalcs.
      }
  </code></pre>
  
  <p>The class DateCalcs</p>
  
  <pre><code>    using System;
      using System.Collections.Generic;
      using System.Linq;
      using System.Text;
  
      namespace Test_Read_CSV
      {
      public class  DateCalcs
      {
      DateCalcs()
      {
          //Constructor
  
      }
  
      public int WageStart(string Location)
      {
          //Returns the days difference from current to expect wage start 
          int DaysToStart;
          string CHCLocation = Location;
          DayOfWeek WageStartDay = WageWeekStart(Location);
          DayOfWeek Today = DateTime.Today.DayOfWeek;
  
          DaysToStart = WageStartDay - Today;
  
          // just to display result
  
         System.Windows.MessageBox.Show(DaysToStart.ToString(), "Information");
         return DaysToStart;
  
  
      }
  
      private DayOfWeek WageWeekStart(string Location)
      { 
          //Begin Switch
          switch (Location)
          {
              case "Leicester":
                  {
                      return DayOfWeek.Wednesday;
                  }
              default:
                  return DayOfWeek.Saturday;
          }
      }
  }
  }
  </code></pre>