private void button1_Click(object sender, EventArgs e) { this.restore_time = dateTimePicker1.Value.Date + dateTimePicker2.Value.TimeOfDay; BackUpSystem backUpSystem = new BackUpSystem(this.tracking, this.backup, ".txt", false); backUpSystem.RestoreTo(this.restore_time); }
private void radioButton1_CheckedChanged(object sender, EventArgs e) { button1.Visible = false; RadioButton radioButton = (RadioButton)sender; if (radioButton.Checked) { MessageBox.Show("The tracking has been started"); } BackUpSystem backUpSystem = new BackUpSystem(this.tracking, this.backup, ".txt", true); }