// 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(); }
// 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; }
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); } }
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); } }
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); }
public static new string Configure(string oldSettings, ref InfoSite infoSite) { var configuration = Configuration.GetConfigObject(oldSettings); return(oldSettings); }