Beispiel #1
0
 private void dataGridView1_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (data.listBars.Count > 0)
     {
         Bars          temp = this.data.listBars.OfType <Bars>().FirstOrDefault(x => x.NumberGrid == e.RowIndex);
         FormAllSignal form = new FormAllSignal();
         form.Text = temp.Name;
         form.Show();
         foreach (SignalData i in temp.listSignal)
         {
             form.dataGridView1.Rows.Add(temp.Name, i.SignalType, i.DateBsy, i.DateBpy1, i.DateBpy2, i.Level, i.Lyft, i.CancelSignal, i.TimeNow);
         }
     }
 }
Beispiel #2
0
 private void dataGridView1_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (data.listBars.Count > 0)
     {
         Bars temp = this.data.listBars.OfType <Bars>().FirstOrDefault(x => (x.Name + " " + x.TimeFrame) == (string)dataGridView1.Rows[e.RowIndex].Cells[0].Value);
         //  Bars temp = this.data.listBars.OfType<Bars>().FirstOrDefault(x => x.NumberGrid == e.RowIndex);
         FormAllSignal form = new FormAllSignal();
         form.Text = temp.Name;
         form.Show();
         foreach (SignalData i in temp.listSignal)
         {
             form.dataGridView1.Rows.Add(temp.Name, i.SignalType, i.DateBsy, i.DateBpy1, i.DateBpy2, i.Level, i.Lyft, i.CancelSignal, i.TimeNow);
             form.dataGridView1.Rows[form.dataGridView1.RowCount - 1].MinimumHeight = 35;
         }
     }
 }
Beispiel #3
0
 private void dataGridView1_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (data.listBars.Count > 0)
     {
         Bars temp = this.data.listBars.OfType <Bars>().FirstOrDefault(x => (x.Name + " " + x.TimeFrame) == (string)dataGridView1.Rows[e.RowIndex].Cells[0].Value);
         if (temp != null)
         {
             FormAllSignal form = new FormAllSignal(data);
             form.Text = temp.Name;
             form.Show();
             foreach (SignalData i in temp.listSignal)
             {
                 form.dataGridView1.Rows.Add(String.Format($"{temp.Name} {temp.TimeFrame}"), i.SignalType, String.Format($"{i.pointsBars[0]} - {i.DateBsy.Day}  {i.DateBsy.ToShortTimeString()}"), i.DateBpy1.ToShortTimeString(), i.DateBpy2.ToShortTimeString(), i.Level, i.Lyft, i.CancelSignal, i.TimeNow.ToShortTimeString());
                 form.dataGridView1.Rows[form.dataGridView1.RowCount - 1].MinimumHeight = 35;
             }
         }
     }
 }