Пример #1
0
        private void listBox1_DoubleClick(object sender, EventArgs e)
        {
            Form F = null;


            switch (int.Parse((string)((Button)sender).Tag))
            {
            case 0:
                F = new FormCashier();
                break;

            case 1:
                F = new FormNomeklatura();
                break;

            case 2:
                F = new FormPost();
                break;

            case 3:
                F = new FormSale();
                break;
            }

            if (F != null)
            {
                F.ShowDialog(this);
                F.Dispose();
            }
        }
Пример #2
0
        private void button5_Click(object sender, EventArgs e)
        {
            FormNomeklatura F = new FormNomeklatura(true);

            if (F.ShowDialog() == DialogResult.OK)
            {
                if (F != null)
                {
                    cElementPost ep = new cElementPost();
                    ep.Id           = ListElementPost.Count + 1;
                    ep.Post         = Post;
                    ep.Nomenklatura = F.ReturnNomenklatura;

                    ListElementPost.Add(ep);

                    ElementBindingSource.ResetBindings(false);
                }
            }
        }
Пример #3
0
        private void button9_Click(object sender, EventArgs e)
        {
            // Номенклатура
            textBox1.Focus();

            FormNomeklatura F = new FormNomeklatura(true);

            if (F.ShowDialog() == DialogResult.OK)
            {
                if ((F != null) && (F.ReturnNomenklatura != null))
                {
                    textBox1.Text = F.ReturnNomenklatura.ShtrihCode;

                    button1.PerformClick();

                    ElementBindingSource.ResetBindings(false);
                }
            }
        }