示例#1
0
        private void dataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (dataGrid.SelectedItems.Count != 1)
            {
                return;
            }

            Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait;

            DataRowView rowView = (DataRowView)dataGrid.SelectedItem;
            int         id      = (int)rowView[0];

            ShowOutput w = new ShowOutput(id, sql);

            //w.Owner = this;

            w.Show();
            Mouse.OverrideCursor = null;
        }
示例#2
0
        private void dataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (dataGrid.SelectedItems.Count != 1)
                return;

            DataRowView rowView = (DataRowView)dataGrid.SelectedItem;
            int id13 = (int)rowView[14];
            int id24 = (int)rowView[15];

            ShowOutput w = null;

            int inx = dataGrid.CurrentCell.Column.DisplayIndex;
            if (inx == 1 || inx == 3)
                w = new ShowOutput(id13, sql);
            else
                w = new ShowOutput(id24, sql);

            w.Show();
            Mouse.OverrideCursor = null;
        }
示例#3
0
        private void dataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (dataGrid.SelectedItems.Count != 1)
                return;

            Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait;

            DataRowView rowView = (DataRowView)dataGrid.SelectedItem;
            int id = (int)rowView[0];

            ShowOutput w = new ShowOutput(id, sql);
            //w.Owner = this;

            w.Show();
            Mouse.OverrideCursor = null;
        }