Example #1
0
        private void monitorStatsOverviewDataGridView_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            //Todo: Implement this propertyGrid correctly
            Monitor detailedMonitor = monitorManager.MonitorCollection.GetMonitor(monitorStatsOverviewDataGridView.SelectedRows[0].Cells["idDataGridViewTextBoxColumn"].Value.ToString());

            propertyGrid1.SelectedObject = detailedMonitor;
        }
Example #2
0
        private void monitorStatsOverviewDataGridView_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            Monitor detailedMonitor = monitorManager.MonitorCollection.GetMonitor(monitorStatsOverviewDataGridView.SelectedRows[0].Cells["idDataGridViewTextBoxColumn"].Value.ToString());

            if (detailedMonitor != null)
            {
                AppendToLog("Viewing details for [" + detailedMonitor.Url + "]");
                new MonitorDetails(detailedMonitor).ShowDialog(this);
            }
            else
            {
                AppendToLog("[Monitor Id = " + monitorStatsOverviewDataGridView.SelectedRows[0].Cells[0].Value.ToString() + "] Not found");
            }
        }