Implement SampleDialog for new method of selecting a sample