public AddProducts(Upd eventUpdate) { updateInformation += eventUpdate; productsForRemaking = new List<ProductConteiner>(); InitializeComponent(); Height = heightProductsWithoutRemake; ProductRepository repos = new ProductRepository(); entryProductsContainerCollection = new List<Conteiner>(); productCollection = repos.GetDataSource().Select(element => element.Name).ToList(); bsProductCollection = new BindingSource(); bsProductCollection.DataSource = productCollection; comboBox1.DataSource = bsProductCollection; comboBox1.IntegralHeight = false; groupBox2.Visible = groupBox2.Enabled = false; panel1PositionProductWithoutRemake = panel1.Location = new Point(3, 163); panel1PositionProductWithRemake = new Point(3, 307); dateTimePicker1.MaxDate = DateTime.Today; }
public void Update([FromBody] Upd upd) { var user = _user.GetByID(upd.Id); user.Login = upd.Login; user.Password = upd.Password; _user.Update(user); }
public Delete(Upd updateEvent) { updateInformation += updateEvent; InitializeComponent(); ProductRepository repos = new ProductRepository(); listBox1.DataSource = repos.GetDataSource(); }
public Remove(Upd eventUpdate) { updateInformation += eventUpdate; var productRepository = new ProductRepository(); InitializeComponent(); RadioButton1_CheckedChanged(this, null); maskedTextBox1.Visible = maskedTextBox1.Enabled = false; numericUpDown1.Visible = numericUpDown1.Enabled = true; dateTimePicker1.MaxDate = DateTime.Today; dateTimePicker1.Value = DateTime.Today; }
public AddTare(Upd eventUpdate) { updateInformation += eventUpdate; InitializeComponent(); TareRepository repos = new TareRepository(); coll = repos.GetDataSource().Select(element => element.Name).ToList <string>(); comboBox1.SelectedIndex = -1; label1.Text = @"Назва:"; bs = new BindingSource(); bs.DataSource = coll; comboBox1.DataSource = bs; comboBox1.SelectedItem = null; comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDown; comboBox1.AutoCompleteMode = AutoCompleteMode.None; comboBox1.IntegralHeight = false; }
public Edit(Upd eventUpdate) { updateInformation += eventUpdate; InitializeComponent(); position = button1.Location; IngredientRepository source = new IngredientRepository(); ProductRepository productRepository = new ProductRepository(); ingredientForReceiptCollection = source.GetDataSource().Select(n => n.Name).ToList(); bsObjectCollection = new BindingSource(); bsIngredientForReceiptCollection = new BindingSource(); bsIngredientForReceiptCollection.DataSource = ingredientForReceiptCollection; comboBox1.DataSource = bsIngredientForReceiptCollection; comboBox1.SelectedItem = null; comboBox1.DropDownStyle = comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDown; comboBox1.AutoCompleteMode = comboBox2.AutoCompleteMode = AutoCompleteMode.None; comboBox1.IntegralHeight = comboBox1.IntegralHeight = false; radioButton1_CheckedChanged(this, null); }
public AddIngradients(Upd eventUpdate) { updateInformation += eventUpdate; InitializeComponent(); IngredientRepository repos = new IngredientRepository(); coll = repos.GetDataSource().Select(element => element.Name).ToList <string>(); comboBox1.SelectedIndex = -1; label1.Text = @"Назва:"; maskedTextBox1.Mask = @"000.00"; maskedTextBox1.Text = ""; dateTimePicker1.MaxDate = DateTime.Today; bs = new BindingSource(); bs.DataSource = coll; comboBox1.DataSource = bs; comboBox1.SelectedItem = null; comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDown; comboBox1.AutoCompleteMode = AutoCompleteMode.None; comboBox1.IntegralHeight = false; }
public CreateTare(Upd updateEvent) { updateInformation += updateEvent; InitializeComponent(); }
public ParserInvoice(Upd eventUpdate) { updateInformation += eventUpdate; InitializeComponent(); productCount = new Dictionary <Conteiner, int>(); }
public ActionResult UpdEquipment(Upd e) { return(View()); }
public Restore(Upd updateEvent) { InitializeComponent(); updateInformation += updateEvent; }
public ActionResult UpdateStatus(Upd s) { return(View()); }