private void plusButton_Click(object sender, EventArgs e) { popup = new CreateAlarmPopup(this); popup.ShowDialog(); /* PartAlarm pa1 = new PartAlarm(); * int numAlarms = partAlarmsPanel.Controls.Count; * int locY = numAlarms * pa1.Height + 10 * numAlarms; * pa1.Location = new Point(partAlarmsPanel.Location.X + partAlarmsPanel.Width / 2 - pa1.Width / 2, locY); * partAlarmsPanel.Controls.Add(pa1);*/ }
public void linebtn_Click(object sender, EventArgs e, int line) { Button Lbtn = sender as Button; String partNum = Lbtn.Text.Substring(0, 10); popup = new CreateAlarmPopup(this); popup.ShowDialog(); popup.createAlarmFromLineButton(information.getCard(partNum, line)); /* PartAlarm pa1 = new PartAlarm(); * int numAlarms = partAlarmsPanel.Controls.Count; * int locY = numAlarms * pa1.Height + 10 * numAlarms; * pa1.Location = new Point(partAlarmsPanel.Location.X + partAlarmsPanel.Width / 2 - pa1.Width / 2, locY); * partAlarmsPanel.Controls.Add(pa1);*/ }
public void editAlarm(String partType, String lineNum, String station, String alarmTime, Boolean desktopNotification, Boolean emailNotification) { popup = new CreateAlarmPopup(this); popup.editAlarm(partType, lineNum, station, alarmTime, desktopNotification, emailNotification); popup.ShowDialog(); }
public void editAlarm(string partType, string lineNum, string station, string alarmTime, bool desktopNotification, bool emailNotification) { popup = new CreateAlarmPopup(this, information.getSendDefault(), information.getDesktopAlarmDefault()); popup.editAlarm(partType, lineNum, station, alarmTime, desktopNotification, emailNotification); popup.ShowDialog(); }