private void button1Click(object sender, EventArgs e) { this.restoreTime = dateTimePicker1.Value.Date + dateTimePicker2.Value.TimeOfDay; BackupSystem backupSystem = new BackupSystem(this.tracking, this.backup, ".txt", false); backupSystem.RestoreTo(this.restoreTime); }
private void radioButton1CheckedChanged(object sender, EventArgs e) { button1.Visible = false; RadioButton radioButton = (RadioButton)sender; if (radioButton.Checked) { MessageBox.Show("The tracking was started"); } BackupSystem backupSystem = new BackupSystem(this.tracking, this.backup, ".txt", true); }