public AlarmDialog(ScreenBase screen, int firedCnt, xBaseControl c) { InitializeComponent(); panel_Alarm.Controls.Add(c.getControl()); panel_Alarm.AutoScroll = true; this.label1.Text = "Có tất cả <" + firedCnt + "> Cảnh báo được bật"; mControl = c; mScreen = screen; }
public void removeControl(xBaseControl c) { Controls.Remove(c.getControl()); }
public void addControl(xBaseControl c) { Controls.Add(c.getControl()); }