private void btnExitButton_Click(object sender, System.EventArgs e) { frmExit fE = new frmExit(); if(LUser != null) { fE.LogOffVisible = true; } else fE.LogOffVisible = false; DialogResult DR = fE.ShowDialog(this); if(DR == DialogResult.Yes) { fE.FadeExit(); Application.Exit(); } else if(DR == DialogResult.No) { fE.FadeForm(); LogOffUser(); } else return; }
private void btnExitButton_Click(object sender, System.EventArgs e) { frmExit fE = new frmExit(); if(LUser != null) { fE.LogOffVisible = true; } else fE.LogOffVisible = false; DialogResult DR = fE.ShowDialog(this); if(DR == DialogResult.Yes) { Application.Exit(); } else if(DR == DialogResult.No) { fE.FadeForm(); LogOffUser(); } else return; // try // { // if(this.IsDisposed)return; // // this.Owner.Visible =true; // this.Owner.Refresh(); // this.Dispose(); // // } // catch(Exception Err) // { // string peekerror = Err.Message; // } }
private void button1_Click(object sender, EventArgs e) { var frm = new frmExit(); frm.ShowDialog(); }