void dialog_Closed(object sender, EventArgs e) { try { string category = dialog.SelectedItem.ToString(); vm.Filter(category); vm.Order(); } catch { string category = "All"; vm.Filter(category); vm.Order(); } }