public moneyDonate overlay() { moneyDonate mD = new moneyDonate(); dim dim = new dim(); dim.Location = this.Location; dim.refToPrev = this; dim.Show(this); mD.refToDim = dim; return(mD); }
public void successMessage(string message) // Success Message { success yey = new success(); dim dim = new dim(); dim.Location = this.Location; dim.Size = this.Size; yey.lblSuccess.Text = message; dim.refToPrev = this; dim.Show(this); if (yey.ShowDialog() == DialogResult.OK) { dim.Close(); } }
public void errorMessage(string message) // Error Message { error err = new error(); dim dim = new dim(); dim.Location = this.Location; dim.Size = this.Size; err.lblError.Text = message; dim.refToPrev = this; dim.Show(this); if (err.ShowDialog() == DialogResult.OK) { dim.Close(); } }
public void confirmMessage(string message) // Success Message { confirm conf = new confirm(); dim dim = new dim(); dim.Location = this.Location; dim.Size = this.Size; dim.refToPrev = this; dim.Show(this); conf.lblConfirm.Text = message; if (conf.ShowDialog() == DialogResult.OK) { confirmed = true; } else { confirmed = false; } dim.Close(); }