private void SetBtn_Click(object sender, EventArgs e) { sendtime = timePicker.Value.Hour.ToString() + ':' + timePicker.Value.Minute.ToString() + ':' + timePicker.Value.Second.ToString(); MySendlerEvent args = new MySendlerEvent(sendtime); SetNewTime_Event(this, args); this.Close(); }
private void GetInfo(object sender,MySendlerEvent e) { MyClock = e.Clock; timer1.Start(); }