Пример #1
0
        public FormMDI()
        {
            InitializeComponent();
            Dprov_seleccion = frm_dproveedor;
            Principal       = this;


            FormMDI.Usuario = "USUARIO";
        }
Пример #2
0
 private void btnProveedor_Click(object sender, EventArgs e)
 {
     if (!frm_dproveedor.Visible)
     {
         try
         {
             this.frm_dproveedor.MdiParent = this;
             System.Threading.Thread.Sleep(250);
             this.frm_dproveedor.Show();
         }
         catch (System.ObjectDisposedException)
         {
             frm_dproveedor = new FormDataProveedores();
             this.frm_dproveedor.MdiParent = this;
             System.Threading.Thread.Sleep(250);
             this.frm_dproveedor.Show();
         }
     }
     else
     {
         frm_dproveedor.Focus();
     }
 }