public void CreateDateCommand(object param) { CreateDate cd = new CreateDate(m_wd, m_listView.SelectedItems.Cast <Character>().ToArray()); cd.ShowDialog(); if (cd.IsAdded) { m_wd.SelectedTree.AddDate(cd, m_listView.SelectedItems.Cast <Character>().ToArray()); } }