Ejemplo n.º 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            var spendingGroup = SpendingGroupComboBox.SelectedItem;
            var gr            = SpendingGroups.First(x => x.Name == spendingGroup);

            SpendingGroups.Remove(gr);
            SaveSettingsBtn.Enabled = true;
            Init();
            DoGood_Click(null, null);
        }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            var guid          = ReportTree.SelectedNode.Name;
            var bill          = TradePoints.FirstOrDefault(x => x.Guid.ToString() == guid);
            var spendingGroup = SpendingGroupComboBox.SelectedItem;
            var gr            = SpendingGroups.First(x => x.Name == spendingGroup);

            gr.Marks.Add(bill.GroupDesc);
            DoGood_Click(null, null);
            SaveSettingsBtn.Enabled = true;
        }