Пример #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());
        }
Пример #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);
        }
Пример #3
0
        internal void SetSettings(KweeVanWoerdenAddinSettings settings)
        {
            m_Settings = settings;

            cbxUseSimulatedData.Checked = m_Settings.UseSimulatedDataSet;
        }
Пример #4
0
 internal KweeVanWoerdenMinimum(ITangraHost tangraHost, KweeVanWoerdenAddinSettings settings)
 {
     m_TangraHost = tangraHost;
     m_Settings = settings;
     m_Running = false;
 }
Пример #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);
        }
Пример #6
0
 internal KweeVanWoerdenMinimum(ITangraHost tangraHost, KweeVanWoerdenAddinSettings settings)
 {
     m_TangraHost = tangraHost;
     m_Settings   = settings;
     m_Running    = false;
 }
Пример #7
0
        internal void SetSettings(KweeVanWoerdenAddinSettings settings)
        {
            m_Settings = settings;

            cbxUseSimulatedData.Checked = m_Settings.UseSimulatedDataSet;
        }