public Order() { // Sets the culture to English (US) //Thread.CurrentThread.CurrentCulture = new CultureInfo("en-IN"); // Sets the UI culture to English (US) //Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-IN"); InitializeComponent(); dtp_date_of_dispatch.Format = DateTimePickerFormat.Custom; dtp_date_of_dispatch.CustomFormat = "dd-MMM-yyyy"; dtp_date_of_order.Format = DateTimePickerFormat.Custom; dtp_date_of_order.CustomFormat = "dd-MMM-yyyy"; odbc = new OracleDatabaseController(); apto = new AddProductsToOrder(); mode = ADD; rad_add.Checked = true; }
private void btn_add_products_Click(object sender, EventArgs e) { if (!apto.IsDisposed) { apto.Show(); } else { apto = new AddProductsToOrder(); apto.Show(); } }