public MainInterface(string sql_transfer) { InitializeComponent(); connsql = sql_transfer; f = this; customer = new SqlConnection { ConnectionString = sql_transfer }; customer.Open(); dataTable = new DataTable(); dataSet = new DataSet(); Dgv = new DgvBt(); DS = new DataSourses(); ConfirmChosenButton.Visible = false; Dgv.dgv = DisplayView; DisplayView.Visible = false; }
public SellerWorkstageInterface(string sql_transfer) { InitializeComponent(); sellers = new SqlConnection { ConnectionString = sql_transfer }; connsql = sql_transfer; sellers.Open(); tbl = new DataTable(); dataSet = new DataSet(); DsControl = new DataSourses(); dgv = new DgvBt(); f = this; DataGridViewLeft.Visible = false; DataGridViewRight.Visible = false; }