Example #1
0
        public void OutlayDataGridView_DoubleClick(object sender, EventArgs e)
        {
            var o = outlayDataGridView.CurrentRow?.DataBoundItem as Outlay;

            if (o == null)
            {
                return;
            }
            using (var form = new DetInfoForm(2, int.Parse(o.ID.ToString())))
            {
                form.ShowDialog();
            }
        }
Example #2
0
        public void IncomeDataGridView_DoubleClick(object sender, EventArgs e)
        {
            var i = incomeDataGridView.CurrentRow?.DataBoundItem as Income;

            if (i == null)
            {
                return;
            }
            using (var form = new DetInfoForm(1, int.Parse(i.ID.ToString())))
            {
                form.ShowDialog();
            }
        }