private void tableToolStripMenuItem_Click(object sender, EventArgs e)
        {
            InsertTableDialog dlgInsertTable = new InsertTableDialog();

            dlgInsertTable.ShowDialog();

            if (dlgInsertTable.DialogResult == DialogResult.OK)
            {
                string id          = dlgInsertTable.TableID;
                int    borderSize  = dlgInsertTable.BorderSize;
                int    rows        = dlgInsertTable.Rows;
                int    cols        = dlgInsertTable.Columns;
                string borderColor = MainWindow.ConvertColorToRgb(dlgInsertTable.BorderColor);

                Thread insertTableThread = new Thread(new ThreadStart(() =>
                {
                    builder.InsertTable(id, rows, cols, borderSize, borderColor);
                }));

                insertTableThread.Start();
                modifiedDocument = true;
            }
        }
        private void tableToolStripMenuItem_Click(object sender, EventArgs e)
        {
            InsertTableDialog dlgInsertTable = new InsertTableDialog();
            dlgInsertTable.ShowDialog();

            if (dlgInsertTable.DialogResult == DialogResult.OK)
            {
                string id = dlgInsertTable.TableID;
                int borderSize = dlgInsertTable.BorderSize;
                int rows = dlgInsertTable.Rows;
                int cols = dlgInsertTable.Columns;
                string borderColor = MainWindow.ConvertColorToRgb(dlgInsertTable.BorderColor);

                Thread insertTableThread = new Thread(new ThreadStart(() =>
                    {
                        builder.InsertTable(id, rows, cols, borderSize, borderColor);
                    }));

                insertTableThread.Start();
                modifiedDocument = true;
            }
        }