Exemplo n.º 1
0
        private void lstvLog_DoubleClick(object sender, EventArgs e)
        {
            if (lstvLog.SelectedItems.Count < 1)
            {
                return;
            }
            LogItemInfo frm = new LogItemInfo();

            frm.ShowInfo(lstvLog.SelectedItems[0]);
            frm.ShowDialog(this);
        }
Exemplo n.º 2
0
 private void btnShowLog_Click(object sender, EventArgs e)
 {
     if (lstvLog.SelectedItems.Count > 0)
     {
         LogItemInfo frm = new LogItemInfo();
         frm.ShowInfo(lstvLog.SelectedItems[0]);
         frm.ShowDialog(this);
     }
     else
     {
         MessageBox.Show("Please choose a log item!", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }