Ejemplo n.º 1
0
        private void OnLogClick(object sender, RoutedEventArgs e)
        {
            Guid   RotatioID  = new Guid((sender as TextBlock).Uid);
            string LogContent = LogInfoController.GetRotationLog(RotatioID);

            LogContentView logView = new LogContentView();

            logView.SetLogContent(LogContent);
            logView.ShowDialog();
        }
Ejemplo n.º 2
0
        private void dataGrid_view_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            DataGridCellInfo Cell = ((System.Windows.Controls.DataGrid)(e.Source)).CurrentCell;

            if (Cell.Column.Header.ToString() == "内容")
            {
                DataRow row = dataTable.Rows[dataGrid_view.SelectedIndex];
                if (row != null && row["LogContent"] != null)
                {
                    LogContentView view = new LogContentView();
                    view.SetLogContent(row["LogContent"].ToString());
                    view.ShowDialog();
                }
            }
            else
            {
                return;
            }
        }