コード例 #1
0
        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;
        }
コード例 #2
0
ファイル: UserController.cs プロジェクト: Viktor5528/Blog
        public void Update([FromBody] Upd upd)
        {
            var user = _user.GetByID(upd.Id);

            user.Login    = upd.Login;
            user.Password = upd.Password;
            _user.Update(user);
        }
コード例 #3
0
ファイル: Delete.cs プロジェクト: liakhivan/Inventarizator
        public Delete(Upd updateEvent)
        {
            updateInformation += updateEvent;
            InitializeComponent();
            ProductRepository repos = new ProductRepository();

            listBox1.DataSource = repos.GetDataSource();
        }
コード例 #4
0
        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;
        }
コード例 #5
0
ファイル: AddTare.cs プロジェクト: liakhivan/Inventarizator
        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;
        }
コード例 #6
0
ファイル: Edit.cs プロジェクト: liakhivan/Inventarizator
        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);
        }
コード例 #7
0
        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;
        }
コード例 #8
0
 public CreateTare(Upd updateEvent)
 {
     updateInformation += updateEvent;
     InitializeComponent();
 }
コード例 #9
0
 public ParserInvoice(Upd eventUpdate)
 {
     updateInformation += eventUpdate;
     InitializeComponent();
     productCount = new Dictionary <Conteiner, int>();
 }
コード例 #10
0
ファイル: EquipmentController.cs プロジェクト: nuyu/Zealous
 public ActionResult UpdEquipment(Upd e)
 {
     return(View());
 }
コード例 #11
0
ファイル: Restore.cs プロジェクト: liakhivan/Inventarizator
 public Restore(Upd updateEvent)
 {
     InitializeComponent();
     updateInformation += updateEvent;
 }
コード例 #12
0
 public ActionResult UpdateStatus(Upd s)
 {
     return(View());
 }