public DataChart(ServiceTemperaturi serviceTemperaturi, ServiceValidari serviceValidari, Chart chart, DateTimePicker dateTimePickerStart, DateTimePicker dateTimePickerEnd) { this.serviceTemperaturi = serviceTemperaturi; this.serviceValidari = serviceValidari; this.chart = chart; this.dateTimePickerStart = dateTimePickerStart; this.dateTimePickerEnd = dateTimePickerEnd; }
public Suplimentare(ServiceValidari serviceValidari, ServiceTemperaturi serviceTemperaturi, TextBox textBoxMin, TextBox textBoxMax, ProgressBar progressBarValidari, RichTextBox textBoxRez) { this.min = Int32.Parse(textBoxMin.Text); this.max = Int32.Parse(textBoxMax.Text); this.progressBarValidari = progressBarValidari; this.serviceValidari = serviceValidari; this.serviceTemperaturi = serviceTemperaturi; this.validMed = serviceValidari.get_nr_validari_mediu(); this.textBoxRez = textBoxRez; }
public Form1() { repoValidari = new RepoValidari(); serviceValidari = new ServiceValidari(repoValidari); repoTemperaturi = new RepoTemperaturi(); serviceTemperaturi = new ServiceTemperaturi(repoTemperaturi); BusID["BV18DKZ"] = "/16000081"; BusID["BV18EIK"] = "/16000082"; BusID["BV18EHX"] = "/16000086"; BusID["BV18EIL"] = "/16000087"; BusID["BV18DKY"] = "/1600008C"; dataAPI = new DataAPI("https://data.uradmonitor.com/api/v1/devices", ""); dataAPI.setRequest(); dataAPI.getResponse(); InitializeComponent(); }