Esempio n. 1
0
        private void Chart_DoubleClick(object sender, EventArgs e)
        {
            HistoryLines historyLines = new HistoryLines();

            historyLines.seriesCollection = ((Chart)sender).Series;
            historyLines.ShowDialog();
        }
Esempio n. 2
0
 private void Label_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         Label label = (Label)sender;
         m_frmHistoryLines.labelTag.TagID   = ((LabelTag)label.Tag).TagID;
         m_frmHistoryLines.labelTag.TagDesc = ((LabelTag)label.Tag).TagDesc;
         m_frmHistoryLines.ShowDialog();
     }
     catch { }
 }
Esempio n. 3
0
 private void dataGridView1_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         HistoryLines m_frmHistoryLines = new HistoryLines();
         m_frmHistoryLines.labelTag.TagID   = int.Parse(dataGridView1.CurrentRow.Cells["TagID"].Value.ToString());
         m_frmHistoryLines.labelTag.TagDesc = dataGridView1.CurrentRow.Cells["TagDesc"].Value.ToString();
         m_frmHistoryLines.ShowDialog();
     }
     catch (Exception ex) { WriteLog.WriteLogs(ex.ToString()); }
 }
Esempio n. 4
0
 private void Label_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         LabelTag labelTag = (LabelTag)((Label)sender).Tag;
         if (labelTag.TagID > 0)
         {
             HistoryLines m_frmHistoryLines = new HistoryLines();
             m_frmHistoryLines.labelTag.TagID   = labelTag.TagID;
             m_frmHistoryLines.labelTag.TagDesc = labelTag.TagDesc;
             m_frmHistoryLines.ShowDialog();
         }
     }
     catch (Exception ex) { WriteLog.WriteLogs(ex.ToString()); }
 }
Esempio n. 5
0
        private void btnHis_Click(object sender, EventArgs e)
        {
            SelectTagDate selectTagDate = new SelectTagDate();
            HistoryLines  historyLines  = new HistoryLines();

            selectTagDate.ShowDialog();
            if (selectTagDate.bIsClose == false)
            {
                if (selectTagDate.sExcelCells.Length > 0)
                {
                    historyLines.SetBeginTime(selectTagDate.BeginTime);
                    historyLines.SetEndTime(selectTagDate.EndTime);
                    historyLines.SetExcelCells(selectTagDate.sExcelCells);
                    historyLines.SetCheckedTags(selectTagDate.dtCheckedTags);
                }
                else
                {
                    historyLines.seriesCollection = (chart1).Series;
                }
                historyLines.ShowDialog();
            }
        }