private void btn_ShowIndexing_Click(object sender, EventArgs e) { IndexingView iv = new IndexingView(this); iv.Show(); this.Visible = false; }
private bool firstLoad; //первая запуск формы, или нет public IndexingStatus(int _productId, string _asin, string _sku, string _productName, IndexingView _mf, DateTime _dt) { InitializeComponent(); ProductId = _productId; ASIN = _asin; ProductName = _productName; SKU = _sku; Date = _dt; connection = DBData.GetDBConnection(); controlIndexingView = _mf; firstLoad = true; GetAllProductWithSameASIN(); this.Text = ProductName + " : " + ASIN; }
/* Конструктор, просто смотрим результаты индексации за какое-то число */ public IndexingDetails(int _productId, string _asin, string _sku, string _productName, IndexingView _mf, DateTime _date) { InitializeComponent(); ProductId = _productId; ASIN = _asin; ProductName = _productName; Date = _date; SKU = _sku; controlIndexingView = _mf; connection = DBData.GetDBConnection(); this.Text = ProductName + " : " + ASIN + ", " + SKU; btn_Save.Visible = false; isSaved = true; //тут метод для заполнения всех полей getDetailsFromDB(); GetAllProductWithSameASIN(); }