public TabPageGridAlarmGroupControl(EXTabControl _parent, long id) : base(_parent, id) { InitializeComponent(); TabPageType = TABPAGETYPE.ALARM_GROUP; dataGridView1.Columns[0].ReadOnly = true; dataGridView1.Columns[6].ReadOnly = true; dataGridView1.Columns[6].Visible = false; dataGridView1.Columns[7].ReadOnly = true; dataGridView1.Columns[7].Visible = false; if (Common.TabPageGridAlarmGroupControl_RowColWidth > 0) { dataGridView1.Columns[0].Width = Common.TabPageGridAlarmGroupControl_RowColWidth; } if (Common.TabPageGridAlarmGroupControl_NameColWidth > 0) { dataGridView1.Columns[1].Width = Common.TabPageGridAlarmGroupControl_NameColWidth; } if (Common.TabPageGridAlarmGroupControl_TypeColWidth > 0) { dataGridView1.Columns[2].Width = Common.TabPageGridAlarmGroupControl_TypeColWidth; } if (Common.TabPageGridAlarmGroupControl_ArchiveColWidth > 0) { dataGridView1.Columns[3].Width = Common.TabPageGridAlarmGroupControl_ArchiveColWidth; } if (Common.TabPageGridAlarmGroupControl_RetriggerColWidth > 0) { dataGridView1.Columns[4].Width = Common.TabPageGridAlarmGroupControl_RetriggerColWidth; } if (Common.TabPageGridAlarmGroupControl_PrintColWidth > 0) { dataGridView1.Columns[5].Width = Common.TabPageGridAlarmGroupControl_PrintColWidth; } }
public TabVariableGridPageControl(EXTabControl _parent, long id) : base(_parent, id) { InitializeComponent(); TabPageType = TABPAGETYPE.VARIABLE; _dataTable = new DataTable(); _dataSet = new DataSet(); //initialize bindingsource bindingSource_main.DataSource = _dataSet; //initialize datagridview advancedDataGridView_main.DataSource = bindingSource_main; _dataTable = _dataSet.Tables.Add("Variables"); _dataTable.Columns.Add("Name", typeof(string)); _dataTable.Columns.Add("Description", typeof(string)); _dataTable.Columns.Add("POU", typeof(string)); _dataTable.Columns.Add("Type", typeof(string)); _dataTable.Columns.Add("InitialVal", typeof(string)); _dataTable.Columns.Add("GroupID", typeof(string)); bindingSource_main.DataMember = _dataTable.TableName; }
public TabDisplayPageControl(EXTabControl _parent, long id) : base(_parent, id) { InitializeComponent(); //_drawarea = new DrawArea(this); TabPageType = TABPAGETYPE.DISPLAY; drawarea.Size = new System.Drawing.Size(1280, 830); }
public TabSTPageControl(EXTabControl _parent, long id) : base(_parent, id) { InitializeComponent(); TabPageType = TABPAGETYPE.ST; //_drawarea = new DrawArea(this); tblpou = Global.EWS.m_tblSolution.GetPouFromID(ID); tblcontroller = Global.EWS.m_tblSolution.GetControllerobjectofPOUID(ID); }
//public TabPageControl() // : base() //{ // InitializeComponent(); // //_drawarea = new DrawArea(this); //} public TabPageControl(EXTabControl _parent, long id) : base() { exparent = _parent; InitializeComponent(); //TabPageType = TABPAGETYPE.BOARD; ID = id; //_drawarea = new DrawArea(this); }
//public TabGraphicPageControl() : base() //{ // InitializeComponent(); // //_drawarea = new DrawArea(this); // drawarea.Size = new System.Drawing.Size(1280, 830); // //UpdateToolstripNavigation(); //} public TabGraphicPageControl(EXTabControl _parent, long id) : base(_parent, id) { InitializeComponent(); //_drawarea = new DrawArea(this); drawarea.Size = new System.Drawing.Size(1280, 830); //UpdateToolstripNavigation(); }
//private long _DomainID; //public long DomainID //{ // get // { // return _DomainID; // } // set // { // _DomainID = value; // } //} public TabSFCPageControl(EXTabControl _parent, long id) : base(_parent, id) { InitializeComponent(); //_drawarea = new DrawArea(this); TabPageType = TABPAGETYPE.SFC; tblpou = Global.EWS.m_tblSolution.GetPouFromID(ID); tblcontroller = Global.EWS.m_tblSolution.GetControllerobjectofPOUID(ID); drawarea.Size = new System.Drawing.Size(1280, 830); drawarea.SnapX = 8; drawarea.SnapY = 8; drawarea.SnapEnable = true; UpdateToolstripNavigation(); }
public TabGridPageControl(EXTabControl _parent, long id) : base(_parent, id) { InitializeComponent(); _dataTable = new DataTable(); _dataSet = new DataSet(); //initialize bindingsource bindingSource_main.DataSource = _dataSet; //initialize datagridview advancedDataGridView_main.DataSource = bindingSource_main; SetTestData(); //advancedDataGridView_main.Columns["ID"].Visible = false; }
public TabTextPageControl(EXTabControl _parent, long id) : base(_parent, id) { InitializeComponent(); //_drawarea = new DrawArea(this); }