Exemplo n.º 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());
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        internal void SetSettings(KweeVanWoerdenAddinSettings settings)
        {
            m_Settings = settings;

            cbxUseSimulatedData.Checked = m_Settings.UseSimulatedDataSet;
        }
Exemplo n.º 4
0
 internal KweeVanWoerdenMinimum(ITangraHost tangraHost, KweeVanWoerdenAddinSettings settings)
 {
     m_TangraHost = tangraHost;
     m_Settings = settings;
     m_Running = false;
 }
Exemplo n.º 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);
        }
Exemplo n.º 6
0
 internal KweeVanWoerdenMinimum(ITangraHost tangraHost, KweeVanWoerdenAddinSettings settings)
 {
     m_TangraHost = tangraHost;
     m_Settings   = settings;
     m_Running    = false;
 }
Exemplo n.º 7
0
        internal void SetSettings(KweeVanWoerdenAddinSettings settings)
        {
            m_Settings = settings;

            cbxUseSimulatedData.Checked = m_Settings.UseSimulatedDataSet;
        }