private static void SetRecorder() { //Recorder1 recorder = new Recorder1(); //recorder.ShowDialog(); //GraphRecorder using (Timer2 rec = new Timer2()) { rec.ShowDialog(); } }