private void button2_Click(object sender, EventArgs e) { //String exc=""; //if(WSConnector.Instance.validaLaSession(out exc)){ frmListProductores myform = new frmListProductores(); myform.ShowDialog(); //}else{ // MessageBox.Show(exc, "ERROR!!"); // Login fr = new Login(1); // fr.ShowDialog(); //} }
private void listaDeProductoresToolStripMenuItem_Click(object sender, EventArgs e) { frmListProductores dlg = new frmListProductores(); dlg.Show(this._dockPanel, DockState.Document); }