Skip to content

Commit

Permalink
Add missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
govert committed Feb 24, 2016
1 parent 91edb33 commit 75d5e71
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
33 changes: 33 additions & 0 deletions MasterSlave/Master/SlaveDriver.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using ExcelDna.Integration;
using static ExcelDna.Integration.XlCall;

namespace MasterSlave
{
public static class SlaveDriver
{
// Passing this as a parameter makes it hard to call from the ribbon...
const string path = @"C:\Work\Excel-DNA\Samples\MasterSlave\Slave\bin\Debug\Slave-AddIn.xll";
public static void RegisterSlave()
{
Console.Beep();
Console.Beep();
Console.Beep();
Console.Beep();
Excel(xlcMessage, true, $"Loading {path}");
Thread.Sleep(1000);
ExcelIntegration.RegisterXLL(path);
}

public static void UnregisterSlave()
{
ExcelIntegration.UnregisterXLL(path);
}
}
}
5 changes: 5 additions & 0 deletions MasterSlave/Master/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="ExcelDna.AddIn" version="0.33.9" targetFramework="net45" />
<package id="ExcelDna.Integration" version="0.33.9" targetFramework="net45" />
</packages>

0 comments on commit 75d5e71

Please sign in to comment.