private void ThisAddIn_Startup(object sender, EventArgs e)
        {
            // http://stackoverflow.com/a/12030801/752142
            // http://stackoverflow.com/a/4317263/752142
            XmlDocument doc = new XmlDocument();
            doc.LoadXml(Resources.log4net);
            XmlConfigurator.Configure(doc.DocumentElement);

            IBarModel barModel = new BarModel();
            IBarController barController = new BarController(barModel);

            ShapeNameHelper nameHelper = new ShapeNameHelper();
            IPowerPointAdapter powerpointAdapter = new PowerPointAdapter(Globals.ThisAddIn.Application, nameHelper);

            Globals.Ribbons.Ribbon.Setup(barController, barModel, powerpointAdapter, nameHelper);
        }
 public PowerPointAdapter(Application powerPointApp, ShapeNameHelper nameHelper)
 {
     _powerPointApp = powerPointApp;
     _nameHelper = nameHelper;
 }
 internal void Setup(
     IBarController controller,
     IBarModel model,
     IPowerPointAdapter powerpointAdapter,
     ShapeNameHelper sn
     )
 {
     _model = new BarModel();
     Controller = new BarController(_model);
     _powerpointAdapter = powerpointAdapter;
     _nameHelper = sn;
 }