private void byMarketplaceToolStripMenuItem_Click(object sender, EventArgs e) { ChooseMP cp = new ChooseMP(this); cp.Show(); this.Visible = false; }
/* Конструктор для работы с Marketplace */ public PnL(ChooseMP _cp, string _marketplace, int _marketplaceId) { InitializeComponent(); connection = DBData.GetDBConnection(); start = DateTime.Today; end = DateTime.Today; tb_DateStart.Text = start.ToString().Substring(0, 10); tb_DateEnd.Text = end.ToString().Substring(0, 10); btn_ChooseDate.Text = btn_ChooseDate.Text = start.ToString().Substring(0, 10) + " - " + end.ToString().Substring(0, 10); byMarketplace = true; Marketplace = _marketplace; MarketplaceId = _marketplaceId; cMP = _cp; this.Text = this.Text + " - Marketplace: " + Marketplace; DrawTableColumns(); }