private void byASINToolStripMenuItem_Click(object sender, EventArgs e) { ChooseProduct cp = new ChooseProduct(this, "asin"); cp.Show(); this.Visible = false; }
static void GenerateRules() { foreach (string slip in orders) { ShoppingCart.GetInstance().AddProduct(ChooseProduct.GetProduct(slip)); } }
/* Конструктор для работы с ASIN */ public PnL(string _asin, ChooseProduct _cp) { 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); byASIN = true; ASIN = _asin; cp = _cp; this.Text = this.Text + " - ASIN: " + ASIN; DrawTableColumns(); }
private bool showByMonths = false; //отображение по месяцам /* Конструктор для работы с SKU */ public PnL(ChooseProduct _cp, string _sku) { 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); bySKU = true; SKU = _sku; cp = _cp; this.Text = this.Text + " - SKU: " + SKU; DrawTableColumns(); }