/// <summary> /// Insert table command executed. /// </summary> private void HtmlInsertTableCommand_Executed() { using (HtmlInsertTableViewModel vm = new HtmlInsertTableViewModel(this.ViewModelStore)) { bool?result = this.GlobalServiceProvider.Resolve <IUIVisualizerService>().ShowDialog("InsertTablePopup", vm); if (result == true) { if (this.HtmlRichTextEditor != null) { this.HtmlRichTextEditor.InsertTable(vm.TableRows, vm.TableColumns, vm.TableBorder); } } } GC.Collect(); }
/// <summary> /// Insert table command executed. /// </summary> private void HtmlInsertTableCommand_Executed() { using (HtmlInsertTableViewModel vm = new HtmlInsertTableViewModel(this.ViewModelStore)) { bool? result = this.GlobalServiceProvider.Resolve<IUIVisualizerService>().ShowDialog("InsertTablePopup", vm); if (result == true) { if (this.HtmlRichTextEditor != null) this.HtmlRichTextEditor.InsertTable(vm.TableRows, vm.TableColumns, vm.TableBorder); } } GC.Collect(); }