Esempio n. 1
0
 private void dataGridView_MonstersNPCsMines_CellMouseEnter(object sender, DataGridViewCellEventArgs e)
 {
     if (Scrolling == false && e.ColumnIndex >= 0 && e.ColumnIndex < 2 && e.RowIndex > -1)
     {
         String text = "";
         try
         {
             int Id = Convert.ToInt32(this.dataGridView_MonstersNPCsMines.Rows[e.RowIndex].Cells[0].Value);
             if (Id > 0 && MainWindow.lEnableShowInfo == true)
             {
                 if (TaskEditor.LoadedElements == true)
                 {
                     text += Extensions.ColorClean(Extensions.GetMonsterNPCMineProps(Id));
                 }
             }
             this.dataGridView_MonstersNPCsMines.Rows[e.RowIndex].Cells[e.ColumnIndex].ToolTipText = text;
         }
         catch
         {
             this.dataGridView_MonstersNPCsMines.Rows[e.RowIndex].Cells[e.ColumnIndex].ToolTipText = text;
         }
     }
 }