Beispiel #1
0
        private void AmountEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            if (e.Button.Index == 1)
            {
                var pos = new frmInParty(pos_in);
                pos.Text = "Прибуткові партії: " + MatComboBox.Text;
                pos.ShowDialog();
                _wbd.Amount      = pos_in.Sum(s => s.Amount).Value;
                AmountEdit.Value = _wbd.Amount;

                GetOk();
            }
        }
Beispiel #2
0
        private void simpleButton5_Click(object sender, EventArgs e)
        {
            if (pos_in == null)
            {
                return;
            }

            var pos = new frmInParty(pos_in);

            pos.Text = "Прибуткові партії: " + MatComboBox.Text;
            pos.ShowDialog();
            _wbd.Amount      = pos_in.Sum(s => s.Amount).Value;
            AmountEdit.Value = _wbd.Amount;

            GetOk();
        }