protected float splitterDistance = 321; // геометрия панели /// <summary> /// Инициализирует новый экземпляр класса /// </summary> /// <param name="app">Контекст в котором работает панель</param> public SolutionPanel(SgtApplication app) : base("Параметры бурового раствора", VPanelType.SolutionPanel) { _app = app; setter = new SetterValue(setterValue); plPriemna = new VPanelParameter(); plBlocka = new VPanelParameter(); plEmkOts2 = new VPanelParameter(); tempVihod = new VPanelParameter(); temVhod = new VPanelParameter(); app.Technology.onComplete += new EventHandler(Technology_onComplete); }
public virtual Expression VisitSetterValue(SetterValue value, SetterValue changes, SetterValue deletions, SetterValue insertions){ this.UpdateSourceContext(value, changes); if (value == null) return changes; if (changes != null){ if (deletions == null || insertions == null) Debug.Assert(false); else{ } }else if (deletions != null) return null; return value; }
public virtual Differences VisitSetterValue(SetterValue value1, SetterValue value2){ Differences differences = new Differences(value1, value2); if (value1 == null || value2 == null){ if (value1 != value2) differences.NumberOfDifferences++; else differences.NumberOfSimilarities++; }else{ differences.NumberOfSimilarities++; differences.Changes = null; } return differences; }
public virtual Expression VisitSetterValue(SetterValue value){ return value; }
public override Expression VisitSetterValue(SetterValue value) { if (value == null) return null; //TODO: complain if current method is not a property setter return value; }
public override Expression VisitSetterValue(SetterValue value){ if (value == null) return null; if (this.currentMethod != null && this.currentMethod.Parameters != null){ int n = this.currentMethod.Parameters.Count; if (n > 0 && this.currentMethod.Parameters[n-1] != null) value.Type = this.currentMethod.Parameters[n-1].Type; } return value; }
public virtual void VisitSetterValue(SetterValue value) { }
public override Expression VisitSetterValue(SetterValue value) { throw new ApplicationException("unimplemented"); }
public override Expression VisitSetterValue(SetterValue value) { if (value == null) return null; return base.VisitSetterValue((SetterValue)value.Clone()); }
public virtual Expression VisitSetterValue(SetterValue value1, SetterValue value2) { return value1; }
public override Expression VisitSetterValue(SetterValue value) { throw new ApplicationException("unimplemented"); }
protected TextBox _p9; // Суммарные объем в емкостях #endregion Fields #region Constructors /// <summary> /// Инициализирует новый экземпляр класса /// </summary> /// <param name="app">Контекст в котором работает панель</param> public SolutionPanel(SgtApplication app) : base("Параметры бурового раствора", VPanelType.SolutionPanel) { _app = app; setter = new SetterValue(setterValue); plPriemna = new VPanelParameter(); plBlocka = new VPanelParameter(); plEmkOts2 = new VPanelParameter(); tempVihod = new VPanelParameter(); temVhod = new VPanelParameter(); app.Technology.onComplete += new EventHandler(Technology_onComplete); }
private Application _app = null; // основное приложение #endregion Fields #region Constructors public Form1() { updtr = new UpdaterList(upd); lastSatage = DateTime.Now; lastSpan = new TimeSpan(0, 0, 0, 10); _app = Application.CreateInstance(); _app.Commutator.onParameterUpdated += new EventHandler(Commutator_onParameterUpdated); InitializeComponent(); manager = graphicsSheet1.InstanceManager(); manager.StartTime = DateTime.Now; manager.OnData += new OnDataEventHander(manager_OnData); manager.OnDataNeed += new EventHandler(manager_OnDataNeed); manager.Orientation = GraphicComponent.Orientation.Horizontal; _app.Graphic_consumption = manager.InstanceGraphic(); _app.Graphic_volume = manager.InstanceGraphic(); _app.Graphic_density = manager.InstanceGraphic(); _app.Graphic_pressure = manager.InstanceGraphic(); _app.Graphic_temperature = manager.InstanceGraphic(); for (int i = 0; i < 5; i++) { _app.Commutator.Parameters[i].Channel = null; } setv = new SetterValue(SeterValue); agent = _app.Manager.CreateAgent(); dStatuser = new devMnStatuser(DevStatuse); DevManClient.onConnected += new EventHandler(DevManClient_onConnected); DevManClient.onDisconnected += new EventHandler(DevManClient_onDisconnected); _app.Load(); toolStripLabelCurrentDateTimeDay.Text = DateTime.Now.ToString("dddd dd MMMM yyyy HH:mm:ss ", CultureInfo.CurrentCulture); }