using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Word = Microsoft.Office.Interop.Word;
using Office = Microsoft.Office.Core;
using Microsoft.Office.Tools.Word;
using System.IO;

namespace FGAddIn
{
    public partial class ThisAddIn
    {
        private void ThisAddIn_Startup(object sender, System.EventArgs e)
        {
        }

        private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
        {
        }

        #region VSTO generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InternalStartup()
        {
            this.Startup += new System.EventHandler(ThisAddIn_Startup);
            this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
        }
        
        #endregion
    }
}
namespace W2PGrid
{
	public partial class ThisGrid : C1.Win.C1FlexGrid.C1FlexGrid
	{
		public const string ClassID = "73ED6A9D-4E4B-4521-823C-F4A5BC8DCB3C";
		public const string InterfaceID = "01A4D93F-C962-478D-9376-B50C52ECC554";
		public const string EventID = "AD4FB6C2-3E13-4527-8324-4D7ACF3AB67A";

		public ThisGrid()
		{
			InitializeComponent();
		}

		public ThisGrid(System.ComponentModel.IContainer container)
		{
			container.Add(this);

			InitializeComponent();
		}

		private void InitializeComponent()
		{
			throw new NotImplementedException();
		}

		public string GetXML()
		{
			string retstr = null;
			using (StringWriter sw = new StringWriter())
			{
				this.WriteXml(sw);
				retstr = sw.GetStringBuilder().ToString();
				sw.Close();
			}
			return retstr;
		}
		public object GetAGrid()
		{
			ThisGrid fg = new ThisGrid();
			return fg;
		}
	}

}

