public Grapher(LogFileManager Filemanager) { filemanager = Filemanager; DetailForm = new MomentDetail(filemanager); DetailForm.Show(); DetailForm.BringToFront(); InitializeComponent(); Chart1.MouseMove += new MouseEventHandler(Chart1_MouseMove); Chart1.MouseClick += new MouseEventHandler(Chart1_MouseClick); rangecontrol.ValueChanged += new EventHandler(rangecontrol_ValueChanged); textBox1.TextChanged += new EventHandler(text_Changed); textBox2.TextChanged += new EventHandler(text_Changed); rangecontrol.Properties.Maximum = 1000; rangecontrol.Properties.Minimum = 0; rangecontrol.Value = new DevExpress.XtraEditors.Repository.TrackBarRange(0, 1000); }