Calling Method from Separate Class to MainWindow.cs : <p>I guess doing this in VB is much easier, but how do I call a method that is another class? This is what I have inside of my Sql.cs:</p>

<pre><code>public static MainWindow MainWindow;
public void FlLoadMembers()
    {
        SetConnection();
        SqlCon.Open();
        SqlCmd = SqlCon.CreateCommand();
        const string commandText = "select firstname, lastname from members";
        SqlAdapter = new SQLiteDataAdapter(commandText, SqlCon);
        DsMembers.Reset();
        SqlAdapter.Fill(DsMembers);
        DtMembers = DsMembers.Tables[0];
        MainWindow.lstPanelMembers.Items.Add(DtMembers);
        SqlCon.Close();
    }
</code></pre>

<p>Trying to call this in MainWindow.cs</p>

<pre><code>private MainWindow()
    {
        InitializeComponent();
        GetVersion();
        FlLoadMembers(); //This doesn't work apparently in C#
    }
</code></pre>
