Ejemplo n.º 1
0
        private void initBooksWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            waitForm.CanClose = true;
            waitForm.Close();
            waitForm.Dispose();
            waitForm = null;

            subjects = DebtDAO.GetSubjects();
            var budget = DebtDAO.GetSettings().FilterBudget;

            if (!string.IsNullOrEmpty(budget))
            {
                subjects         = subjects.FindAll(s => { return(string.Compare(budget, s.BudgetName, true) == 0); });
                subjectsFiltered = true;
            }
            SubjectColumn.DataSource    = subjects;
            SubjectColumn.DisplayMember = "FullName";
            SubjectColumn.ValueMember   = "Self";

            initialized = true;
            ShowDebtRows();
        }
Ejemplo n.º 2
0
 public MainForm()
 {
     InitializeComponent();
     waitForm = new WaitForm();
 }