Example #1
0
 public static SignalTowerPreviewForm GetSingleton()
 {
     if (singleton == null)
     {
         singleton = new SignalTowerPreviewForm();
     }
     return(singleton);
 }
 private void dataGridView_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (e.ColumnIndex == 8)
     {
         if (SignalTowerPreviewForm.GetSingleton().Visible == false)
         {
             SignalTowerPreviewForm.GetSingleton().Show(this);
         }
         else
         {
             SignalTowerPreviewForm.GetSingleton().Activate();
         }
         SignalTowerPreviewForm.GetSingleton().SetSignal(signalTower[e.RowIndex]);
     }
 }
Example #3
0
 private void SignalTowerPreviewForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     singleton = null;
 }