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(); }
public MainForm() { InitializeComponent(); waitForm = new WaitForm(); }