I need to open FrmEscalacao, which sends FrmAdmin information to FrmEscalacao with a line called "time"
here is the FrmAdmin code
public partial class FrmAdmin : Form { private string time; public FrmAdmin(string time) { InitializeComponent(); this.time = time; } public void btnEscalar_Click(object sender, EventArgs e) { this.Hide(); FrmEscalacao f1 = new FrmEscalacao(); f1.ShowDialog(); }
}
here is the FrmEscalacao code
public partial class FrmEscalacao : Form { public string time; private void FrmEscalacao (string time) { InitializeComponent(); this.time = time; SQLiteConnection ocon = new SQLiteConnection(Conexao.stringConexao); DataSet ds = new DataSet(); ocon.Open(); SQLiteDataAdapter da = new SQLiteDataAdapter(); da.SelectCommand = new SQLiteCommand("Here is the SQL command"); DataTable table = new DataTable(); da.Fill(table); BindingSource bs = new BindingSource(); bs.DataSource = table; DataTimes.DataSource = bs; ocon.Close(); }
And it returns an error in
private void FrmEscalacao (string time)
source share