0

我的程序运行正常,但几周后

调试与我调试相同,并且在对程序进行更改后,调试后没有任何变化。请帮忙。

这是我的代码

namespace Payroll
{
    public partial class MainForm : Form
    {
        DataSet ds = new DataSet();
        SqlConnection cs = new SqlConnection("Data source=localhost\\SQLEXPRESS; Initial Catalog=sample; Integrated Security=true");
        SqlDataAdapter da = new SqlDataAdapter();
        /*cs.Open();//testing for checking connection
            MessageBox.Show(cs.State.ToString());
            cs.Close();*/
        BindingSource tblenameBS = new BindingSource();

    public MainForm()
    {
        InitializeComponent();

    }

    private void CompanyButton_Click(object sender, EventArgs e)
    {
        new Company_Main_Interface().Show();
        this.Hide();

    }

    private void exit_Click(object sender, EventArgs e)
    {
        Application.Exit();

    }

    private void MainForm_Load(object sender, EventArgs e)
    {

    }

    private void employeesbutton_Click(object sender, EventArgs e)
    {
        employee_main_interface e1 = new employee_main_interface();
        e1.Show();
    }


    private void employees_Click(object sender, EventArgs e)
    {

    }

    private void panel1_Paint(object sender, PaintEventArgs e)
    {

    }





}

}

4

0 回答 0