Example #1
0
        private void tabfrmSetupECID_Load(object sender, EventArgs e)
        {
            try
            {
                if (pInfo != null)
                {
                    pECIDBindingSource.DataSource = pInfo.Table("ECID");
                    this.dataGridView1.DataSource = pECIDBindingSource;

                    foreach (DataGridViewColumn column in dataGridView1.Columns)
                    {
                        column.SortMode = DataGridViewColumnSortMode.NotSortable;
                    }

                    //dataGridView1.Columns[4].Visible = false;
                    //dataGridView1.Columns[6].Visible = false;

                }
            }
            catch (Exception ex)
            {
                if (pInfo != null)
                {
                    pInfo.subLog_Set(clsInfo.LogType.PLC, ex.ToString());
                }
            }
        }
Example #2
0
        private void tabfrmSetupAlarm_Load(object sender, EventArgs e)
        {
            try
            {
                if (pInfo != null)
                {
                    pAlarmListSource.DataSource   = pInfo.Table("ALARM");
                    this.dataGridView1.DataSource = pAlarmListSource;

                    foreach (DataGridViewColumn column in dataGridView1.Columns)
                    {
                        column.SortMode = DataGridViewColumnSortMode.NotSortable;
                    }
                }
            }
            catch (Exception ex)
            {
                if (pInfo != null)
                {
                    pInfo.subLog_Set(clsInfo.LogType.PLC, ex.ToString());
                }
            }
        }