Example #1
0
        public static void Save(this KweeVanWoerdenAddinSettings settings)
        {
            var output = new StringBuilder();

            using (var wrt = new StringWriter(output))
            {
                m_Serializer.Serialize(wrt, settings);
            }

            SettingsProvider.WriteSettings(output.ToString());
        }
Example #2
0
        public void Initialise(ITangraHost host)
        {
            m_Host                      = host;
            m_SettingsProvider          = m_Host.GetSettingsProvider();
            Extensions.SettingsProvider = m_SettingsProvider;
            m_Settings                  = m_SettingsProvider.ReadSettings().Load();

            m_KweeCanWoerdenAction = new KweeVanWoerdenMinimum(m_Host, m_Settings);

            m_SupportedAddinActions = new ITangraAddinAction[] { m_KweeCanWoerdenAction };

            RemotingConfiguration.RegisterWellKnownServiceType(typeof(KweeVanWoerdenAddin), "KweeVanWoerdenAddin", WellKnownObjectMode.Singleton);
            RemotingConfiguration.RegisterWellKnownServiceType(typeof(KweeVanWoerdenMinimum), "KweeVanWoerdenMinimum", WellKnownObjectMode.Singleton);
        }
Example #3
0
        internal void SetSettings(KweeVanWoerdenAddinSettings settings)
        {
            m_Settings = settings;

            cbxUseSimulatedData.Checked = m_Settings.UseSimulatedDataSet;
        }
Example #4
0
 internal KweeVanWoerdenMinimum(ITangraHost tangraHost, KweeVanWoerdenAddinSettings settings)
 {
     m_TangraHost = tangraHost;
     m_Settings = settings;
     m_Running = false;
 }
Example #5
0
        public void Initialise(ITangraHost host)
        {
            m_Host = host;
            m_SettingsProvider = m_Host.GetSettingsProvider();
            Extensions.SettingsProvider = m_SettingsProvider;
            m_Settings = m_SettingsProvider.ReadSettings().Load();

            m_KweeCanWoerdenAction = new KweeVanWoerdenMinimum(m_Host, m_Settings);

            m_SupportedAddinActions = new ITangraAddinAction[] { m_KweeCanWoerdenAction };

            RemotingConfiguration.RegisterWellKnownServiceType(typeof(KweeVanWoerdenAddin), "KweeVanWoerdenAddin", WellKnownObjectMode.Singleton);
            RemotingConfiguration.RegisterWellKnownServiceType(typeof(KweeVanWoerdenMinimum), "KweeVanWoerdenMinimum", WellKnownObjectMode.Singleton);
        }
Example #6
0
 internal KweeVanWoerdenMinimum(ITangraHost tangraHost, KweeVanWoerdenAddinSettings settings)
 {
     m_TangraHost = tangraHost;
     m_Settings   = settings;
     m_Running    = false;
 }
Example #7
0
        internal void SetSettings(KweeVanWoerdenAddinSettings settings)
        {
            m_Settings = settings;

            cbxUseSimulatedData.Checked = m_Settings.UseSimulatedDataSet;
        }