public override void Run()
        {
            string defaultLocation = "";

            CSMConfigurationFile.getEntryValue("FusionLink", "XllLocation", ref defaultLocation, "");

            if (!string.IsNullOrWhiteSpace(defaultLocation))
            {
                var location = Environment.ExpandEnvironmentVariables(Path.Combine(defaultLocation, "FusionLink-AddIn.xll"));

                var psi = new System.Diagnostics.ProcessStartInfo
                {
                    UseShellExecute = true,
                    FileName        = "excel.exe",
                    Arguments       = $"\"\"\"{location}\"\"\""
                };

                System.Diagnostics.Process.Start(psi);
            }
            else
            {
                MessageBox.Show("No FusionLink location specified in the configuration file");
            }

            base.Run();
        }
Ejemplo n.º 2
0
        private static void CreateDataServerFromConfig(FusionDataServiceProvider dataServiceProvider)
        {
            DataServer = new DataServer(dataServiceProvider);

            string defaultMessage = "";

            CSMConfigurationFile.getEntryValue("FusionLink", "DefaultMessage", ref defaultMessage, Resources.DefaultDataLoadingMessage);

            DataServer.DefaultMessage = defaultMessage;
        }