Пример #1
0
 protected void BarAppendBind(Bar barAdding)
 {
     lock (base.LockBars) {
         try {
             base.BarAppend(barAdding);
         } catch (Exception e) {
             string msg = "BARS_UNSCALED_IS_NOT_SATISFIED Bars.BarAppendBind[" + barAdding + "] to " + this;
             throw (new Exception(msg, e));
         }
         try {
             barAdding.SetParentForBackwardUpdate(this, base.Count - 1);
         } catch (Exception e) {
             string msg = "BACKWARD_UPDATE_FAILED adding bar[" + barAdding + "] to " + this;
             throw (new Exception(msg, e));
         }
     }
 }
Пример #2
0
		protected void BarAppendBind(Bar barAdding) {
			lock (base.LockBars) {
				try {
					base.BarAppend(barAdding);
				} catch (Exception e) {
					string msg = "BARS_UNSCALED_IS_NOT_SATISFIED Bars.BarAppendBind[" + barAdding + "] to " + this;
					throw (new Exception(msg, e));
				}
				try {
					barAdding.SetParentForBackwardUpdate(this, base.Count - 1);
				} catch (Exception e) {
					string msg = "BACKWARD_UPDATE_FAILED adding bar[" + barAdding + "] to " + this;
					throw (new Exception(msg, e));
				}
			}
		}