//METODO INSTANCIA. public static FrmPlanilla GetInstance() { if (instance == null) { instance = new FrmPlanilla(); } return(instance); }
private void tbtnnuevo_Click(object sender, EventArgs e) { FrmPlanilla fr = FrmPlanilla.GetInstance(); this.AddOwnedForm(fr); fr.StartPosition = FormStartPosition.CenterParent; fr.ShowDialog(); ShowPlanilla(); }
private void FrmPlanilla_FormClosing(object sender, FormClosingEventArgs e) { instance = null; }