private void Row_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { TimeSpan t = DateTime.Now.TimeOfDay; DataGridRow dgr = sender as DataGridRow; if (dgr.Tag != null) { TimeSpan oldT = (TimeSpan)dgr.Tag; if ((t - oldT) < TimeSpan.FromMilliseconds(300)) { FlowForm ff = this.Grid1.SelectedItem as FlowForm; if (ff == null) { return; } Frm frm = new Frm(); frm.BindFrm(ff.No); frm.Show(); } } dgr.Tag = t; }