private void Button_Click(object sender, RoutedEventArgs e)
 {
     MediaEdit.AddTitleAdWindow atw = new AddTitleAdWindow();
     atw.vm_TitleAdEditWindow.IsEdit = false;
     atw.ShowDialog();
     DataBinding();
 }
 private void editmenu_Click(object sender, RoutedEventArgs e)
 {
     MediaEdit.AddTitleAdWindow atw = new AddTitleAdWindow();
     atw.vm_TitleAdEditWindow.TitleAdModel = TitleAdLbox.Items[TitleAdLbox.SelectedIndex] as AMS.Model.AMS_TitleAd;
     atw.vm_TitleAdEditWindow.IsEdit       = true;
     atw.ShowDialog();
     DataBinding();
 }