private void btn_commute_Click(object sender, EventArgs e) { this.Visible = false; CommutingTime dlgCommuting = new CommutingTime(this); dlgCommuting.ShowDialog(); if (dlgCommuting.DialogResult == DialogResult.Cancel) { this.Visible = true; } }
public LeaveWork(CommutingTime form) { InitializeComponent(); this.commuteForm = form; }