コード例 #1
0
        // constructor
        internal FTConfigureForm(FTConfiguration oldSettings, ref InfoSite infoSite)
        {
            this.infoSite = infoSite;

            InitializeComponent();

            if (oldSettings == null)
            {
                oldSettings = FTConfiguration.GetDefaultConfigObject();
            }

            // read and set values in controlls
            textBoxIPAddress.Text = oldSettings.Host;
            textBoxIPPort.Text    = oldSettings.Port.ToString();
            textBoxHostId.Text    = oldSettings.ClientId.ToString();

            checkBoxAutoRefreshEnabled.Checked  = oldSettings.AutoRefreshEnabled;
            dateTimePickerAutoRefreshTime.Value = oldSettings.AutoRefreshTime;
            numericUpDownAutoRefreshDays.Value  = oldSettings.AutoRefreshDays;

            checkBoxFilter.Checked       = oldSettings.BadTickFilter;
            checkBoxVerboseLog.Checked   = oldSettings.VerboseLog;
            checkBoxRthOnly.Checked      = oldSettings.RthOnly;
            checkBoxSymbolUpdate.Checked = oldSettings.SymbolUpdate;

            SetControlState();

            buttonOk.Enabled = ValidateAll();
        }
コード例 #2
0
        // constructor
        internal YConfigureForm(YConfiguration oldSettings, ref InfoSite infoSite)
        {
            this.infoSite = infoSite;

            InitializeComponent();

            if (oldSettings == null)
            {
                oldSettings = YConfiguration.GetDefaultConfigObject();
            }

            // read and set values in controlls
            numericUpDownRefreshInterval.Value = oldSettings.RefreshPeriod;
        }
コード例 #3
0
        public static new string Configure(string oldSettings, ref InfoSite infoSite)
        {
            FTConfiguration ibConfiguration = FTConfiguration.GetConfigObject(oldSettings);

            FTConfigureForm ibConfigureForm = new FTConfigureForm(ibConfiguration, ref infoSite);

            if (ibConfigureForm.ShowDialog() == DialogResult.OK)
            {
                return(FTConfiguration.GetConfigString(ibConfigureForm.GetNewSettings()));
            }
            else
            {
                return(oldSettings);
            }
        }
コード例 #4
0
ファイル: YDataSource.cs プロジェクト: seenuchennai/shubanet
        public static new string Configure(string oldSettings, ref InfoSite infoSite)
        {
            YConfiguration configuration = YConfiguration.GetConfigObject(oldSettings);

            YConfigureForm frm = new YConfigureForm(configuration, ref infoSite);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                return(YConfiguration.GetConfigString(frm.GetNewSettings()));
            }
            else
            {
                return(oldSettings);
            }
        }
コード例 #5
0
ファイル: CInfoAlarmeAffichee.cs プロジェクト: ykebaili/Timos
 public object GetElementGere(CContexteDonnee ctx)
 {
     if (InfoEquipement != null && InfoEquipement.Id > 0)
     {
         return(InfoEquipement.GetSpvEquip(ctx));
     }
     if (InfoSite != null && InfoSite.Id > 0)
     {
         return(InfoSite.GetSpvSite(ctx));
     }
     if (InfoLiaison != null && InfoLiaison.Id > 0)
     {
         return(InfoLiaison.GetSpvLiai(ctx));
     }
     return(null);
 }
コード例 #6
0
        public static new string Configure(string oldSettings, ref InfoSite infoSite)
        {
            var configuration = Configuration.GetConfigObject(oldSettings);

            return(oldSettings);
        }