Пример #1
0
 public frmSettings(InputOutputData inputOutputData)
     : base()
 {
     InitializeComponent();
     this.inputOutputData = inputOutputData;
     boxWorkingHoursPerDay.Text = $"{inputOutputData.WorkingHoursPerDay}";
     IsEventsEnabled = true;
 }
Пример #2
0
 private void startIo_Click(object sender, EventArgs e)
 {
     inputOutputdata = new InputOutputData(dataTableAdapter, WayForConnect);
     inputOutputdata.StartReading();
     startIo.Enabled            = false;
     stopIo.Enabled             = true;
     changeWayButton.Enabled    = false;
     generateFileButton.Enabled = false;
 }
Пример #3
0
 public frmProperties(InputOutputData inputOutputData)
     : base()
 {
     InitializeComponent();
     this.inputOutputData = inputOutputData;
     IsEventsEnabled = false;
     boxAggressiveDurationInDays.Text = $"{inputOutputData.AggressiveDurationInMinutes * DurationTools.GetMinutes2Days()}";
     boxSafeDurationInDays.Text = $"{inputOutputData.SafeDurationInMinutes * DurationTools.GetMinutes2Days()}";
     IsEventsEnabled = true;
 }