private void DeleteModuleCommandExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            var moduleId = (int) e.Parameter;
            var md = new ModuleDetail(moduleId, PageMode.DeleteMode);
            md.Show();

            e.Handled = true;
        }
 private void Button2Click(object sender, RoutedEventArgs e)
 {
     var md = new ModuleDetail(PageMode.AddMode);
     md.Show();
 }