Example #1
0
        //METODO INSTANCIA.
        public static FrmPlanilla GetInstance()
        {
            if (instance == null)
            {
                instance = new FrmPlanilla();
            }

            return(instance);
        }
Example #2
0
        private void tbtnnuevo_Click(object sender, EventArgs e)
        {
            FrmPlanilla fr = FrmPlanilla.GetInstance();

            this.AddOwnedForm(fr);
            fr.StartPosition = FormStartPosition.CenterParent;
            fr.ShowDialog();
            ShowPlanilla();
        }
Example #3
0
 private void FrmPlanilla_FormClosing(object sender, FormClosingEventArgs e)
 {
     instance = null;
 }