private void CommandBinding_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            feedback.Content = "Pre loading data..."; //need to move to a loction that will update window before action starts
            Mouse.OverrideCursor = Cursors.Wait;

            if (wPosts != null)
            {
                wPosts = null;
            }

            //todo: replace with a switch, but can't native switch() on an ICommand...
            if (e.Command == CommandSQLPostsR1)
            {
                selectedRadioButton = SOXMLDataType.SQLPostsR1;
                wPosts = GetPosts(0, 30);
            }
            else if (e.Command == CommandSQLPostsR2)
            {
                selectedRadioButton = SOXMLDataType.SQLPostsR2;
                wPosts = GetPosts(0, 120);
            }
            else if (e.Command == CommandSQLPostsR3)
            {
                selectedRadioButton = SOXMLDataType.SQLPostsR3;
                wPosts = GetPosts(0, 250);
            }
            Mouse.OverrideCursor = null;
        }
 private void setup()
 {
     db = new StackOverflowDataDumpDataContext();
     sw = new Stopwatch();
     selectedRadioButton = SOXMLDataType.SQLPostsR1;
     this.useCores.Maximum = Environment.ProcessorCount;
     this.useCores.Minimum = 1;
     seqMS = 0;
     parMS = 0;
 }