static void InsertTable(Wd.Range range, FormatTable FormatTable, bool Shaded = false)
 {
     var viewModel = new AddTableViewModel();
     var view = new AddTableView(viewModel);
     view.ShowDialog();
     if (view.DialogResult == true)
     {
         AddTableHeading(ref range, viewModel.TableHeading);
         Wd.Table table = range.Tables.Add(range, viewModel.NumberOfRows, viewModel.NumberOfColumns, Type.Missing, Wd.WdAutoFitBehavior.wdAutoFitWindow);
         FormatTable(table, Shaded);
         AddTableSource(table, viewModel.TableSource);
     }
 }
 public AddTableView(AddTableViewModel viewModel)
     : this()
 {
     this.viewModel = viewModel;
     this.DataContext = this.viewModel;
 }