我需要打开一个 FrmEscalacao,它将 FrmAdmin 的信息发送到 FrmEscalacao,并带有一个名为“time”的字符串
这是 FrmAdmin 的代码
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();
}
}
这是 FrmEscalacao 的代码
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();
}
它返回一个错误
private void FrmEscalacao (string time)