private void Get_Frm2_Data() { Add_Order frm2 = new Add_Order(); frm2.ShowDialog(); Info lst_data = frm2.Get_Data(); ListViewItem item = new ListViewItem(); item.Text = lst._textBox3; item.SubItems.Add(lst._label6); item.SubItems.Add(lst._textBox2); item.SubItems.Add(lst._textBox1); mainform.listView2.Items.Add(item); }
public IActionResult Create_Order(Add_Order add_Order) { var createdOrder = _context.Database.ExecuteSqlRaw("EXEC Add_Order @Order_Id, @Table_Number , @Product_Name , @Quantity ", new SqlParameter("@Order_Id", 50), new SqlParameter("@Table_Number", add_Order.TableNumber), new SqlParameter("@Product_Name", add_Order.ProductName.ToString()), new SqlParameter("@Quantity", add_Order.Quantity)); ViewBag.Success = createdOrder; return(View("Index")); }
private void Confirm_button_Click(object sender, EventArgs e) { string server_address = server_address_box.Text.ToString(); string _server_user = srever_user_box.Text.ToString(); string _server_pass = server_password_box.Text.ToString(); //string _email_subject = mail_subject_box.Text.ToString(); string _time_interval = TimeBox.Text.ToString(); if (server_address == "" || _server_user == "" || _server_pass == "" || _time_interval == "") { MessageBox.Show("Please insert correct data"); return; } if (start_flag == 0) { start_flag = 1; this.confirm_button.Text = "STOP"; this.dialog_label.Text = "PDF parsing started. If you want to stop, please press STOP button."; Add_Order order_manager = new Add_Order(); Add_Order.Main_Parser(server_address, _server_user, _server_pass, _time_interval); server_password_box.Enabled = false; server_address_box.Enabled = false; srever_user_box.Enabled = false; TimeBox.Enabled = false; } else { start_flag = 0; this.confirm_button.Text = "START"; this.dialog_label.Text = ""; Add_Order order_manager = new Add_Order(); Add_Order.Stop_Parser(); server_password_box.Enabled = true; server_address_box.Enabled = true; srever_user_box.Enabled = true; TimeBox.Enabled = true; } }
private void Get_Frm2_Data() { Add_Order frm2 = new Add_Order(); List <string> info = new List <string>; info.Add(frm2.textBox1.Text);