using System;
using System.CodeDom.Compiler;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Net;
using System.Net.Http;
using System.Net.NetworkInformation;
using System.Net.Sockets;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using System.Timers;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.WpfPropertyGrid;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Threading;
using System.Xml.Linq;
using System.Xml.Serialization;
using Infragistics.Windows.DataPresenter;
using Infragistics.Windows.DataPresenter.Events;
using Microsoft.CSharp.RuntimeBinder;
using Microsoft.Win32;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using NinjaTrader.Cbi;
using NinjaTrader.Gui;
using NinjaTrader.Gui.Tools;
using NinjaTrader.NinjaScript;
using Replikanto.Communicator;
using Replikanto.converter;
using Replikanto.Properties;
using Replikanto.Util;
using Websocket.Client;

namespace Replikanto
{
	public partial class ReplikantoTabPage : NTTabPage, IAccountProvider, IInstrumentProvider
	{
		public ReplikantoProperties ReplikantoProperties { get; set; } = new ReplikantoProperties();

		[CompilerGenerated]
		private int method_0()
		{
			return this.int_0;
		}

		[CompilerGenerated]
		private void method_1(int int_6)
		{
			this.int_0 = int_6;
		}

		private string UniqueID { get; set; }

		[CompilerGenerated]
		private string method_2()
		{
			return this.string_1;
		}

		[CompilerGenerated]
		private void method_3(string string_4)
		{
			this.string_1 = string_4;
		}

		public ReplikantoTabPage()
		{
			OrderState[] array = new OrderState[5];
			Delegate239.smethod_0(array, fieldof(<PrivateImplementationDetails>.struct11_0).FieldHandle, Delegate239.delegate239_0);
			this.orderState_1 = array;
			this.concurrentDictionary_1 = new ConcurrentDictionary<Tuple<string, bool>, LinkedList<ReplikantoOrder>>();
			this.object_0 = new object();
			this.object_1 = new object();
			this.list_0 = new List<Tuple<string, long, DateTime, OrderState>>();
			this.list_1 = new List<ReplikantoOrder>();
			this.concurrentDictionary_2 = new ConcurrentDictionary<CompositeID, List<CompositeID>>();
			this.concurrentDictionary_3 = new ConcurrentDictionary<Tuple<long, long>, AtmStrategy>();
			this.concurrentDictionary_4 = new ConcurrentDictionary<string, string>();
			this.concurrentDictionary_5 = new ConcurrentDictionary<long, ServerStrategy>();
			this.concurrentDictionary_6 = new ConcurrentDictionary<Tuple<long?, EnumMethod, bool>, double>();
			this.list_2 = new List<Order>();
			this.list_3 = new List<Order>();
			this.list_4 = new List<Execution>();
			this.hashSet_0 = new HashSet<ulong>();
			this.list_6 = new List<string>();
			this.list_7 = new List<string>();
			Timer timer = new Timer(500.0);
			Delegate240.smethod_0(timer, false, Delegate240.delegate240_0);
			Delegate241.smethod_0(timer, true, Delegate241.delegate241_0);
			this.timer_0 = timer;
			Timer timer2 = new Timer(500.0);
			Delegate240.smethod_0(timer2, false, Delegate240.delegate240_0);
			Delegate241.smethod_0(timer2, true, Delegate241.delegate241_0);
			this.timer_1 = timer2;
			Timer timer3 = new Timer(500.0);
			Delegate240.smethod_0(timer3, true, Delegate240.delegate240_0);
			Delegate241.smethod_0(timer3, false, Delegate241.delegate241_0);
			this.timer_2 = timer3;
			base..ctor();
			int num = Delegate242.smethod_0(this, Delegate242.delegate242_0);
			this.UniqueID = Delegate243.smethod_0(ref num, "X8", Delegate243.delegate243_0);
			this.method_3(this.UniqueID);
			Delegate34.smethod_0(Delegate51.smethod_0("Replikanto: Creating Replikanto tab '", this.UniqueID, "'...", Delegate51.delegate51_0), 1, Delegate34.delegate34_0);
			this.InitializeComponent();
			this.brush_0 = Delegate244.smethod_0(this.bSlavesAccounts, Delegate244.delegate244_0);
			Delegate245.smethod_0(this, this, Delegate245.delegate245_0);
			Delegate246.smethod_0(this, this.ReplikantoProperties.TabName, Delegate246.delegate246_0);
			Delegate247.smethod_0(this.grdSlaveAccounts, null, Delegate247.dsOviceyp5);
			Delegate247.smethod_0(this.grdNodes, null, Delegate247.dsOviceyp5);
			this.version_0 = Delegate48.smethod_0(Delegate47.smethod_0(Delegate248.smethod_0(Delegate248.delegate248_0), Delegate47.delegate47_0), Delegate48.delegate48_0);
			if (this.ReplikantoProperties.NetworkPort == 0U)
			{
				this.ReplikantoProperties.NetworkPort = 4547U;
			}
			if (Delegate44.smethod_0(this.ReplikantoProperties.EmailSubject, Delegate44.delegate44_0))
			{
				this.ReplikantoProperties.EmailSubject = Resources.EmailSubjectExample;
			}
			try
			{
				ReplikantoTabPage.string_3 = Delegate103.smethod_0(Delegate103.delegate103_0);
			}
			catch
			{
			}
			Delegate249.smethod_0(this, new ContextMenu(), Delegate249.delegate249_0);
			NTMenuItem ntmenuItem = new NTMenuItem();
			Delegate250.smethod_0(ntmenuItem, true, Delegate250.delegate250_0);
			Delegate61.smethod_0(ntmenuItem, Delegate251.smethod_0(Delegate251.delegate251_0), Delegate61.delegate61_0);
			Delegate64.smethod_0(ntmenuItem, Delegate63.smethod_0(Delegate62.smethod_0(Delegate62.delegate62_0), "MainMenuItem", Delegate63.delegate63_0) as Style, Delegate64.delegate64_0);
			this.menuItem_0 = ntmenuItem;
			NTMenuItem ntmenuItem2 = new NTMenuItem();
			Delegate250.smethod_0(ntmenuItem2, true, Delegate250.delegate250_0);
			Delegate61.smethod_0(ntmenuItem2, Delegate252.smethod_0(Delegate252.delegate252_0), Delegate61.delegate61_0);
			Delegate64.smethod_0(ntmenuItem2, Delegate63.smethod_0(Delegate62.smethod_0(Delegate62.delegate62_0), "MainMenuItem", Delegate63.delegate63_0) as Style, Delegate64.delegate64_0);
			this.menuItem_1 = ntmenuItem2;
			NTMenuItem ntmenuItem3 = new NTMenuItem();
			Delegate250.smethod_0(ntmenuItem3, true, Delegate250.delegate250_0);
			Delegate253.smethod_0(ntmenuItem3, true, Delegate253.delegate253_0);
			Delegate61.smethod_0(ntmenuItem3, Resources.CrossOrder, Delegate61.delegate61_0);
			Delegate64.smethod_0(ntmenuItem3, Delegate63.smethod_0(Delegate62.smethod_0(Delegate62.delegate62_0), "MainMenuItem", Delegate63.delegate63_0) as Style, Delegate64.delegate64_0);
			Delegate254.smethod_0(ntmenuItem3, Resources.CrossOrderTooltip, Delegate254.delegate254_0);
			this.menuItem_2 = ntmenuItem3;
			NTMenuItem ntmenuItem4 = new NTMenuItem();
			Delegate250.smethod_0(ntmenuItem4, true, Delegate250.delegate250_0);
			Delegate253.smethod_0(ntmenuItem4, true, Delegate253.delegate253_0);
			Delegate61.smethod_0(ntmenuItem4, Resources.UseATM, Delegate61.delegate61_0);
			Delegate64.smethod_0(ntmenuItem4, Delegate63.smethod_0(Delegate62.smethod_0(Delegate62.delegate62_0), "MainMenuItem", Delegate63.delegate63_0) as Style, Delegate64.delegate64_0);
			Delegate254.smethod_0(ntmenuItem4, Resources.String_0, Delegate254.delegate254_0);
			this.menuItem_3 = ntmenuItem4;
			NTMenuItem ntmenuItem5 = new NTMenuItem();
			Delegate250.smethod_0(ntmenuItem5, true, Delegate250.delegate250_0);
			Delegate253.smethod_0(ntmenuItem5, true, Delegate253.delegate253_0);
			Delegate61.smethod_0(ntmenuItem5, Resources.Disarm, Delegate61.delegate61_0);
			Delegate64.smethod_0(ntmenuItem5, Delegate63.smethod_0(Delegate62.smethod_0(Delegate62.delegate62_0), "MainMenuItem", Delegate63.delegate63_0) as Style, Delegate64.delegate64_0);
			Delegate254.smethod_0(ntmenuItem5, Resources.DisarmTooltip, Delegate254.delegate254_0);
			this.menuItem_4 = ntmenuItem5;
			NTMenuItem ntmenuItem6 = new NTMenuItem();
			Delegate250.smethod_0(ntmenuItem6, true, Delegate250.delegate250_0);
			Delegate253.smethod_0(ntmenuItem6, false, Delegate253.delegate253_0);
			Delegate61.smethod_0(ntmenuItem6, Resources.HideNodes, Delegate61.delegate61_0);
			Delegate64.smethod_0(ntmenuItem6, Delegate63.smethod_0(Delegate62.smethod_0(Delegate62.delegate62_0), "MainMenuItem", Delegate63.delegate63_0) as Style, Delegate64.delegate64_0);
			Delegate254.smethod_0(ntmenuItem6, Resources.HideNodesTooltip, Delegate254.delegate254_0);
			this.menuItem_5 = ntmenuItem6;
			NTMenuItem ntmenuItem7 = new NTMenuItem();
			Delegate250.smethod_0(ntmenuItem7, true, Delegate250.delegate250_0);
			Delegate61.smethod_0(ntmenuItem7, Resources.ServerNode, Delegate61.delegate61_0);
			Delegate64.smethod_0(ntmenuItem7, Delegate63.smethod_0(Delegate62.smethod_0(Delegate62.delegate62_0), "MainMenuItem", Delegate63.delegate63_0) as Style, Delegate64.delegate64_0);
			Delegate254.smethod_0(ntmenuItem7, Resources.ServerNodeTooltip, Delegate254.delegate254_0);
			this.mnuServerNode = ntmenuItem7;
			NTMenuItem ntmenuItem8 = new NTMenuItem();
			Delegate250.smethod_0(ntmenuItem8, true, Delegate250.delegate250_0);
			Delegate61.smethod_0(ntmenuItem8, Resources.InternetNode, Delegate61.delegate61_0);
			Delegate64.smethod_0(ntmenuItem8, Delegate63.smethod_0(Delegate62.smethod_0(Delegate62.delegate62_0), "MainMenuItem", Delegate63.delegate63_0) as Style, Delegate64.delegate64_0);
			Delegate254.smethod_0(ntmenuItem8, Resources.InternetNodeTooltip, Delegate254.delegate254_0);
			this.menuItem_6 = ntmenuItem8;
			NTMenuItem ntmenuItem9 = new NTMenuItem();
			Delegate61.smethod_0(ntmenuItem9, Resources.RefreshCredits, Delegate61.delegate61_0);
			Delegate64.smethod_0(ntmenuItem9, Delegate63.smethod_0(Delegate62.smethod_0(Delegate62.delegate62_0), "MainMenuItem", Delegate63.delegate63_0) as Style, Delegate64.delegate64_0);
			Delegate254.smethod_0(ntmenuItem9, Resources.RefreshCreditsTooltip, Delegate254.delegate254_0);
			this.menuItem_7 = ntmenuItem9;
			NTMenuItem ntmenuItem10 = new NTMenuItem();
			Delegate61.smethod_0(ntmenuItem10, Resources.MyReplikantoID, Delegate61.delegate61_0);
			Delegate64.smethod_0(ntmenuItem10, Delegate63.smethod_0(Delegate62.smethod_0(Delegate62.delegate62_0), "MainMenuItem", Delegate63.delegate63_0) as Style, Delegate64.delegate64_0);
			Delegate254.smethod_0(ntmenuItem10, Resources.MyReplikantoIDTooltip, Delegate254.delegate254_0);
			this.menuItem_8 = ntmenuItem10;
			NTMenuItem ntmenuItem11 = new NTMenuItem();
			Delegate61.smethod_0(ntmenuItem11, Resources.MyMachineID, Delegate61.delegate61_0);
			Delegate64.smethod_0(ntmenuItem11, Delegate63.smethod_0(Delegate62.smethod_0(Delegate62.delegate62_0), "MainMenuItem", Delegate63.delegate63_0) as Style, Delegate64.delegate64_0);
			Delegate254.smethod_0(ntmenuItem11, Resources.String_1, Delegate254.delegate254_0);
			this.menuItem_9 = ntmenuItem11;
			NTMenuItem ntmenuItem12 = new NTMenuItem();
			Delegate61.smethod_0(ntmenuItem12, Delegate255.smethod_0(Delegate255.delegate255_0), Delegate61.delegate61_0);
			Delegate64.smethod_0(ntmenuItem12, Delegate63.smethod_0(Delegate62.smethod_0(Delegate62.delegate62_0), "MainMenuItem", Delegate63.delegate63_0) as Style, Delegate64.delegate64_0);
			this.menuItem_10 = ntmenuItem12;
			NTMenuItem ntmenuItem13 = new NTMenuItem();
			Delegate61.smethod_0(ntmenuItem13, Delegate255.smethod_0(Delegate255.delegate255_0), Delegate61.delegate61_0);
			Delegate64.smethod_0(ntmenuItem13, Delegate63.smethod_0(Delegate62.smethod_0(Delegate62.delegate62_0), "MainMenuItem", Delegate63.delegate63_0) as Style, Delegate64.delegate64_0);
			this.menuItem_12 = ntmenuItem13;
			NTMenuItem ntmenuItem14 = new NTMenuItem();
			Delegate61.smethod_0(ntmenuItem14, Delegate255.smethod_0(Delegate255.delegate255_0), Delegate61.delegate61_0);
			Delegate64.smethod_0(ntmenuItem14, Delegate63.smethod_0(Delegate62.smethod_0(Delegate62.delegate62_0), "MainMenuItem", Delegate63.delegate63_0) as Style, Delegate64.delegate64_0);
			this.menuItem_13 = ntmenuItem14;
			NTMenuItem ntmenuItem15 = new NTMenuItem();
			Delegate61.smethod_0(ntmenuItem15, Delegate255.smethod_0(Delegate255.delegate255_0), Delegate61.delegate61_0);
			Delegate64.smethod_0(ntmenuItem15, Delegate63.smethod_0(Delegate62.smethod_0(Delegate62.delegate62_0), "MainMenuItem", Delegate63.delegate63_0) as Style, Delegate64.delegate64_0);
			this.menuItem_14 = ntmenuItem15;
			Delegate256.smethod_0(this.ReplikantoProperties, new PropertyChangedEventHandler(this.method_5), Delegate256.delegate256_0);
			this.isCrossOrderChecked = Delegate257.smethod_0(this.menuItem_2, Delegate257.delegate257_0);
			this.isHideNodesChecked = Delegate257.smethod_0(this.menuItem_5, Delegate257.delegate257_0);
			this.bool_1 = Delegate257.smethod_0(this.menuItem_3, Delegate257.delegate257_0);
			Delegate68.smethod_0(this.menuItem_0, new RoutedEventHandler(this.method_21), Delegate68.delegate68_0);
			Delegate68.smethod_0(this.menuItem_1, new RoutedEventHandler(this.method_21), Delegate68.delegate68_0);
			Delegate68.smethod_0(this.menuItem_2, new RoutedEventHandler(this.method_21), Delegate68.delegate68_0);
			Delegate68.smethod_0(this.menuItem_3, new RoutedEventHandler(this.method_21), Delegate68.delegate68_0);
			Delegate68.smethod_0(this.menuItem_4, new RoutedEventHandler(this.method_21), Delegate68.delegate68_0);
			Delegate68.smethod_0(this.menuItem_5, new RoutedEventHandler(this.method_21), Delegate68.delegate68_0);
			Delegate68.smethod_0(this.mnuServerNode, new RoutedEventHandler(this.method_21), Delegate68.delegate68_0);
			Delegate68.smethod_0(this.menuItem_6, new RoutedEventHandler(this.method_21), Delegate68.delegate68_0);
			Delegate68.smethod_0(this.menuItem_7, new RoutedEventHandler(this.method_21), Delegate68.delegate68_0);
			Delegate68.smethod_0(this.menuItem_10, new RoutedEventHandler(this.method_21), Delegate68.delegate68_0);
			Delegate68.smethod_0(this.menuItem_12, new RoutedEventHandler(this.method_21), Delegate68.delegate68_0);
			Delegate68.smethod_0(this.menuItem_13, new RoutedEventHandler(this.method_21), Delegate68.delegate68_0);
			Delegate68.smethod_0(this.menuItem_14, new RoutedEventHandler(this.method_21), Delegate68.delegate68_0);
			Delegate68.smethod_0(this.menuItem_8, new RoutedEventHandler(this.method_21), Delegate68.delegate68_0);
			Delegate68.smethod_0(this.menuItem_9, new RoutedEventHandler(this.method_21), Delegate68.delegate68_0);
			Delegate67.smethod_0(Delegate66.smethod_0(Delegate258.smethod_0(this, Delegate258.delegate258_0), Delegate66.delegate66_0), this.menuItem_0, Delegate67.delegate67_0);
			Delegate67.smethod_0(Delegate66.smethod_0(Delegate258.smethod_0(this, Delegate258.delegate258_0), Delegate66.delegate66_0), this.menuItem_3, Delegate67.delegate67_0);
			Delegate67.smethod_0(Delegate66.smethod_0(Delegate258.smethod_0(this, Delegate258.delegate258_0), Delegate66.delegate66_0), this.menuItem_2, Delegate67.delegate67_0);
			Delegate67.smethod_0(Delegate66.smethod_0(Delegate258.smethod_0(this, Delegate258.delegate258_0), Delegate66.delegate66_0), this.menuItem_4, Delegate67.delegate67_0);
			Delegate67.smethod_0(Delegate66.smethod_0(Delegate258.smethod_0(this, Delegate258.delegate258_0), Delegate66.delegate66_0), this.menuItem_5, Delegate67.delegate67_0);
			Delegate67.smethod_0(Delegate66.smethod_0(Delegate258.smethod_0(this, Delegate258.delegate258_0), Delegate66.delegate66_0), new Separator(), Delegate67.delegate67_0);
			Delegate67.smethod_0(Delegate66.smethod_0(Delegate258.smethod_0(this, Delegate258.delegate258_0), Delegate66.delegate66_0), this.mnuServerNode, Delegate67.delegate67_0);
			Delegate67.smethod_0(Delegate66.smethod_0(Delegate258.smethod_0(this, Delegate258.delegate258_0), Delegate66.delegate66_0), this.menuItem_6, Delegate67.delegate67_0);
			Delegate67.smethod_0(Delegate66.smethod_0(Delegate258.smethod_0(this, Delegate258.delegate258_0), Delegate66.delegate66_0), new Separator(), Delegate67.delegate67_0);
			Delegate67.smethod_0(Delegate66.smethod_0(Delegate258.smethod_0(this, Delegate258.delegate258_0), Delegate66.delegate66_0), this.menuItem_7, Delegate67.delegate67_0);
			Delegate67.smethod_0(Delegate66.smethod_0(Delegate258.smethod_0(this, Delegate258.delegate258_0), Delegate66.delegate66_0), this.menuItem_9, Delegate67.delegate67_0);
			Delegate67.smethod_0(Delegate66.smethod_0(Delegate258.smethod_0(this, Delegate258.delegate258_0), Delegate66.delegate66_0), this.menuItem_8, Delegate67.delegate67_0);
			Delegate67.smethod_0(Delegate66.smethod_0(Delegate258.smethod_0(this, Delegate258.delegate258_0), Delegate66.delegate66_0), new Separator(), Delegate67.delegate67_0);
			Delegate67.smethod_0(Delegate66.smethod_0(Delegate258.smethod_0(this, Delegate258.delegate258_0), Delegate66.delegate66_0), this.menuItem_10, Delegate67.delegate67_0);
			Delegate67.smethod_0(Delegate66.smethod_0(Delegate259.smethod_0(this.grdSlaveAccounts, Delegate259.delegate259_0), Delegate66.delegate66_0), new Separator(), Delegate67.delegate67_0);
			Delegate67.smethod_0(Delegate66.smethod_0(Delegate259.smethod_0(this.grdSlaveAccounts, Delegate259.delegate259_0), Delegate66.delegate66_0), this.menuItem_12, Delegate67.delegate67_0);
			Delegate67.smethod_0(Delegate66.smethod_0(Delegate259.smethod_0(this.grdNodes, Delegate259.delegate259_0), Delegate66.delegate66_0), new Separator(), Delegate67.delegate67_0);
			Delegate67.smethod_0(Delegate66.smethod_0(Delegate259.smethod_0(this.grdNodes, Delegate259.delegate259_0), Delegate66.delegate66_0), this.menuItem_13, Delegate67.delegate67_0);
			Delegate67.smethod_0(Delegate66.smethod_0(Delegate259.smethod_0(this.grdInternetNodes, Delegate259.delegate259_0), Delegate66.delegate66_0), new Separator(), Delegate67.delegate67_0);
			Delegate67.smethod_0(Delegate66.smethod_0(Delegate259.smethod_0(this.grdInternetNodes, Delegate259.delegate259_0), Delegate66.delegate66_0), this.menuItem_14, Delegate67.delegate67_0);
			NTMenuItem ntmenuItem16 = new NTMenuItem();
			Delegate250.smethod_0(ntmenuItem16, true, Delegate250.delegate250_0);
			Delegate253.smethod_0(ntmenuItem16, false, Delegate253.delegate253_0);
			Delegate61.smethod_0(ntmenuItem16, "Log", Delegate61.delegate61_0);
			Delegate64.smethod_0(ntmenuItem16, Delegate63.smethod_0(Delegate62.smethod_0(Delegate62.delegate62_0), "MainMenuItem", Delegate63.delegate63_0) as Style, Delegate64.delegate64_0);
			this.menuItem_11 = ntmenuItem16;
			Delegate261.smethod_0(Delegate260.smethod_0(this, Delegate260.delegate260_0), new CommandBinding(ReplikantoCommands.SlaveAccountCheckedLeftClick, new ExecutedRoutedEventHandler(this.method_112)), Delegate261.delegate261_0);
			Delegate261.smethod_0(Delegate260.smethod_0(this, Delegate260.delegate260_0), new CommandBinding(ReplikantoCommands.SlaveAccountCrossOrderLeftClick, new ExecutedRoutedEventHandler(this.method_113)), Delegate261.delegate261_0);
			Delegate261.smethod_0(Delegate260.smethod_0(this, Delegate260.delegate260_0), new CommandBinding(ReplikantoCommands.SlaveAccountUseATMLeftClick, new ExecutedRoutedEventHandler(this.method_114)), Delegate261.delegate261_0);
			Delegate261.smethod_0(Delegate260.smethod_0(this, Delegate260.delegate260_0), new CommandBinding(ReplikantoCommands.SlaveAccountMarketOnlyLeftClick, new ExecutedRoutedEventHandler(this.method_115)), Delegate261.delegate261_0);
			Delegate261.smethod_0(Delegate260.smethod_0(this, Delegate260.delegate260_0), new CommandBinding(ReplikantoCommands.NetworkFollowerCheckedLeftClick, new ExecutedRoutedEventHandler(this.method_116)), Delegate261.delegate261_0);
			Delegate261.smethod_0(Delegate260.smethod_0(this, Delegate260.delegate260_0), new CommandBinding(ReplikantoCommands.RemoteFollowerCheckedLeftClick, new ExecutedRoutedEventHandler(this.method_117)), Delegate261.delegate261_0);
			Delegate261.smethod_0(Delegate260.smethod_0(this, Delegate260.delegate260_0), new CommandBinding(ReplikantoCommands.FlatAccountLeftClick, new ExecutedRoutedEventHandler(this.method_118)), Delegate261.delegate261_0);
			this.bindingList_0 = new BindingList<SlaveAccount>();
			this.concurrentDictionary_0 = new ConcurrentDictionary<string, SlaveAccountSavedStatus>();
			this.replikantoCrossOrderRelationship_0 = new ReplikantoCrossOrderRelationship();
			this.observableCollection_0 = new ObservableCollection<Node>();
			this.observableCollection_1 = new ObservableCollection<InternetNode>();
			if (this.cbxInstruments != null)
			{
				Delegate262.smethod_0(this.cbxInstruments, new CancelEventHandler(this.method_30), Delegate262.delegate262_0);
			}
			Delegate263.smethod_0(new EventHandler<ConnectionStatusEventArgs>(this.method_34), Delegate263.delegate263_0);
			Delegate264.smethod_0(new EventHandler<AccountStatusEventArgs>(this.method_33), Delegate264.delegate264_0);
			try
			{
				EventInfo eventInfo = Delegate265.smethod_0(Delegate45.smethod_0(typeof(Connection).TypeHandle, Delegate45.delegate45_0), "ServerAtmStrategyUpdate", Delegate265.delegate265_0);
				if (Delegate266.smethod_0(eventInfo, null, Delegate266.delegate266_0))
				{
					Type type = Delegate267.smethod_0(eventInfo, Delegate267.delegate267_0);
					MethodInfo methodInfo = Delegate80.smethod_0(Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), "OnServerATMStrategyUpdate", BindingFlags.Instance | BindingFlags.NonPublic, Delegate80.delegate80_0);
					if (Delegate268.smethod_0(methodInfo, null, Delegate268.delegate268_0))
					{
						Delegate @delegate = Delegate269.smethod_0(type, this, methodInfo, Delegate269.emdvSgXjud);
						MethodInfo methodInfo2 = Delegate270.smethod_0(eventInfo, Delegate270.delegate270_0);
						object[] array2 = new object[] { @delegate };
						methodInfo2.Invoke(this, array2);
						Delegate34.smethod_0("Replikanto: Server Atm Strategy added strategy update event", 1, Delegate34.delegate34_0);
					}
				}
			}
			catch (Exception ex)
			{
				Delegate34.smethod_0(Delegate32.smethod_0("Replikanto: ServerAtmStrategyUpdate Add Error. {0}", ex, Delegate32.delegate32_0), 3, Delegate34.delegate34_0);
			}
			Delegate271.smethod_0(this.grdSlaveAccounts, this.bindingList_0, Delegate271.delegate271_0);
			Delegate271.smethod_0(this.grdNodes, this.observableCollection_0, Delegate271.delegate271_0);
			Delegate272.smethod_0(this.grdNodes, new EventHandler<RecordUpdatedEventArgs>(this.method_13), Delegate272.delegate272_0);
			Delegate273.smethod_0(this.grdNodes, new EventHandler<RecordsDeletedEventArgs>(this.method_14), Delegate273.delegate273_0);
			Delegate271.smethod_0(this.grdInternetNodes, this.observableCollection_1, Delegate271.delegate271_0);
			Delegate273.smethod_0(this.grdInternetNodes, new EventHandler<RecordsDeletedEventArgs>(this.method_12), Delegate273.delegate273_0);
			Delegate272.smethod_0(this.grdInternetNodes, new EventHandler<RecordUpdatedEventArgs>(this.method_11), Delegate272.delegate272_0);
			this.communicatorBroker_0 = CommunicatorFactory.Create(false, "Page").Result;
			this.communicatorBroker_0.MessageReceived += this.method_15;
			this.communicatorBroker_0.Error += this.method_107;
			this.communicatorBroker_0.Connected += this.method_104;
			this.communicatorBroker_0.Connecting += this.method_105;
			this.communicatorBroker_0.Disconnected += this.method_106;
			try
			{
				this.epBfwErgBr = NetworkFactory.Create();
				this.epBfwErgBr.Port = this.ReplikantoProperties.NetworkPort;
				Delegate256.smethod_0(this.ReplikantoProperties, new PropertyChangedEventHandler(this.method_119), Delegate256.delegate256_0);
				this.epBfwErgBr.MessageReceived += this.method_16;
				this.epBfwErgBr.InstrumentReceived += this.method_120;
			}
			catch (Exception ex2)
			{
				Delegate34.smethod_0(Delegate33.smethod_0("Replikanto: ", Delegate31.smethod_0(ex2, Delegate31.delegate31_0), Delegate33.delegate33_0), 3, Delegate34.delegate34_0);
				Delegate274.smethod_0(this, Delegate274.delegate274_0).InvokeAsync<bool>(new Func<bool>(this.method_121));
			}
			Delegate275.smethod_0(new EventHandler(this.method_4), Delegate275.delegate275_0);
			Delegate276.smethod_0(this.timer_0, new ElapsedEventHandler(this.QwpRlTrwi4), Delegate276.delegate276_0);
			Delegate276.smethod_0(this.timer_1, new ElapsedEventHandler(this.method_35), Delegate276.delegate276_0);
			Delegate276.smethod_0(this.timer_2, new ElapsedEventHandler(this.method_52), Delegate276.delegate276_0);
			if (!Delegate198.smethod_0(Delegate197.smethod_0(Delegate197.delegate197_0), Delegate198.delegate198_0))
			{
				Delegate274.smethod_0(this, Delegate274.delegate274_0).InvokeAsync<bool>(new Func<bool>(this.method_122));
			}
			this.method_10();
		}

		private void OnServerATMStrategyUpdate(object sender, EventArgs e)
		{
			ReplikantoTabPage.<>c__DisplayClass82_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass82_0();
			CS$<>8__locals1.eventArgs_0 = e;
			if (this.Account == null || this.replikantoMode_0 != ReplikantoMode.LEADER_MODE)
			{
				return;
			}
			Instrument instrument = CS$<>8__locals1.method_0<Instrument>("Instrument");
			Account account = CS$<>8__locals1.method_0<Account>("Account");
			if (instrument != null && account != null)
			{
				if (Delegate225.smethod_0(account, Delegate225.delegate225_0) == Delegate225.smethod_0(this.Account, Delegate225.delegate225_0))
				{
					if (Delegate186.smethod_0(instrument, Delegate186.delegate186_0) == Delegate186.smethod_0(this.Instrument, Delegate186.delegate186_0))
					{
						long num = CS$<>8__locals1.method_0<long>("StrategyId");
						CS$<>8__locals1.string_0 = CS$<>8__locals1.method_0<string>("OrderId");
						bool flag = CS$<>8__locals1.method_0<Operation>("Operation") != null;
						int num2 = CS$<>8__locals1.method_0<int>("Status");
						if (!flag && !this.concurrentDictionary_5.ContainsKey(num))
						{
							ServerStrategy serverStrategy = new ServerStrategy();
							this.concurrentDictionary_5.TryAdd(num, serverStrategy);
						}
						if (num2 == 0 && !Delegate44.smethod_0(CS$<>8__locals1.string_0, Delegate44.delegate44_0))
						{
							Order order = Delegate277.smethod_0(account, Delegate277.delegate277_0).FirstOrDefault(new Func<Order, bool>(CS$<>8__locals1.method_1));
							ServerStrategy serverStrategy2;
							if (order != null && this.concurrentDictionary_5.TryGetValue(num, out serverStrategy2))
							{
								serverStrategy2.AddOrder(ReplikantoOrder.Parse(order), false);
							}
						}
						ServerStrategy serverStrategy3;
						if (num2 != 0 && num2 != 4 && this.concurrentDictionary_5.TryRemove(num, out serverStrategy3) && serverStrategy3 != null)
						{
							serverStrategy3.Clear();
						}
						return;
					}
				}
				return;
			}
		}

		private void method_4(object sender, EventArgs e)
		{
			this.method_39(null);
		}

		private void method_5(object sender, PropertyChangedEventArgs e)
		{
			try
			{
				if (Delegate102.smethod_0(Delegate278.smethod_0(e, Delegate278.delegate278_0), "AlwaysOnTop", Delegate102.delegate102_0))
				{
					Delegate253.smethod_0(this.menuItem_0, Delegate279.smethod_0(this.ReplikantoProperties, Delegate279.delegate279_0), Delegate253.delegate253_0);
					NTWindow ntwindow = (NTWindow)Delegate280.smethod_0(this, Delegate280.delegate280_0);
					if (ntwindow != null)
					{
						Delegate281.smethod_0(ntwindow, Delegate279.smethod_0(this.ReplikantoProperties, Delegate279.delegate279_0), Delegate281.delegate281_0);
					}
				}
				else if (!Delegate102.smethod_0(Delegate278.smethod_0(e, Delegate278.delegate278_0), "AreTabsVisible", Delegate102.delegate102_0))
				{
					if (!Delegate102.smethod_0(Delegate278.smethod_0(e, Delegate278.delegate278_0), "TabName", Delegate102.delegate102_0))
					{
						if (Delegate102.smethod_0(Delegate278.smethod_0(e, Delegate278.delegate278_0), "OnlyActiveWokspace", Delegate102.delegate102_0))
						{
							using (List<SlaveAccount>.Enumerator enumerator = this.bindingList_0.ToList<SlaveAccount>().GetEnumerator())
							{
								while (enumerator.MoveNext())
								{
									SlaveAccount slaveAccount = enumerator.Current;
									if (!this.method_103(this.Account, slaveAccount, this.Instrument, this.CrossOrderInstrument))
									{
										slaveAccount.Status = FollowerAccountStatus.Off;
									}
								}
								goto IL_0975;
							}
						}
						if (Delegate102.smethod_0(Delegate278.smethod_0(e, Delegate278.delegate278_0), "ConnectionColumn", Delegate102.delegate102_0))
						{
							if (((ReplikantoProperties)sender).ConnectionColumn)
							{
								Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "Connection", Delegate286.delegate286_0), Visibility.Visible, Delegate287.delegate287_0);
								goto IL_0975;
							}
							Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "Connection", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
							goto IL_0975;
						}
						else
						{
							if (Delegate102.smethod_0(Delegate278.smethod_0(e, Delegate278.delegate278_0), "SideColumn", Delegate102.delegate102_0))
							{
								if (((ReplikantoProperties)sender).SideColumn)
								{
									Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "Side", Delegate286.delegate286_0), Visibility.Visible, Delegate287.delegate287_0);
									using (List<SlaveAccount>.Enumerator enumerator = this.bindingList_0.ToList<SlaveAccount>().GetEnumerator())
									{
										while (enumerator.MoveNext())
										{
											SlaveAccount slaveAccount2 = enumerator.Current;
											if (slaveAccount2 != null)
											{
												slaveAccount2.RefreshPnL(false);
											}
										}
										goto IL_0975;
									}
								}
								Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "Side", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
								goto IL_0975;
							}
							if (Delegate102.smethod_0(Delegate278.smethod_0(e, Delegate278.delegate278_0), "QuantityColumn", Delegate102.delegate102_0))
							{
								if (!((ReplikantoProperties)sender).QuantityColumn)
								{
									Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "Quantity", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
									goto IL_0975;
								}
								Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "Quantity", Delegate286.delegate286_0), Visibility.Visible, Delegate287.delegate287_0);
								using (List<SlaveAccount>.Enumerator enumerator = this.bindingList_0.ToList<SlaveAccount>().GetEnumerator())
								{
									while (enumerator.MoveNext())
									{
										SlaveAccount slaveAccount3 = enumerator.Current;
										if (slaveAccount3 != null)
										{
											slaveAccount3.RefreshPnL(false);
										}
									}
									goto IL_0975;
								}
							}
							if (Delegate102.smethod_0(Delegate278.smethod_0(e, Delegate278.delegate278_0), "AveragePriceColumn", Delegate102.delegate102_0))
							{
								if (((ReplikantoProperties)sender).AveragePriceColumn)
								{
									Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "AveragePrice", Delegate286.delegate286_0), Visibility.Visible, Delegate287.delegate287_0);
									using (List<SlaveAccount>.Enumerator enumerator = this.bindingList_0.ToList<SlaveAccount>().GetEnumerator())
									{
										while (enumerator.MoveNext())
										{
											SlaveAccount slaveAccount4 = enumerator.Current;
											if (slaveAccount4 != null)
											{
												slaveAccount4.RefreshPnL(false);
											}
										}
										goto IL_0975;
									}
								}
								Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "AveragePrice", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
								goto IL_0975;
							}
							if (!Delegate102.smethod_0(Delegate278.smethod_0(e, Delegate278.delegate278_0), "PnLColumn", Delegate102.delegate102_0))
							{
								if (Delegate102.smethod_0(Delegate278.smethod_0(e, Delegate278.delegate278_0), "CashValueColumn", Delegate102.delegate102_0))
								{
									if (((ReplikantoProperties)sender).CashValueColumn)
									{
										Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "CashValue", Delegate286.delegate286_0), Visibility.Visible, Delegate287.delegate287_0);
										goto IL_0975;
									}
									Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "CashValue", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
									goto IL_0975;
								}
								else if (Delegate102.smethod_0(Delegate278.smethod_0(e, Delegate278.delegate278_0), "DescriptionNodeColumn", Delegate102.delegate102_0))
								{
									if (!((ReplikantoProperties)sender).DescriptionNodeColumn)
									{
										Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdNodes, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "Description", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
										goto IL_0975;
									}
									Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdNodes, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "Description", Delegate286.delegate286_0), Visibility.Visible, Delegate287.delegate287_0);
									goto IL_0975;
								}
								else if (!Delegate102.smethod_0(Delegate278.smethod_0(e, Delegate278.delegate278_0), "DescriptionInternetNodeColumn", Delegate102.delegate102_0))
								{
									if (Delegate102.smethod_0(Delegate278.smethod_0(e, Delegate278.delegate278_0), "LeaderReplikantoID", Delegate102.delegate102_0) || Delegate102.smethod_0(Delegate278.smethod_0(e, Delegate278.delegate278_0), "LeaderAccountName", Delegate102.delegate102_0))
									{
										this.method_10();
										goto IL_0975;
									}
									if (Delegate102.smethod_0(Delegate278.smethod_0(e, Delegate278.delegate278_0), "WindowTitle", Delegate102.delegate102_0))
									{
										Delegate37.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(this.method_123), Delegate37.delegate37_0);
										goto IL_0975;
									}
									if (Delegate102.smethod_0(Delegate278.smethod_0(e, Delegate278.delegate278_0), "DisarmFollowers", Delegate102.delegate102_0))
									{
										Delegate253.smethod_0(this.menuItem_4, this.ReplikantoProperties.DisarmFollowers, Delegate253.delegate253_0);
										Delegate34.smethod_0(Delegate288.smethod_0(new string[]
										{
											"Replikanto: Disarm followers is ",
											Delegate257.smethod_0(this.menuItem_4, Delegate257.delegate257_0) ? "set" : "unset",
											" from tab '",
											this.UniqueID,
											"' workspace '",
											this.string_2,
											"'"
										}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
										goto IL_0975;
									}
									goto IL_0975;
								}
								else
								{
									if (((ReplikantoProperties)sender).DescriptionInternetNodeColumn)
									{
										Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdInternetNodes, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "Description", Delegate286.delegate286_0), Visibility.Visible, Delegate287.delegate287_0);
										goto IL_0975;
									}
									Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdInternetNodes, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "Description", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
									goto IL_0975;
								}
							}
							else
							{
								if (!((ReplikantoProperties)sender).Boolean_0)
								{
									Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "PnLValue", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
									goto IL_0975;
								}
								Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "PnLValue", Delegate286.delegate286_0), Visibility.Visible, Delegate287.delegate287_0);
								using (List<SlaveAccount>.Enumerator enumerator = this.bindingList_0.ToList<SlaveAccount>().GetEnumerator())
								{
									while (enumerator.MoveNext())
									{
										SlaveAccount slaveAccount5 = enumerator.Current;
										if (slaveAccount5 != null)
										{
											slaveAccount5.RefreshPnL(false);
										}
									}
									goto IL_0975;
								}
							}
						}
					}
					Delegate246.smethod_0(this, this.ReplikantoProperties.TabName, Delegate246.delegate246_0);
				}
				else
				{
					NTWindow ntwindow2 = (NTWindow)Delegate280.smethod_0(this, Delegate280.delegate280_0);
					if (ntwindow2 != null)
					{
						Delegate282.smethod_0(ntwindow2, this.ReplikantoProperties.AreTabsVisible, Delegate282.delegate282_0);
					}
				}
				IL_0975:;
			}
			catch (Exception)
			{
			}
		}

		private void method_6(object sender, FieldLayoutInitializedEventArgs e)
		{
			if (!this.ReplikantoProperties.ConnectionColumn)
			{
				try
				{
					Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate289.smethod_0(e, Delegate289.delegate289_0), Delegate285.delegate285_0), "Connection", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				}
				catch
				{
				}
			}
			if (!this.ReplikantoProperties.SideColumn)
			{
				try
				{
					Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate289.smethod_0(e, Delegate289.delegate289_0), Delegate285.delegate285_0), "Side", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				}
				catch
				{
				}
			}
			if (!this.ReplikantoProperties.QuantityColumn)
			{
				try
				{
					Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate289.smethod_0(e, Delegate289.delegate289_0), Delegate285.delegate285_0), "Quantity", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				}
				catch
				{
				}
			}
			if (!this.ReplikantoProperties.AveragePriceColumn)
			{
				try
				{
					Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate289.smethod_0(e, Delegate289.delegate289_0), Delegate285.delegate285_0), "AveragePrice", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				}
				catch
				{
				}
			}
			if (!this.ReplikantoProperties.Boolean_0)
			{
				try
				{
					Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate289.smethod_0(e, Delegate289.delegate289_0), Delegate285.delegate285_0), "PnLValue", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				}
				catch
				{
				}
			}
			if (!this.ReplikantoProperties.CashValueColumn && this.Method != EnumMethod.AvailableCash)
			{
				try
				{
					Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate289.smethod_0(e, Delegate289.delegate289_0), Delegate285.delegate285_0), "CashValue", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				}
				catch
				{
				}
			}
		}

		private void method_7(object sender, FieldLayoutInitializedEventArgs e)
		{
			if (!this.ReplikantoProperties.DescriptionNodeColumn)
			{
				try
				{
					Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate289.smethod_0(e, Delegate289.delegate289_0), Delegate285.delegate285_0), "Description", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				}
				catch
				{
				}
			}
		}

		private void method_8(object sender, FieldLayoutInitializedEventArgs e)
		{
			if (!this.ReplikantoProperties.DescriptionInternetNodeColumn)
			{
				try
				{
					Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate289.smethod_0(e, Delegate289.delegate289_0), Delegate285.delegate285_0), "Description", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				}
				catch
				{
				}
			}
		}

		private void method_9(object sender, PropertyValueChangedEventArgs e)
		{
		}

		private void method_10()
		{
			if (this.replikantoMode_0 != ReplikantoMode.INTERNET_MODE)
			{
				if (this.replikantoMode_0 != ReplikantoMode.NETWORK_MODE)
				{
					Delegate290.smethod_0(this.spLeaderFilter, Visibility.Collapsed, Delegate290.delegate290_0);
					return;
				}
			}
			if (Delegate44.smethod_0(this.ReplikantoProperties.LeaderReplikantoID, Delegate44.delegate44_0) && Delegate44.smethod_0(this.ReplikantoProperties.LeaderAccountName, Delegate44.delegate44_0))
			{
				Delegate290.smethod_0(this.spLeaderFilter, Visibility.Collapsed, Delegate290.delegate290_0);
				return;
			}
			Delegate290.smethod_0(this.spLeaderFilter, Visibility.Visible, Delegate290.delegate290_0);
		}

		public override void OnProperties(object sender, RoutedEventArgs e)
		{
			try
			{
				string text = Delegate86.smethod_0(((object[])sender)[0], Delegate86.delegate86_0);
				this.method_23(text);
			}
			catch (Exception ex)
			{
				Delegate34.smethod_0(Delegate33.smethod_0("Replikanto: Error on opening Replikanto Properties Window. ", Delegate31.smethod_0(ex, Delegate31.delegate31_0), Delegate33.delegate33_0), 3, Delegate34.delegate34_0);
			}
		}

		private void method_11(object sender, RecordUpdatedEventArgs e)
		{
			ReplikantoTabPage.<GrdInternetNodes_RecordUpdated>d__91 <GrdInternetNodes_RecordUpdated>d__;
			<GrdInternetNodes_RecordUpdated>d__.<>t__builder = Delegate40.smethod_0(Delegate40.delegate40_0);
			<GrdInternetNodes_RecordUpdated>d__.<>4__this = this;
			<GrdInternetNodes_RecordUpdated>d__.e = e;
			<GrdInternetNodes_RecordUpdated>d__.<>1__state = -1;
			<GrdInternetNodes_RecordUpdated>d__.<>t__builder.Start<ReplikantoTabPage.<GrdInternetNodes_RecordUpdated>d__91>(ref <GrdInternetNodes_RecordUpdated>d__);
		}

		private void method_12(object sender, RecordsDeletedEventArgs e)
		{
			ReplikantoTabPage.<GrdInternetNodes_RecordsDeleted>d__92 <GrdInternetNodes_RecordsDeleted>d__;
			<GrdInternetNodes_RecordsDeleted>d__.<>t__builder = Delegate40.smethod_0(Delegate40.delegate40_0);
			<GrdInternetNodes_RecordsDeleted>d__.<>4__this = this;
			<GrdInternetNodes_RecordsDeleted>d__.<>1__state = -1;
			<GrdInternetNodes_RecordsDeleted>d__.<>t__builder.Start<ReplikantoTabPage.<GrdInternetNodes_RecordsDeleted>d__92>(ref <GrdInternetNodes_RecordsDeleted>d__);
		}

		private void method_13(object sender, RecordUpdatedEventArgs e)
		{
			try
			{
				DataRecord dataRecord = Delegate291.smethod_0(e, Delegate291.delegate291_0);
				Node node = (Node)((dataRecord == null) ? null : Delegate292.smethod_0(dataRecord, Delegate292.delegate292_0));
				if (this.observableCollection_0.IndexOf(node) == this.observableCollection_0.Count - 1)
				{
					Delegate293.smethod_0(node, new PropertyChangedEventHandler(this.method_45), Delegate293.delegate293_0);
					Delegate256.smethod_0(node, new PropertyChangedEventHandler(this.method_45), Delegate256.delegate256_0);
					if (node.Status == NodeStatus.Away)
					{
						node.Status = NodeStatus.Online;
					}
				}
				else
				{
					this.observableCollection_0.RemoveAt(this.observableCollection_0.Count - 1);
				}
			}
			catch
			{
			}
		}

		private void method_14(object sender, RecordsDeletedEventArgs e)
		{
			if (!this.observableCollection_0.Any(new Func<Node, bool>(ReplikantoTabPage.<>c.<>c_0.method_1)))
			{
				Delegate274.smethod_0(this, Delegate274.delegate274_0).InvokeAsync<Brush>(new Func<Brush>(this.method_125));
			}
		}

		private void method_15(JObject jobject_0, LeaderOrderSource leaderOrderSource_0)
		{
			ReplikantoTabPage.<>c__DisplayClass95_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass95_0();
			CS$<>8__locals1.replikantoTabPage_0 = this;
			CS$<>8__locals1.leaderOrderSource_0 = leaderOrderSource_0;
			if (jobject_0.ContainsKey("action"))
			{
				string text = (string)jobject_0["action"];
				if (!Delegate102.smethod_0(text, "trade", Delegate102.delegate102_0))
				{
					if (!Delegate102.smethod_0(text, "node_info", Delegate102.delegate102_0))
					{
						if (!Delegate102.smethod_0(text, "credit", Delegate102.delegate102_0))
						{
							if (!Delegate102.smethod_0(text, "node_status", Delegate102.delegate102_0) || this.replikantoMode_0 != ReplikantoMode.LEADER_MODE)
							{
								return;
							}
							bool flag = false;
							IEnumerator<JToken> enumerator = ((JArray)jobject_0["nodes_status"]).GetEnumerator();
							try
							{
								while (Delegate38.smethod_0(enumerator, Delegate38.delegate38_0))
								{
									object obj = enumerator.Current;
									ReplikantoTabPage.<>c__DisplayClass95_9 CS$<>8__locals2 = new ReplikantoTabPage.<>c__DisplayClass95_9();
									ReplikantoTabPage.<>c__DisplayClass95_9 CS$<>8__locals3 = CS$<>8__locals2;
									if (ReplikantoTabPage.<>o__95.callSite_7 == null)
									{
										ReplikantoTabPage.<>o__95.callSite_7 = CallSite<Func<CallSite, object, string>>.Create(Delegate296.smethod_0(CSharpBinderFlags.None, Delegate45.smethod_0(typeof(string).TypeHandle, Delegate45.delegate45_0), Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), Delegate296.delegate296_0));
									}
									Func<CallSite, object, string> target = ReplikantoTabPage.<>o__95.callSite_7.Target;
									CallSite callSite_ = ReplikantoTabPage.<>o__95.callSite_7;
									if (ReplikantoTabPage.<>o__95.callSite_6 == null)
									{
										ReplikantoTabPage.<>o__95.callSite_6 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate305.smethod_0(CSharpBinderFlags.None, Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
										{
											Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
											Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.Constant, null, Delegate297.delegate297_0)
										}, Delegate305.delegate305_0));
									}
									CS$<>8__locals3.string_0 = target(callSite_, ReplikantoTabPage.<>o__95.callSite_6.Target(ReplikantoTabPage.<>o__95.callSite_6, obj, "node"));
									if (this.observableCollection_1.Any(new Func<InternetNode, bool>(CS$<>8__locals2.method_0)))
									{
										flag = true;
									}
									if (ReplikantoTabPage.<>o__95.callSite_9 == null)
									{
										ReplikantoTabPage.<>o__95.callSite_9 = CallSite<Func<CallSite, object, string>>.Create(Delegate296.smethod_0(CSharpBinderFlags.None, Delegate45.smethod_0(typeof(string).TypeHandle, Delegate45.delegate45_0), Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), Delegate296.delegate296_0));
									}
									Func<CallSite, object, string> target2 = ReplikantoTabPage.<>o__95.callSite_9.Target;
									CallSite callSite_2 = ReplikantoTabPage.<>o__95.callSite_9;
									if (ReplikantoTabPage.<>o__95.callSite_8 == null)
									{
										ReplikantoTabPage.<>o__95.callSite_8 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate305.smethod_0(CSharpBinderFlags.None, Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
										{
											Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
											Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.Constant, null, Delegate297.delegate297_0)
										}, Delegate305.delegate305_0));
									}
									string text2 = target2(callSite_2, ReplikantoTabPage.<>o__95.callSite_8.Target(ReplikantoTabPage.<>o__95.callSite_8, obj, "status"));
									if (!Delegate102.smethod_0(text2, "error", Delegate102.delegate102_0))
									{
										if (Delegate307.smethod_0(text2, "sent", Delegate307.delegate307_0))
										{
											InternetNode internetNode = this.observableCollection_1.FirstOrDefault(new Func<InternetNode, bool>(CS$<>8__locals2.method_2));
											if (internetNode != null && internetNode.Status == NodeStatus.Away)
											{
												internetNode.Status = NodeStatus.Online;
											}
											this.method_82(CS$<>8__locals2.string_0, Delegate308.smethod_0(Delegate308.delegate308_0));
										}
									}
									else
									{
										if (ReplikantoTabPage.<>o__95.callSite_10 == null)
										{
											ReplikantoTabPage.<>o__95.callSite_10 = CallSite<Func<CallSite, object, string>>.Create(Delegate296.smethod_0(CSharpBinderFlags.None, Delegate45.smethod_0(typeof(string).TypeHandle, Delegate45.delegate45_0), Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), Delegate296.delegate296_0));
										}
										Func<CallSite, object, string> target3 = ReplikantoTabPage.<>o__95.callSite_10.Target;
										CallSite callSite_3 = ReplikantoTabPage.<>o__95.callSite_10;
										if (ReplikantoTabPage.<>o__95.zIoJggwgb5 == null)
										{
											ReplikantoTabPage.<>o__95.zIoJggwgb5 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate305.smethod_0(CSharpBinderFlags.None, Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
											{
												Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
												Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.Constant, null, Delegate297.delegate297_0)
											}, Delegate305.delegate305_0));
										}
										string text3 = target3(callSite_3, ReplikantoTabPage.<>o__95.zIoJggwgb5.Target(ReplikantoTabPage.<>o__95.zIoJggwgb5, obj, "msg"));
										Delegate34.smethod_0(Delegate303.smethod_0("Replikanto: Node ", CS$<>8__locals2.string_0, " did not receive the trade. ", text3, Delegate303.delegate303_0), 3, Delegate34.delegate34_0);
										InternetNode internetNode2 = this.observableCollection_1.FirstOrDefault(new Func<InternetNode, bool>(CS$<>8__locals2.method_1));
										if (internetNode2 != null && internetNode2.Status == NodeStatus.Online)
										{
											internetNode2.Status = NodeStatus.Away;
										}
										this.method_82(CS$<>8__locals2.string_0, Delegate306.smethod_0(Delegate306.delegate306_0));
									}
								}
							}
							finally
							{
								if (enumerator != null)
								{
									Delegate39.smethod_0(enumerator, Delegate39.delegate39_0);
								}
							}
							object obj2 = jobject_0["credits"];
							if (ReplikantoTabPage.<>o__95.callSite_12 == null)
							{
								ReplikantoTabPage.<>o__95.callSite_12 = CallSite<Func<CallSite, object, bool>>.Create(Delegate296.smethod_0(CSharpBinderFlags.None, Delegate45.smethod_0(typeof(bool).TypeHandle, Delegate45.delegate45_0), Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), Delegate296.delegate296_0));
							}
							Func<CallSite, object, bool> target4 = ReplikantoTabPage.<>o__95.callSite_12.Target;
							CallSite callSite_4 = ReplikantoTabPage.<>o__95.callSite_12;
							if (ReplikantoTabPage.<>o__95.callSite_11 == null)
							{
								ReplikantoTabPage.<>o__95.callSite_11 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate305.smethod_0(CSharpBinderFlags.None, Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.Constant, null, Delegate297.delegate297_0)
								}, Delegate305.delegate305_0));
							}
							if (!target4(callSite_4, ReplikantoTabPage.<>o__95.callSite_11.Target(ReplikantoTabPage.<>o__95.callSite_11, obj2, "has_credits_changed")))
							{
								return;
							}
							uint num;
							try
							{
								if (ReplikantoTabPage.<>o__95.callSite_14 == null)
								{
									ReplikantoTabPage.<>o__95.callSite_14 = CallSite<Func<CallSite, object, uint>>.Create(Delegate296.smethod_0(CSharpBinderFlags.None, Delegate45.smethod_0(typeof(uint).TypeHandle, Delegate45.delegate45_0), Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), Delegate296.delegate296_0));
								}
								Func<CallSite, object, uint> target5 = ReplikantoTabPage.<>o__95.callSite_14.Target;
								CallSite callSite_5 = ReplikantoTabPage.<>o__95.callSite_14;
								if (ReplikantoTabPage.<>o__95.callSite_13 == null)
								{
									ReplikantoTabPage.<>o__95.callSite_13 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate305.smethod_0(CSharpBinderFlags.None, Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
									{
										Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
										Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.Constant, null, Delegate297.delegate297_0)
									}, Delegate305.delegate305_0));
								}
								num = target5(callSite_5, ReplikantoTabPage.<>o__95.callSite_13.Target(ReplikantoTabPage.<>o__95.callSite_13, obj2, "credits"));
							}
							catch
							{
								num = 0U;
							}
							if (num < this.ReplikantoProperties.Credits)
							{
								this.ReplikantoProperties.Credits = num;
							}
							if (flag)
							{
								this.method_29(num);
								return;
							}
							return;
						}
						else
						{
							JObject jobject = (JObject)jobject_0["payload"];
							try
							{
								this.method_108(jobject);
								string text4 = (string)jobject["status"];
								if (Delegate102.smethod_0("credited", text4, Delegate102.delegate102_0))
								{
									ReplikantoTabPage.<>c__DisplayClass95_8 CS$<>8__locals4 = new ReplikantoTabPage.<>c__DisplayClass95_8();
									CS$<>8__locals4.<>c__DisplayClass95_0_0 = CS$<>8__locals1;
									try
									{
										CS$<>8__locals4.uint_1 = (uint)jobject["credits"];
									}
									catch
									{
										CS$<>8__locals4.uint_1 = 0U;
									}
									CS$<>8__locals4.uint_0 = (uint)jobject["credit"];
									if (this.replikantoMode_0 == ReplikantoMode.LEADER_MODE)
									{
										Delegate37.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(CS$<>8__locals4.method_0), Delegate37.delegate37_0);
									}
								}
								return;
							}
							catch (Exception ex)
							{
								Delegate34.smethod_0(Delegate33.smethod_0("Replikanto: Error processing credit from wss api. ", Delegate31.smethod_0(ex, Delegate31.delegate31_0), Delegate33.delegate33_0), 3, Delegate34.delegate34_0);
								return;
							}
						}
					}
					JObject jobject2 = (JObject)jobject_0["payload"];
					try
					{
						this.method_108(jobject2);
						return;
					}
					catch (Exception ex2)
					{
						Delegate34.smethod_0(Delegate33.smethod_0("Replikanto: Error processing node_info from wss api. ", Delegate31.smethod_0(ex2, Delegate31.delegate31_0), Delegate33.delegate33_0), 3, Delegate34.delegate34_0);
						return;
					}
				}
				ReplikantoTabPage.<>c__DisplayClass95_1 CS$<>8__locals5 = new ReplikantoTabPage.<>c__DisplayClass95_1();
				CS$<>8__locals5.<>c__DisplayClass95_0_0 = CS$<>8__locals1;
				CS$<>8__locals5.string_0 = "any";
				try
				{
					ReplikantoTabPage.<>c__DisplayClass95_2 CS$<>8__locals6 = new ReplikantoTabPage.<>c__DisplayClass95_2();
					CS$<>8__locals6.<>c__DisplayClass95_1_0 = CS$<>8__locals5;
					if (this.replikantoMode_0 == ReplikantoMode.INTERNET_MODE && !Delegate274.smethod_0(this, Delegate274.delegate274_0).Invoke<bool>(new Func<bool>(CS$<>8__locals6.<>c__DisplayClass95_1_0.<>c__DisplayClass95_0_0.method_0)))
					{
						CS$<>8__locals6.string_0 = (string)jobject_0["replikanto_version"];
						if (Delegate295.smethod_0(Delegate294.smethod_0(CS$<>8__locals6.string_0, Delegate294.delegate294_0), new Version("1.4.0.2"), Delegate295.delegate295_0) >= 0)
						{
							object obj3 = jobject_0["payload"];
							ReplikantoOrder replikantoOrder = null;
							try
							{
								if (ReplikantoTabPage.<>o__95.callSite_1 == null)
								{
									ReplikantoTabPage.<>o__95.callSite_1 = CallSite<Func<CallSite, object, ReplikantoOrder>>.Create(Delegate296.smethod_0(CSharpBinderFlags.None, Delegate45.smethod_0(typeof(ReplikantoOrder).TypeHandle, Delegate45.delegate45_0), Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), Delegate296.delegate296_0));
								}
								Func<CallSite, object, ReplikantoOrder> target6 = ReplikantoTabPage.<>o__95.callSite_1.Target;
								CallSite callSite_6 = ReplikantoTabPage.<>o__95.callSite_1;
								if (ReplikantoTabPage.<>o__95.callSite_0 == null)
								{
									ReplikantoTabPage.<>o__95.callSite_0 = CallSite<Func<CallSite, object, object>>.Create(Delegate298.smethod_0(CSharpBinderFlags.None, "ToObject", new Type[] { Delegate45.smethod_0(typeof(ReplikantoOrder).TypeHandle, Delegate45.delegate45_0) }, Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[] { Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0) }, Delegate298.delegate298_0));
								}
								replikantoOrder = target6(callSite_6, ReplikantoTabPage.<>o__95.callSite_0.Target(ReplikantoTabPage.<>o__95.callSite_0, obj3));
							}
							catch (Exception ex3)
							{
								Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Unable to parser the trade received '{0}' tab '{1}' workspace '{2}'. {3}", new object[]
								{
									obj3,
									this.UniqueID,
									this.string_2,
									Delegate31.smethod_0(ex3, Delegate31.delegate31_0)
								}, Delegate55.delegate55_0), 3, Delegate34.delegate34_0);
								return;
							}
							if (this.Instrument != null && ((replikantoOrder == null) ? null : replikantoOrder.Instrument) != null)
							{
								long? num2 = ((replikantoOrder == null) ? null : new long?(Delegate186.smethod_0(replikantoOrder.Instrument, Delegate186.delegate186_0)));
								long num3 = Delegate186.smethod_0(this.Instrument, Delegate186.delegate186_0);
								if ((num2.GetValueOrDefault() == num3) & (num2 != null))
								{
									Delegate34.smethod_0(Delegate288.smethod_0(new string[]
									{
										"Replikanto: Trade received tab '",
										this.UniqueID,
										"' workspace '",
										this.string_2,
										"': \"",
										replikantoOrder.ToStringSimple(),
										"\""
									}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
									if (jobject_0.ContainsKey("replikanto_id"))
									{
										CS$<>8__locals6.<>c__DisplayClass95_1_0.string_0 = (string)jobject_0["replikanto_id"];
										if (!Delegate44.smethod_0(CS$<>8__locals6.<>c__DisplayClass95_1_0.string_0, Delegate44.delegate44_0) && !Delegate44.smethod_0(this.ReplikantoProperties.LeaderReplikantoID, Delegate44.delegate44_0))
										{
											object obj4 = Delegate237.smethod_0(CS$<>8__locals6.<>c__DisplayClass95_1_0.string_0, Delegate237.delegate237_0);
											string leaderReplikantoID = this.ReplikantoProperties.LeaderReplikantoID;
											if (!Delegate300.smethod_0(obj4, (leaderReplikantoID == null) ? null : Delegate299.smethod_0(leaderReplikantoID, Delegate299.delegate299_0), Delegate300.delegate300_0))
											{
												string[] array = new string[7];
												array[0] = "Replikanto: Trade received will be ignored because the Leader Replikanto ID does not match the ID ";
												int num4 = 1;
												string leaderReplikantoID2 = this.ReplikantoProperties.LeaderReplikantoID;
												array[num4] = ((leaderReplikantoID2 != null) ? Delegate299.smethod_0(leaderReplikantoID2, Delegate299.delegate299_0) : null);
												array[2] = " tab '";
												array[3] = this.UniqueID;
												array[4] = "' workspace '";
												array[5] = this.string_2;
												array[6] = "'";
												Delegate34.smethod_0(Delegate288.smethod_0(array, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
												return;
											}
										}
										else if (Delegate44.smethod_0(CS$<>8__locals6.<>c__DisplayClass95_1_0.string_0, Delegate44.delegate44_0))
										{
											CS$<>8__locals6.<>c__DisplayClass95_1_0.string_0 = "any";
										}
									}
									object obj5 = jobject_0["account"];
									ReplikantoAccount replikantoAccount = null;
									if (ReplikantoTabPage.<>o__95.callSite_3 == null)
									{
										ReplikantoTabPage.<>o__95.callSite_3 = CallSite<Func<CallSite, object, bool>>.Create(Delegate301.smethod_0(CSharpBinderFlags.None, ExpressionType.IsTrue, Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[] { Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0) }, Delegate301.delegate301_0));
									}
									Func<CallSite, object, bool> target7 = ReplikantoTabPage.<>o__95.callSite_3.Target;
									CallSite callSite_7 = ReplikantoTabPage.<>o__95.callSite_3;
									if (ReplikantoTabPage.<>o__95.callSite_2 == null)
									{
										ReplikantoTabPage.<>o__95.callSite_2 = CallSite<Func<CallSite, object, object, object>>.Create(Delegate302.smethod_0(CSharpBinderFlags.None, ExpressionType.NotEqual, Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
										{
											Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
											Delegate297.smethod_0(CSharpArgumentInfoFlags.Constant, null, Delegate297.delegate297_0)
										}, Delegate302.delegate302_0));
									}
									if (target7(callSite_7, ReplikantoTabPage.<>o__95.callSite_2.Target(ReplikantoTabPage.<>o__95.callSite_2, obj5, null)))
									{
										try
										{
											if (ReplikantoTabPage.<>o__95.callSite_5 == null)
											{
												ReplikantoTabPage.<>o__95.callSite_5 = CallSite<Func<CallSite, object, ReplikantoAccount>>.Create(Delegate296.smethod_0(CSharpBinderFlags.None, Delegate45.smethod_0(typeof(ReplikantoAccount).TypeHandle, Delegate45.delegate45_0), Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), Delegate296.delegate296_0));
											}
											Func<CallSite, object, ReplikantoAccount> target8 = ReplikantoTabPage.<>o__95.callSite_5.Target;
											CallSite callSite_8 = ReplikantoTabPage.<>o__95.callSite_5;
											if (ReplikantoTabPage.<>o__95.callSite_4 == null)
											{
												ReplikantoTabPage.<>o__95.callSite_4 = CallSite<Func<CallSite, object, object>>.Create(Delegate298.smethod_0(CSharpBinderFlags.None, "ToObject", new Type[] { Delegate45.smethod_0(typeof(ReplikantoAccount).TypeHandle, Delegate45.delegate45_0) }, Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[] { Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0) }, Delegate298.delegate298_0));
											}
											replikantoAccount = target8(callSite_8, ReplikantoTabPage.<>o__95.callSite_4.Target(ReplikantoTabPage.<>o__95.callSite_4, obj5));
										}
										catch
										{
										}
										replikantoOrder.ReplikantoAccount = replikantoAccount;
										if ((!Delegate44.smethod_0((replikantoAccount == null) ? null : replikantoAccount.AccountName, Delegate44.delegate44_0) || !Delegate44.smethod_0((replikantoAccount != null) ? replikantoAccount.DisplayName : null, Delegate44.delegate44_0)) && !Delegate44.smethod_0(this.ReplikantoProperties.LeaderAccountName, Delegate44.delegate44_0))
										{
											object obj6 = Delegate237.smethod_0(replikantoAccount.AccountName, Delegate237.delegate237_0);
											string leaderAccountName = this.ReplikantoProperties.LeaderAccountName;
											if (!Delegate300.smethod_0(obj6, (leaderAccountName == null) ? null : Delegate299.smethod_0(leaderAccountName, Delegate299.delegate299_0), Delegate300.delegate300_0))
											{
												object obj7 = Delegate237.smethod_0(replikantoAccount.DisplayName, Delegate237.delegate237_0);
												string leaderAccountName2 = this.ReplikantoProperties.LeaderAccountName;
												if (!Delegate300.smethod_0(obj7, (leaderAccountName2 == null) ? null : Delegate299.smethod_0(leaderAccountName2, Delegate299.delegate299_0), Delegate300.delegate300_0))
												{
													Delegate34.smethod_0(Delegate288.smethod_0(new string[]
													{
														"Replikanto: Trade received will be ignored because the Leader account name does not match the account ",
														this.ReplikantoProperties.LeaderAccountName,
														" tab '",
														this.UniqueID,
														"' workspace '",
														this.string_2,
														"'"
													}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
													return;
												}
											}
										}
									}
									try
									{
										bool flag2 = (bool)jobject_0["block_copy"];
										replikantoOrder.BlockCopy = flag2;
									}
									catch
									{
									}
									object obj8 = this.object_0;
									bool flag3 = false;
									try
									{
										Delegate41.smethod_0(obj8, ref flag3, Delegate41.delegate41_0);
										ReplikantoTabPage.<>c__DisplayClass95_3 CS$<>8__locals7 = new ReplikantoTabPage.<>c__DisplayClass95_3();
										CS$<>8__locals7.<>c__DisplayClass95_2_0 = CS$<>8__locals6;
										CS$<>8__locals7.linkedList_0 = null;
										Tuple<string, bool> tuple = Tuple.Create<string, bool>(CS$<>8__locals7.<>c__DisplayClass95_2_0.<>c__DisplayClass95_1_0.string_0, replikantoOrder.IsFromExecution);
										try
										{
											if (!this.concurrentDictionary_1.TryGetValue(tuple, out CS$<>8__locals7.linkedList_0))
											{
												CS$<>8__locals7.linkedList_0 = new LinkedList<ReplikantoOrder>();
												this.concurrentDictionary_1.TryAdd(tuple, CS$<>8__locals7.linkedList_0);
											}
										}
										catch (Exception)
										{
											if (CS$<>8__locals7.linkedList_0 == null)
											{
												CS$<>8__locals7.linkedList_0 = new LinkedList<ReplikantoOrder>();
											}
											try
											{
												this.concurrentDictionary_1.TryAdd(tuple, CS$<>8__locals7.linkedList_0);
											}
											catch
											{
											}
										}
										LinkedListNode<ReplikantoOrder> linkedListNode;
										if (!CS$<>8__locals7.linkedList_0.Contains(replikantoOrder))
										{
											linkedListNode = CS$<>8__locals7.linkedList_0.AddLast(replikantoOrder);
										}
										else
										{
											linkedListNode = CS$<>8__locals7.linkedList_0.Find(replikantoOrder);
											if (linkedListNode != null)
											{
												linkedListNode.Value = replikantoOrder;
											}
										}
										bool flag4 = false;
										using (List<ReplikantoOrder>.Enumerator enumerator2 = replikantoOrder.OrdersPreviouslySent.GetEnumerator())
										{
											while (enumerator2.MoveNext())
											{
												ReplikantoTabPage.<>c__DisplayClass95_4 CS$<>8__locals8 = new ReplikantoTabPage.<>c__DisplayClass95_4();
												CS$<>8__locals8.<>c__DisplayClass95_3_0 = CS$<>8__locals7;
												CS$<>8__locals8.replikantoOrder_0 = enumerator2.Current;
												if (CS$<>8__locals8.replikantoOrder_0 != null)
												{
													bool flag5 = false;
													try
													{
														if (!(flag5 = this.list_0.Any(new Func<Tuple<string, long, DateTime, OrderState>, bool>(CS$<>8__locals8.method_0))))
														{
															Delegate34.smethod_0(Delegate51.smethod_0("Replikanto: Previously Order not executed \"", CS$<>8__locals8.replikantoOrder_0.ToStringSimple(), "\"", Delegate51.delegate51_0), 1, Delegate34.delegate34_0);
														}
														else
														{
															LinkedListNode<ReplikantoOrder> linkedListNode2 = CS$<>8__locals8.<>c__DisplayClass95_3_0.linkedList_0.Find(CS$<>8__locals8.replikantoOrder_0);
															if (linkedListNode2 != null)
															{
																CS$<>8__locals8.<>c__DisplayClass95_3_0.linkedList_0.Remove(linkedListNode2);
															}
														}
													}
													catch
													{
													}
													if (!flag5 && !CS$<>8__locals8.<>c__DisplayClass95_3_0.linkedList_0.Contains(CS$<>8__locals8.replikantoOrder_0))
													{
														try
														{
															CS$<>8__locals8.replikantoOrder_0.ReplikantoAccount = replikantoAccount;
															linkedListNode = CS$<>8__locals8.<>c__DisplayClass95_3_0.linkedList_0.AddBefore(linkedListNode, CS$<>8__locals8.replikantoOrder_0);
															flag4 = true;
														}
														catch (Exception)
														{
														}
													}
												}
											}
										}
										if (flag4)
										{
											Delegate34.smethod_0(Delegate82.smethod_0("Replikanto: Trade will be processed after {0}ms: \"{1}\"", ReplikantoTabPage.int_2, (replikantoOrder == null) ? null : replikantoOrder.ToStringSimple(), Delegate82.delegate82_0), 1, Delegate34.delegate34_0);
											Delegate304.smethod_0(Delegate25.smethod_0(ReplikantoTabPage.int_2, Delegate25.delegate25_0), new Action<Task, object>(CS$<>8__locals7.method_0), Tuple.Create<string, ReplikantoOrder>(CS$<>8__locals7.<>c__DisplayClass95_2_0.<>c__DisplayClass95_1_0.string_0, replikantoOrder), Delegate304.delegate304_0);
										}
										else
										{
											foreach (ReplikantoOrder replikantoOrder2 in CS$<>8__locals7.linkedList_0.ToList<ReplikantoOrder>())
											{
												if (replikantoOrder2 != null)
												{
													try
													{
														ReplikantoTabPage.<>c__DisplayClass95_5 CS$<>8__locals9 = new ReplikantoTabPage.<>c__DisplayClass95_5();
														CS$<>8__locals9.tuple_0 = Tuple.Create<string, long, DateTime, OrderState>(CS$<>8__locals7.<>c__DisplayClass95_2_0.<>c__DisplayClass95_1_0.string_0, replikantoOrder2.OriginalId, replikantoOrder2.Time, replikantoOrder2.OrderState);
														if (!this.list_0.Any(new Func<Tuple<string, long, DateTime, OrderState>, bool>(CS$<>8__locals9.JnXxfkifik)))
														{
															Delegate34.smethod_0(Delegate51.smethod_0("Replikanto: Trade to be processed \"", replikantoOrder2.ToStringSimple(), "\"", Delegate51.delegate51_0), 1, Delegate34.delegate34_0);
															this.list_0.Add(CS$<>8__locals9.tuple_0);
															this.method_62(replikantoOrder2, CS$<>8__locals7.<>c__DisplayClass95_2_0.<>c__DisplayClass95_1_0.<>c__DisplayClass95_0_0.leaderOrderSource_0);
														}
													}
													catch (Exception ex4)
													{
														Delegate34.smethod_0(Delegate303.smethod_0("Replikanto: Error processing previously trade \"", replikantoOrder2.ToStringSimple(), "\" from wss api. ", Delegate31.smethod_0(ex4, Delegate31.delegate31_0), Delegate303.delegate303_0), 3, Delegate34.delegate34_0);
													}
													finally
													{
														CS$<>8__locals7.linkedList_0.Remove(replikantoOrder2);
													}
												}
											}
										}
									}
									finally
									{
										if (flag3)
										{
											Delegate59.smethod_0(obj8, Delegate59.delegate59_0);
										}
									}
								}
							}
						}
						else
						{
							Delegate37.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(CS$<>8__locals6.method_0), Delegate37.delegate37_0);
						}
					}
				}
				catch (Exception ex5)
				{
					Delegate34.smethod_0(Delegate33.smethod_0("Replikanto: Error processing trade from wss api. ", Delegate31.smethod_0(ex5, Delegate31.delegate31_0), Delegate33.delegate33_0), 3, Delegate34.delegate34_0);
				}
				finally
				{
					List<Tuple<string, long, DateTime, OrderState>> list = this.list_0.ToList<Tuple<string, long, DateTime, OrderState>>();
					if (list.Count<Tuple<string, long, DateTime, OrderState>>() > 0)
					{
						try
						{
							Tuple<string, long, DateTime, OrderState> tuple2 = list.LastOrDefault(new Func<Tuple<string, long, DateTime, OrderState>, bool>(CS$<>8__locals5.method_0));
							if (tuple2 != null)
							{
								ReplikantoTabPage.<>c__DisplayClass95_7 CS$<>8__locals10 = new ReplikantoTabPage.<>c__DisplayClass95_7();
								CS$<>8__locals10.<>c__DisplayClass95_1_0 = CS$<>8__locals5;
								CS$<>8__locals10.dateTime_0 = tuple2.Item3;
								this.list_0.RemoveAll(new Predicate<Tuple<string, long, DateTime, OrderState>>(CS$<>8__locals10.method_0));
							}
						}
						catch
						{
						}
					}
				}
			}
		}

		private void method_16(string string_4, ReplikantoAccount replikantoAccount_0, ReplikantoOrder replikantoOrder_0)
		{
			ReplikantoTabPage.<>c__DisplayClass96_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass96_0();
			CS$<>8__locals1.replikantoTabPage_0 = this;
			CS$<>8__locals1.replikantoOrder_0 = replikantoOrder_0;
			if (this.Instrument != null)
			{
				Instrument instrument = CS$<>8__locals1.replikantoOrder_0.Instrument;
				long? num = ((instrument == null) ? null : new long?(Delegate131.smethod_0(instrument, Delegate131.delegate131_0)));
				long num2 = Delegate186.smethod_0(this.Instrument, Delegate186.delegate186_0);
				if (((num.GetValueOrDefault() == num2) & (num != null)) && this.replikantoMode_0 == ReplikantoMode.NETWORK_MODE)
				{
					if (!Delegate44.smethod_0(string_4, Delegate44.delegate44_0) && !Delegate44.smethod_0(this.ReplikantoProperties.LeaderReplikantoID, Delegate44.delegate44_0) && !Delegate300.smethod_0(Delegate237.smethod_0(string_4, Delegate237.delegate237_0), Delegate237.smethod_0(this.ReplikantoProperties.LeaderReplikantoID, Delegate237.delegate237_0), Delegate300.delegate300_0))
					{
						Delegate34.smethod_0(Delegate288.smethod_0(new string[]
						{
							"Replikanto: Trade received will be ignored because the Leader Replikanto ID does not match the ID ",
							Delegate237.smethod_0(this.ReplikantoProperties.LeaderReplikantoID, Delegate237.delegate237_0),
							" tab '",
							this.UniqueID,
							"' workspace '",
							this.string_2,
							"'"
						}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
						return;
					}
					if (replikantoAccount_0 != null && (!Delegate44.smethod_0(replikantoAccount_0.AccountName, Delegate44.delegate44_0) || !Delegate44.smethod_0(replikantoAccount_0.DisplayName, Delegate44.delegate44_0)) && !Delegate44.smethod_0(this.ReplikantoProperties.LeaderAccountName, Delegate44.delegate44_0) && !Delegate300.smethod_0(Delegate237.smethod_0(replikantoAccount_0.AccountName, Delegate237.delegate237_0), Delegate237.smethod_0(this.ReplikantoProperties.LeaderAccountName, Delegate237.delegate237_0), Delegate300.delegate300_0) && !Delegate300.smethod_0(Delegate237.smethod_0(replikantoAccount_0.DisplayName, Delegate237.delegate237_0), Delegate237.smethod_0(this.ReplikantoProperties.LeaderAccountName, Delegate237.delegate237_0), Delegate300.delegate300_0))
					{
						Delegate34.smethod_0(Delegate288.smethod_0(new string[]
						{
							"Replikanto: Trade received will be ignored because the Leader account name does not match the account ",
							this.ReplikantoProperties.LeaderAccountName,
							" tab '",
							this.UniqueID,
							"' workspace '",
							this.string_2,
							"'"
						}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
						return;
					}
					Delegate37.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(CS$<>8__locals1.method_0), Delegate37.delegate37_0);
				}
			}
		}

		public Account Account
		{
			get
			{
				return this.account_1;
			}
			set
			{
				long? num;
				if (value != null && this.account_0 != null && Delegate225.smethod_0(value, Delegate225.delegate225_0) != Delegate225.smethod_0(this.account_0, Delegate225.delegate225_0) && Delegate102.smethod_0(Delegate201.smethod_0(value, Delegate201.delegate201_0), "Sim101", Delegate102.delegate102_0) && this.bool_2 && new ConnectionStatus[] { 3, 4 }.Any(new Func<ConnectionStatus, bool>(this.method_126)))
				{
					Account account = Delegate309.smethod_0(this.selectorAccounts, Delegate309.delegate309_0);
					num = ((account == null) ? null : new long?(Delegate231.smethod_0(account, Delegate231.delegate231_0)));
					long num2 = Delegate225.smethod_0(this.account_0, Delegate225.delegate225_0);
					if (!((num.GetValueOrDefault() == num2) & (num != null)))
					{
						Delegate310.smethod_0(this.selectorAccounts, Delegate201.smethod_0(this.account_0, Delegate201.delegate201_0), Delegate310.delegate310_0);
						this.account_0 = null;
						this.bool_2 = false;
						return;
					}
				}
				Account account2 = this.account_1;
				num = ((account2 != null) ? new long?(Delegate231.smethod_0(account2, Delegate231.delegate231_0)) : null);
				long? num3 = ((value != null) ? new long?(Delegate231.smethod_0(value, Delegate231.delegate231_0)) : null);
				if (!((num.GetValueOrDefault() == num3.GetValueOrDefault()) & (num != null == (num3 != null))))
				{
					ReplikantoTabPage.leaderAccountsGuard_0.SetLeaderAccount(this.string_2, this.UniqueID, this.account_1, value, this.Instrument, this.bindingList_0, this.ReplikantoProperties);
					string[] array = new string[10];
					array[0] = "Replikanto: Leader account was ";
					array[1] = ((this.account_1 != null) ? "changed" : "set");
					array[2] = " at the tab '";
					array[3] = this.UniqueID;
					array[4] = "' workspace '";
					array[5] = this.string_2;
					array[6] = "'. Old: ";
					int num4 = 7;
					Account account3 = this.account_1;
					array[num4] = ((account3 != null) ? Delegate126.smethod_0(account3, Delegate126.delegate126_0) : null);
					array[8] = ", new: ";
					array[9] = ((value == null) ? null : Delegate126.smethod_0(value, Delegate126.delegate126_0));
					Delegate34.smethod_0(Delegate288.smethod_0(array, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
					this.account_1 = value;
					Delegate311.smethod_0(this, Delegate311.delegate311_0);
					this.method_89();
					this.method_53();
					if (this.account_1 != null)
					{
						string text = "Playback101";
						Account account4 = this.account_1;
						if (Delegate104.smethod_0(text, (account4 != null) ? Delegate126.smethod_0(account4, Delegate126.delegate126_0) : null, Delegate104.delegate104_0))
						{
							this.account_0 = this.account_1;
							this.bool_2 = false;
						}
					}
					string text2 = "Playback101";
					Account account5 = this.account_1;
					if (Delegate102.smethod_0(text2, (account5 != null) ? Delegate126.smethod_0(account5, Delegate126.delegate126_0) : null, Delegate102.delegate102_0))
					{
						this.bool_2 = true;
					}
					return;
				}
			}
		}

		public Instrument Instrument
		{
			get
			{
				return this.instrument_0;
			}
			set
			{
				Instrument instrument = this.instrument_0;
				long? num = ((instrument != null) ? new long?(Delegate131.smethod_0(instrument, Delegate131.delegate131_0)) : null);
				long? num2 = ((value == null) ? null : new long?(Delegate131.smethod_0(value, Delegate131.delegate131_0)));
				if ((num.GetValueOrDefault() == num2.GetValueOrDefault()) & (num != null == (num2 != null)))
				{
					return;
				}
				Delegate34.smethod_0(Delegate288.smethod_0(new string[]
				{
					"Replikanto: Leader instrument was ",
					(this.instrument_0 != null) ? "changed" : "set",
					" at the tab '",
					this.UniqueID,
					"' workspace '",
					this.string_2,
					"'. Old: ",
					(instrument != null) ? Delegate120.smethod_0(instrument, Delegate120.delegate120_0) : null,
					", new: ",
					(value == null) ? null : Delegate120.smethod_0(value, Delegate120.delegate120_0)
				}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
				this.instrument_0 = value;
				if (this.cbxInstruments != null)
				{
					try
					{
						Delegate312.smethod_0(this.cbxInstruments, value, Delegate312.IswKjaPrRI);
					}
					catch (Exception ex)
					{
						Delegate34.smethod_0(Delegate32.smethod_0("Replikanto: Error trying to set instrument to cbxInstruments. {0}", ex, Delegate32.delegate32_0), 3, Delegate34.delegate34_0);
					}
				}
				Delegate311.smethod_0(this, Delegate311.delegate311_0);
				Delegate313.smethod_0(this, value, Delegate313.delegate313_0);
				if (this.replikantoMode_0 == ReplikantoMode.LEADER_MODE && this.ReplikantoProperties.IntrumentPropagation)
				{
					try
					{
						Delegate314.smethod_0(this.method_79(instrument, value), new Action<Task>(ReplikantoTabPage.<>c.<>c_0.method_2), Delegate314.delegate314_0);
					}
					catch (Exception ex2)
					{
						Delegate34.smethod_0(Delegate51.smethod_0("Replikanto: Instrument propagation error: \"", Delegate31.smethod_0(ex2, Delegate31.delegate31_0), "\"", Delegate51.delegate51_0), 3, Delegate34.delegate34_0);
					}
				}
				this.method_53();
				Delegate315.smethod_0(this, "Instrument", Delegate315.delegate315_0);
			}
		}

		internal Instrument CrossOrderInstrument { get; set; }

		public EnumMethod Method
		{
			get
			{
				return this.enumMethod_0;
			}
			set
			{
				if (this.enumMethod_0 != value)
				{
					Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Leader copy method was changed at the tab '{0}' workspace '{1}'. Old: {2}, new: {3}", new object[] { this.UniqueID, this.string_2, this.enumMethod_0, value }, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
					this.enumMethod_0 = value;
					this.method_37();
					Delegate315.smethod_0(this, "Method", Delegate315.delegate315_0);
				}
			}
		}

		private void method_17(object sender, RoutedEventArgs e)
		{
			try
			{
				NetworkBroker networkBroker = this.epBfwErgBr;
				if (networkBroker != null)
				{
					networkBroker.Start();
				}
				Delegate37.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(this.method_127), Delegate37.delegate37_0);
				Delegate34.smethod_0(Delegate288.smethod_0(new string[] { "Replikanto: From tab '", this.UniqueID, "' workspace '", this.string_2, "' turned the Network Mode on" }, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
			}
			catch (Exception ex)
			{
				ReplikantoTabPage.<>c__DisplayClass115_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass115_0();
				CS$<>8__locals1.replikantoTabPage_0 = this;
				Exception ex2 = ex;
				CS$<>8__locals1.exception_0 = ex2;
				Delegate34.smethod_0(Delegate32.smethod_0("Replikanto: {0}", CS$<>8__locals1.exception_0, Delegate32.delegate32_0), 3, Delegate34.delegate34_0);
				Delegate37.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(CS$<>8__locals1.method_0), Delegate37.delegate37_0);
			}
		}

		private void method_18(object sender, RoutedEventArgs e)
		{
			Delegate316.smethod_0(this.tbNodeMode, Resources.ClickToTurnItOn, Delegate316.delegate316_0);
			Delegate34.smethod_0(Delegate288.smethod_0(new string[] { "Replikanto: From tab '", this.UniqueID, "' workspace '", this.string_2, "' turned the Network Mode off" }, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
		}

		private void method_19(object sender, RoutedEventArgs e)
		{
			ReplikantoTabPage.<OnInternetChecked>d__117 <OnInternetChecked>d__;
			<OnInternetChecked>d__.<>t__builder = Delegate40.smethod_0(Delegate40.delegate40_0);
			<OnInternetChecked>d__.<>4__this = this;
			<OnInternetChecked>d__.<>1__state = -1;
			<OnInternetChecked>d__.<>t__builder.Start<ReplikantoTabPage.<OnInternetChecked>d__117>(ref <OnInternetChecked>d__);
		}

		private void method_20(object sender, RoutedEventArgs e)
		{
			this.method_106(DisconnectionType.ByUser);
			Delegate34.smethod_0(Delegate288.smethod_0(new string[] { "Replikanto: From tab '", this.UniqueID, "' workspace '", this.string_2, "' turned the Remote Mode off" }, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
		}

		private void method_21(object sender, RoutedEventArgs e)
		{
			ReplikantoTabPage.<OnMenuItemRightClick>d__119 <OnMenuItemRightClick>d__;
			<OnMenuItemRightClick>d__.<>t__builder = Delegate40.smethod_0(Delegate40.delegate40_0);
			<OnMenuItemRightClick>d__.<>4__this = this;
			<OnMenuItemRightClick>d__.sender = sender;
			<OnMenuItemRightClick>d__.<>1__state = -1;
			<OnMenuItemRightClick>d__.<>t__builder.Start<ReplikantoTabPage.<OnMenuItemRightClick>d__119>(ref <OnMenuItemRightClick>d__);
		}

		private static string smethod_0(object object_3)
		{
			if (object_3 != null)
			{
				IEnumerator<UnicastIPAddressInformation> enumerator = Delegate319.smethod_0(Delegate318.smethod_0(Delegate317.smethod_0(object_3, Delegate317.delegate317_0), Delegate318.delegate318_0), Delegate319.delegate319_0);
				try
				{
					while (Delegate38.smethod_0(enumerator, Delegate38.delegate38_0))
					{
						UnicastIPAddressInformation unicastIPAddressInformation = enumerator.Current;
						if (Delegate321.smethod_0(Delegate320.smethod_0(unicastIPAddressInformation, Delegate320.delegate320_0), Delegate321.delegate321_0) == AddressFamily.InterNetwork)
						{
							return Delegate86.smethod_0(Delegate320.smethod_0(unicastIPAddressInformation, Delegate320.delegate320_0), Delegate86.delegate86_0);
						}
					}
					goto IL_008D;
				}
				finally
				{
					if (enumerator != null)
					{
						Delegate39.smethod_0(enumerator, Delegate39.delegate39_0);
					}
				}
				string text;
				return text;
			}
			IL_008D:
			return string.Empty;
		}

		private void method_22(ReplikantoMode replikantoMode_1)
		{
			ReplikantoTabPage.<OnReplikantoModeChanged>d__121 <OnReplikantoModeChanged>d__;
			<OnReplikantoModeChanged>d__.<>t__builder = Delegate40.smethod_0(Delegate40.delegate40_0);
			<OnReplikantoModeChanged>d__.<>4__this = this;
			<OnReplikantoModeChanged>d__.replikantoMode = replikantoMode_1;
			<OnReplikantoModeChanged>d__.<>1__state = -1;
			<OnReplikantoModeChanged>d__.<>t__builder.Start<ReplikantoTabPage.<OnReplikantoModeChanged>d__121>(ref <OnReplikantoModeChanged>d__);
		}

		private void method_23(string string_4 = null)
		{
			Properties properties = new Properties();
			Delegate323.smethod_0(Delegate322.smethod_0(properties, Delegate322.delegate322_0), true, Delegate323.delegate323_0);
			Delegate324.smethod_0(properties, Resources.HelpUrlProperties, Delegate324.delegate324_0);
			Delegate325.smethod_0(properties, Delegate280.smethod_0(this, Delegate280.delegate280_0), Delegate325.delegate325_0);
			if (this.Instrument == null)
			{
				Delegate326.smethod_0(properties, Resources.AddOnHeader, Delegate326.delegate326_0);
			}
			else
			{
				Delegate326.smethod_0(properties, Delegate51.smethod_0(Resources.AddOnHeader, " - ", Delegate327.smethod_0(this.Instrument, Delegate327.delegate327_0), Delegate51.delegate51_0), Delegate326.delegate326_0);
			}
			ReplikantoProperties replikantoProperties = new ReplikantoProperties();
			this.ReplikantoProperties.WindowTitle = (Delegate328.smethod_0(properties, Delegate328.delegate328_0) as ReplikantoWindow).CustomWindowTitle;
			replikantoProperties.Fill(this.ReplikantoProperties);
			NetworkBroker networkBroker = this.epBfwErgBr;
			bool? flag = ((networkBroker != null) ? networkBroker.IsListening : null);
			ReadOnlyAttribute readOnlyAttribute = (ReadOnlyAttribute)Delegate332.smethod_0(Delegate331.smethod_0(Delegate330.smethod_0(Delegate329.smethod_0(Delegate18.smethod_0(replikantoProperties, Delegate18.delegate18_0), Delegate329.delegate329_0), "NetworkPort", Delegate330.delegate330_0), Delegate331.delegate331_0), Delegate45.smethod_0(typeof(ReadOnlyAttribute).TypeHandle, Delegate45.delegate45_0), Delegate332.delegate332_0);
			object obj = Delegate181.smethod_0(Delegate18.smethod_0(readOnlyAttribute, Delegate18.delegate18_0), "isReadOnly", BindingFlags.Instance | BindingFlags.NonPublic, Delegate181.delegate181_0);
			object obj2 = readOnlyAttribute;
			bool? flag2 = flag;
			Delegate333.smethod_0(obj, obj2, flag2.GetValueOrDefault() & (flag2 != null), Delegate333.delegate333_0);
			ReadOnlyAttribute readOnlyAttribute2 = (ReadOnlyAttribute)Delegate332.smethod_0(Delegate331.smethod_0(Delegate330.smethod_0(Delegate329.smethod_0(Delegate18.smethod_0(replikantoProperties, Delegate18.delegate18_0), Delegate329.delegate329_0), "StealthMode", Delegate330.delegate330_0), Delegate331.delegate331_0), Delegate45.smethod_0(typeof(ReadOnlyAttribute).TypeHandle, Delegate45.delegate45_0), Delegate332.delegate332_0);
			Delegate333.smethod_0(Delegate181.smethod_0(Delegate18.smethod_0(readOnlyAttribute2, Delegate18.delegate18_0), "isReadOnly", BindingFlags.Instance | BindingFlags.NonPublic, Delegate181.delegate181_0), readOnlyAttribute2, this.method_24(), Delegate333.delegate333_0);
			if (string_4 != null)
			{
				Delegate334.smethod_0(Delegate322.smethod_0(properties, Delegate322.delegate322_0), string_4, Delegate334.XuCqEcExuW);
			}
			Delegate335.smethod_0(Delegate322.smethod_0(properties, Delegate322.delegate322_0), replikantoProperties, Delegate335.delegate335_0);
			Delegate336.smethod_0(properties, new Action<object, bool>(this.method_128), Delegate336.delegate336_0);
			Delegate337.smethod_0(Delegate322.smethod_0(properties, Delegate322.delegate322_0), new PropertyValueChangedEventHandler(this.method_9), Delegate337.delegate337_0);
			Delegate338.smethod_0(properties, Delegate338.delegate338_0);
		}

		private bool method_24()
		{
			bool flag = false;
			bool flag2;
			try
			{
				List<SlaveAccount> list = this.bindingList_0.ToList<SlaveAccount>();
				for (int i = 0; i < list.Count; i++)
				{
					SlaveAccount slaveAccount = list[i];
					if (slaveAccount.Status != FollowerAccountStatus.Off)
					{
						IEnumerator<Order> enumerator = Delegate277.smethod_0(Delegate230.smethod_0(slaveAccount, Delegate230.delegate230_0), Delegate277.delegate277_0).ToList<Order>().Where(new Func<Order, bool>(ReplikantoTabPage.<>c.<>c_0.method_4))
							.GetEnumerator();
						try
						{
							while (Delegate38.smethod_0(enumerator, Delegate38.delegate38_0))
							{
								Order order = enumerator.Current;
								if (!this.isCrossOrderChecked || !slaveAccount.CrossOrder || Delegate143.smethod_0(order, Delegate143.delegate143_0) != this.CrossOrderInstrument)
								{
									if (Delegate143.smethod_0(order, Delegate143.delegate143_0) != this.Instrument)
									{
										continue;
									}
								}
								flag = true;
								break;
							}
						}
						finally
						{
							if (enumerator != null)
							{
								Delegate39.smethod_0(enumerator, Delegate39.delegate39_0);
							}
						}
					}
				}
				return flag;
			}
			catch (Exception)
			{
				flag2 = false;
			}
			return flag2;
		}

		private void method_25(bool bool_5)
		{
			if (!bool_5)
			{
				Delegate290.smethod_0(this.tbAccount, Visibility.Collapsed, Delegate290.delegate290_0);
				Delegate290.smethod_0(this.selectorAccounts, Visibility.Collapsed, Delegate290.delegate290_0);
				if (this.Account != null)
				{
					Delegate339.smethod_0(this.Account, new EventHandler<OrderEventArgs>(this.OnOrderUpdate), Delegate339.delegate339_0);
					Delegate341.smethod_0(this.Account, new EventHandler<ExecutionEventArgs>(this.method_51), Delegate341.delegate341_0);
					Delegate212.smethod_0(this.Account, new EventHandler<PositionEventArgs>(this.method_50), Delegate212.Dyqofvotxu);
					this.Account = null;
				}
			}
			else
			{
				Delegate290.smethod_0(this.tbAccount, Visibility.Visible, Delegate290.delegate290_0);
				Delegate290.smethod_0(this.selectorAccounts, Visibility.Visible, Delegate290.delegate290_0);
				this.Account = Delegate309.smethod_0(this.selectorAccounts, Delegate309.delegate309_0);
				if (this.Account != null)
				{
					Delegate339.smethod_0(this.Account, new EventHandler<OrderEventArgs>(this.OnOrderUpdate), Delegate339.delegate339_0);
					Delegate340.smethod_0(this.Account, new EventHandler<OrderEventArgs>(this.OnOrderUpdate), Delegate340.delegate340_0);
					Delegate341.smethod_0(this.Account, new EventHandler<ExecutionEventArgs>(this.method_51), Delegate341.delegate341_0);
					Delegate342.smethod_0(this.Account, new EventHandler<ExecutionEventArgs>(this.method_51), Delegate342.BoTqkEegpC);
					Delegate212.smethod_0(this.Account, new EventHandler<PositionEventArgs>(this.method_50), Delegate212.Dyqofvotxu);
					Delegate214.smethod_0(this.Account, new EventHandler<PositionEventArgs>(this.method_50), Delegate214.delegate214_0);
				}
			}
			this.method_39(null);
		}

		private void method_26(bool bool_5)
		{
			if (bool_5)
			{
				if (this.replikantoMode_0 == ReplikantoMode.LEADER_MODE)
				{
					Delegate290.smethod_0(this.gridNodesTitle, Visibility.Visible, Delegate290.delegate290_0);
					Delegate290.smethod_0(this.gridNodes, Visibility.Visible, Delegate290.delegate290_0);
					return;
				}
			}
			else
			{
				Delegate290.smethod_0(this.gridNodesTitle, Visibility.Collapsed, Delegate290.delegate290_0);
				Delegate290.smethod_0(this.gridNodes, Visibility.Collapsed, Delegate290.delegate290_0);
			}
		}

		private void method_27(bool bool_5)
		{
			if (!bool_5)
			{
				Delegate290.smethod_0(this.tbInternetID, Visibility.Collapsed, Delegate290.delegate290_0);
				Delegate290.smethod_0(this.tbReplikantoID, Visibility.Collapsed, Delegate290.delegate290_0);
				Delegate343.smethod_0(this.cbInternetMode, new bool?(false), Delegate343.delegate343_0);
				Delegate290.smethod_0(this.cbInternetMode, Visibility.Collapsed, Delegate290.delegate290_0);
				return;
			}
			Delegate290.smethod_0(this.tbInternetID, Visibility.Visible, Delegate290.delegate290_0);
			Delegate290.smethod_0(this.tbReplikantoID, Visibility.Visible, Delegate290.delegate290_0);
			Delegate290.smethod_0(this.cbInternetMode, Visibility.Visible, Delegate290.delegate290_0);
			Delegate253.smethod_0(this.mnuServerNode, false, Delegate253.delegate253_0);
		}

		private void method_28(bool bool_5)
		{
			if (bool_5)
			{
				Delegate290.smethod_0(this.spNetwork, Visibility.Visible, Delegate290.delegate290_0);
				Delegate290.smethod_0(this.cbNetworkMode, Visibility.Visible, Delegate290.delegate290_0);
				Delegate253.smethod_0(this.menuItem_6, false, Delegate253.delegate253_0);
				return;
			}
			Delegate290.smethod_0(this.spNetwork, Visibility.Collapsed, Delegate290.delegate290_0);
			Delegate343.smethod_0(this.cbNetworkMode, new bool?(false), Delegate343.delegate343_0);
			Delegate290.smethod_0(this.cbNetworkMode, Visibility.Collapsed, Delegate290.delegate290_0);
		}

		private void method_29(uint uint_0)
		{
			ReplikantoTabPage.<>c__DisplayClass128_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass128_0();
			CS$<>8__locals1.uint_0 = uint_0;
			CS$<>8__locals1.replikantoTabPage_0 = this;
			if (CS$<>8__locals1.uint_0 < this.ReplikantoProperties.CreditAlert && CS$<>8__locals1.uint_0 > 0U)
			{
				Delegate37.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(CS$<>8__locals1.method_0), Delegate37.delegate37_0);
			}
		}

		public bool IsChangeFromSelf { get; set; }

		private void method_30(object sender, EventArgs e)
		{
			if (sender == null)
			{
				return;
			}
			Instrument instrument = this.Instrument;
			this.Instrument = (Instrument)sender;
			this.CrossOrderInstrument = this.Instrument;
			try
			{
				Instrument instrument2 = this.Instrument;
				InstrumentType? instrumentType;
				if (instrument2 == null)
				{
					instrumentType = null;
				}
				else
				{
					MasterInstrument masterInstrument = Delegate344.smethod_0(instrument2, Delegate344.delegate344_0);
					instrumentType = ((masterInstrument == null) ? null : new InstrumentType?(Delegate345.smethod_0(masterInstrument, Delegate345.delegate345_0)));
				}
				InstrumentType? instrumentType2 = instrumentType;
				if (instrumentType2.Value == null)
				{
					ReplikantoCrossOrderRelationship replikantoCrossOrderRelationship = this.replikantoCrossOrderRelationship_0;
					Instrument instrument3 = this.Instrument;
					string text;
					if (instrument3 == null)
					{
						text = null;
					}
					else
					{
						MasterInstrument masterInstrument2 = Delegate344.smethod_0(instrument3, Delegate344.delegate344_0);
						text = ((masterInstrument2 != null) ? Delegate346.smethod_0(masterInstrument2, Delegate346.delegate346_0) : null);
					}
					string text2;
					if (replikantoCrossOrderRelationship.TryGetCrossOverInstrument(text, out text2))
					{
						Instrument instrument4 = this.Instrument;
						MasterInstrument masterInstrument3 = ((instrument4 == null) ? null : Delegate344.smethod_0(instrument4, Delegate344.delegate344_0));
						if (!Delegate347.smethod_0(text2, Delegate347.delegate347_0))
						{
							Delegate34.smethod_0(Delegate51.smethod_0("Replikanto: This cross order instrument ", Delegate348.smethod_0(masterInstrument3, Delegate348.delegate348_0), " is invalid", Delegate51.delegate51_0), 2, Delegate34.delegate34_0);
						}
						else if (this.Instrument != null)
						{
							Exchange exchange = Delegate349.smethod_0(this.Instrument, Delegate349.delegate349_0);
							MasterInstrument masterInstrument4 = Delegate351.smethod_0(text2, Delegate350.smethod_0(masterInstrument3, Delegate350.delegate350_0), false, Delegate351.delegate351_0);
							if (masterInstrument4 != null)
							{
								Collection<Exchange> collection = Delegate352.smethod_0(masterInstrument4, Delegate352.delegate352_0);
								if (collection != null && collection.Any<Exchange>())
								{
									exchange = collection[0];
								}
							}
							try
							{
								MethodInfo methodInfo = Delegate353.smethod_0(Delegate45.smethod_0(typeof(Instrument).TypeHandle, Delegate45.delegate45_0), "DbGet", new Type[]
								{
									Delegate45.smethod_0(typeof(string).TypeHandle, Delegate45.delegate45_0),
									Delegate45.smethod_0(typeof(InstrumentType).TypeHandle, Delegate45.delegate45_0),
									Delegate45.smethod_0(typeof(Exchange).TypeHandle, Delegate45.delegate45_0),
									Delegate45.smethod_0(typeof(DateTime).TypeHandle, Delegate45.delegate45_0),
									Delegate45.smethod_0(typeof(double).TypeHandle, Delegate45.delegate45_0),
									Delegate45.smethod_0(typeof(OptionRight).TypeHandle, Delegate45.delegate45_0),
									Delegate45.smethod_0(typeof(bool).TypeHandle, Delegate45.delegate45_0)
								}, Delegate353.delegate353_0);
								this.CrossOrderInstrument = (Instrument)methodInfo.Invoke(null, new object[]
								{
									text2,
									Delegate350.smethod_0(masterInstrument3, Delegate350.delegate350_0),
									exchange,
									Delegate354.smethod_0(this.Instrument, Delegate354.delegate354_0),
									Delegate355.smethod_0(this.Instrument, Delegate355.delegate355_0),
									Delegate356.smethod_0(this.Instrument, Delegate356.delegate356_0),
									true
								});
							}
							catch (NullReferenceException)
							{
								try
								{
									MethodInfo methodInfo2 = Delegate353.smethod_0(Delegate45.smethod_0(typeof(Instrument).TypeHandle, Delegate45.delegate45_0), "DbGet", new Type[]
									{
										Delegate45.smethod_0(typeof(string).TypeHandle, Delegate45.delegate45_0),
										Delegate45.smethod_0(typeof(InstrumentType).TypeHandle, Delegate45.delegate45_0),
										Delegate45.smethod_0(typeof(Exchange).TypeHandle, Delegate45.delegate45_0),
										Delegate45.smethod_0(typeof(DateTime).TypeHandle, Delegate45.delegate45_0),
										Delegate45.smethod_0(typeof(double).TypeHandle, Delegate45.delegate45_0),
										Delegate45.smethod_0(typeof(OptionRight).TypeHandle, Delegate45.delegate45_0),
										Delegate45.smethod_0(typeof(bool).TypeHandle, Delegate45.delegate45_0),
										Delegate45.smethod_0(typeof(InstrumentType).TypeHandle, Delegate45.delegate45_0)
									}, Delegate353.delegate353_0);
									this.CrossOrderInstrument = (Instrument)methodInfo2.Invoke(null, new object[]
									{
										text2,
										Delegate350.smethod_0(masterInstrument3, Delegate350.delegate350_0),
										exchange,
										Delegate354.smethod_0(this.Instrument, Delegate354.delegate354_0),
										Delegate355.smethod_0(this.Instrument, Delegate355.delegate355_0),
										Delegate356.smethod_0(this.Instrument, Delegate356.delegate356_0),
										true,
										99
									});
								}
								catch (NullReferenceException ex)
								{
									throw ex;
								}
							}
							if (this.CrossOrderInstrument == null)
							{
								Delegate34.smethod_0(Delegate51.smethod_0("Replikanto: Cross order instrument for ", Delegate348.smethod_0(masterInstrument3, Delegate348.delegate348_0), " not found", Delegate51.delegate51_0), 2, Delegate34.delegate34_0);
							}
						}
					}
				}
				ReplikantoTabPage.leaderAccountsGuard_0.ChangeLeaderInstrument(this.string_2, this.UniqueID, this.Account, instrument, this.Instrument, this.ReplikantoProperties);
				foreach (SlaveAccount slaveAccount in this.bindingList_0.ToList<SlaveAccount>())
				{
					slaveAccount.RefreshPnL(true);
					if (!this.method_103(this.Account, slaveAccount, this.Instrument, this.CrossOrderInstrument))
					{
						slaveAccount.Status = FollowerAccountStatus.Off;
					}
				}
			}
			catch (Exception ex2)
			{
				string text3 = "Replikanto: Failed to find the cross instrument for {0}. Error: \"{1}\"";
				MasterInstrument masterInstrument5 = Delegate357.smethod_0(this.Instrument, Delegate357.delegate357_0);
				Delegate34.smethod_0(Delegate82.smethod_0(text3, (masterInstrument5 != null) ? Delegate346.smethod_0(masterInstrument5, Delegate346.delegate346_0) : null, ex2, Delegate82.delegate82_0), 3, Delegate34.delegate34_0);
			}
			this.method_31();
		}

		private void method_31()
		{
			if (Delegate274.smethod_0(this, Delegate274.delegate274_0).Invoke<bool>(new Func<bool>(this.method_129)) && this.CrossOrderInstrument != null && this.CrossOrderInstrument != this.Instrument)
			{
				Delegate271.smethod_0(this.grdSlaveAccounts, null, Delegate271.delegate271_0);
				Delegate271.smethod_0(this.grdSlaveAccounts, this.bindingList_0, Delegate271.delegate271_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "CrossOrder", Delegate286.delegate286_0), Visibility.Visible, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "COTarget", Delegate286.delegate286_0), Visibility.Visible, Delegate287.delegate287_0);
				return;
			}
			Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "CrossOrder", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
			Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "COTarget", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
		}

		private void method_32()
		{
			if (!Delegate274.smethod_0(this, Delegate274.delegate274_0).Invoke<bool>(new Func<bool>(this.method_130)))
			{
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "UseATM", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				return;
			}
			Delegate271.smethod_0(this.grdSlaveAccounts, null, Delegate271.delegate271_0);
			Delegate271.smethod_0(this.grdSlaveAccounts, this.bindingList_0, Delegate271.delegate271_0);
			Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "UseATM", Delegate286.delegate286_0), Visibility.Visible, Delegate287.delegate287_0);
		}

		private void method_33(object sender, AccountStatusEventArgs e)
		{
			ReplikantoTabPage.<>c__DisplayClass136_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass136_0();
			CS$<>8__locals1.accountStatusEventArgs_0 = e;
			if (Delegate358.smethod_0(CS$<>8__locals1.accountStatusEventArgs_0, Delegate358.delegate358_0) == 3 || Delegate358.smethod_0(CS$<>8__locals1.accountStatusEventArgs_0, Delegate358.delegate358_0) == null || Delegate358.smethod_0(CS$<>8__locals1.accountStatusEventArgs_0, Delegate358.delegate358_0) == 1 || Delegate358.smethod_0(CS$<>8__locals1.accountStatusEventArgs_0, Delegate358.delegate358_0) == 2)
			{
				if ((Delegate358.smethod_0(CS$<>8__locals1.accountStatusEventArgs_0, Delegate358.delegate358_0) == null || Delegate358.smethod_0(CS$<>8__locals1.accountStatusEventArgs_0, Delegate358.delegate358_0) == 1 || Delegate358.smethod_0(CS$<>8__locals1.accountStatusEventArgs_0, Delegate358.delegate358_0) == 2) && this.bindingList_0.ToList<SlaveAccount>().FirstOrDefault(new Func<SlaveAccount, bool>(CS$<>8__locals1.method_0)) != null)
				{
					Delegate34.smethod_0(Delegate50.smethod_0("Replikanto: Follower account {0} \"{1}\" from the broker from tab \"{2}\"", Delegate359.smethod_0(CS$<>8__locals1.accountStatusEventArgs_0, Delegate359.delegate359_0), Delegate358.smethod_0(CS$<>8__locals1.accountStatusEventArgs_0, Delegate358.delegate358_0), this.UniqueID, Delegate50.delegate50_0), 1, Delegate34.delegate34_0);
				}
				if (Delegate358.smethod_0(CS$<>8__locals1.accountStatusEventArgs_0, Delegate358.delegate358_0) != 1)
				{
					try
					{
						Timer timer = this.timer_1;
						if (timer != null)
						{
							Delegate360.smethod_0(timer, Delegate360.delegate360_0);
						}
						Timer timer2 = this.timer_1;
						if (timer2 != null)
						{
							Delegate361.smethod_0(timer2, Delegate361.delegate361_0);
						}
					}
					catch (ObjectDisposedException)
					{
					}
				}
			}
		}

		private void method_34(object sender, ConnectionStatusEventArgs e)
		{
			try
			{
				Timer timer = this.timer_1;
				if (timer != null)
				{
					Delegate360.smethod_0(timer, Delegate360.delegate360_0);
				}
				Timer timer2 = this.timer_1;
				if (timer2 != null)
				{
					Delegate361.smethod_0(timer2, Delegate361.delegate361_0);
				}
			}
			catch (ObjectDisposedException)
			{
			}
		}

		private void method_35(object sender, ElapsedEventArgs e)
		{
			this.method_39(null);
			this.method_53();
		}

		private void method_36(object sender, SelectionChangedEventArgs e)
		{
			if (this.Account != null)
			{
				Delegate339.smethod_0(this.Account, new EventHandler<OrderEventArgs>(this.OnOrderUpdate), Delegate339.delegate339_0);
				Delegate341.smethod_0(this.Account, new EventHandler<ExecutionEventArgs>(this.method_51), Delegate341.delegate341_0);
				Delegate212.smethod_0(this.Account, new EventHandler<PositionEventArgs>(this.method_50), Delegate212.Dyqofvotxu);
			}
			if (Delegate362.smethod_0(this.selectorAccounts, Delegate362.delegate362_0) == Visibility.Visible)
			{
				this.Account = Delegate309.smethod_0(this.selectorAccounts, Delegate309.delegate309_0);
			}
			if (this.Account != null)
			{
				Delegate340.smethod_0(this.Account, new EventHandler<OrderEventArgs>(this.OnOrderUpdate), Delegate340.delegate340_0);
				Delegate342.smethod_0(this.Account, new EventHandler<ExecutionEventArgs>(this.method_51), Delegate342.BoTqkEegpC);
				Delegate214.smethod_0(this.Account, new EventHandler<PositionEventArgs>(this.method_50), Delegate214.delegate214_0);
				this.method_39(null);
				this.IsChangeFromSelf = true;
				Delegate363.smethod_0(this, this.Account, Delegate363.delegate363_0);
			}
		}

		private void method_37()
		{
			if (this.Method == EnumMethod.AvailableCash)
			{
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "PctField", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "FactorNetLiq", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "NetLiquidation", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "FactorAvailableEquity", Delegate286.delegate286_0), Visibility.Visible, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "CashValue", Delegate286.delegate286_0), Visibility.Visible, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "Ratio", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "PreAllocation", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				this.method_38();
				return;
			}
			if (this.Method == EnumMethod.NetLiq)
			{
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "PctField", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "FactorNetLiq", Delegate286.delegate286_0), Visibility.Visible, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "NetLiquidation", Delegate286.delegate286_0), Visibility.Visible, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "FactorAvailableEquity", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				if (!this.ReplikantoProperties.CashValueColumn)
				{
					Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "CashValue", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				}
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "Ratio", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "PreAllocation", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				this.method_38();
				return;
			}
			if (this.Method == EnumMethod.PctChange)
			{
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "PctField", Delegate286.delegate286_0), Visibility.Visible, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "FactorNetLiq", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "NetLiquidation", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "FactorAvailableEquity", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				if (!this.ReplikantoProperties.CashValueColumn)
				{
					Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "CashValue", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				}
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "Ratio", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "PreAllocation", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				return;
			}
			if (this.Method == EnumMethod.EqualQuantity)
			{
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "PctField", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "FactorNetLiq", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "NetLiquidation", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "FactorAvailableEquity", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				if (!this.ReplikantoProperties.CashValueColumn)
				{
					Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "CashValue", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				}
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "Ratio", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "PreAllocation", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				return;
			}
			if (this.Method == EnumMethod.ExactQuantity)
			{
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "PctField", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "FactorNetLiq", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "NetLiquidation", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "FactorAvailableEquity", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				if (!this.ReplikantoProperties.CashValueColumn)
				{
					Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "CashValue", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				}
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "Ratio", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "PreAllocation", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				return;
			}
			if (this.Method == EnumMethod.Ratio)
			{
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "PctField", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "FactorNetLiq", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "NetLiquidation", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "FactorAvailableEquity", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				if (!this.ReplikantoProperties.CashValueColumn)
				{
					Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "CashValue", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				}
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "Ratio", Delegate286.delegate286_0), Visibility.Visible, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "PreAllocation", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				return;
			}
			if (this.Method == EnumMethod.PreAllocation)
			{
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "PctField", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "FactorNetLiq", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "NetLiquidation", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "FactorAvailableEquity", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				if (!this.ReplikantoProperties.CashValueColumn)
				{
					Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "CashValue", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				}
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "Ratio", Delegate286.delegate286_0), Visibility.Collapsed, Delegate287.delegate287_0);
				Delegate287.smethod_0(Delegate286.smethod_0(Delegate285.smethod_0(Delegate284.smethod_0(Delegate283.smethod_0(this.grdSlaveAccounts, Delegate283.delegate283_0), 0, Delegate284.delegate284_0), Delegate285.delegate285_0), "PreAllocation", Delegate286.delegate286_0), Visibility.Visible, Delegate287.delegate287_0);
			}
		}

		private void method_38()
		{
			List<SlaveAccount> list = null;
			try
			{
				list = this.bindingList_0.ToList<SlaveAccount>();
			}
			catch
			{
			}
			if (list == null)
			{
				return;
			}
			if (this.Method == EnumMethod.AvailableCash)
			{
				double num = 0.0;
				for (int i = 0; i < list.Count; i++)
				{
					SlaveAccount slaveAccount = list[i];
					if (slaveAccount.Status != FollowerAccountStatus.Off)
					{
						num += Delegate364.smethod_0(slaveAccount, Delegate364.delegate364_0);
					}
				}
				for (int j = 0; j < list.Count; j++)
				{
					SlaveAccount slaveAccount2 = list[j];
					if (slaveAccount2.Status != FollowerAccountStatus.Off && num != 0.0)
					{
						slaveAccount2.SetFactorAvailableEquity(Delegate364.smethod_0(slaveAccount2, Delegate364.delegate364_0) / num);
					}
					else
					{
						slaveAccount2.SetFactorAvailableEquity(0.0);
					}
				}
				return;
			}
			if (this.Method == EnumMethod.NetLiq)
			{
				double num2 = 0.0;
				for (int k = 0; k < list.Count; k++)
				{
					SlaveAccount slaveAccount3 = list[k];
					if (slaveAccount3.Status != FollowerAccountStatus.Off)
					{
						num2 += Delegate365.smethod_0(slaveAccount3, Delegate365.delegate365_0);
					}
				}
				for (int l = 0; l < list.Count; l++)
				{
					SlaveAccount slaveAccount4 = list[l];
					if (slaveAccount4.Status != FollowerAccountStatus.Off && num2 != 0.0)
					{
						slaveAccount4.SetFactorNetLiq(Delegate365.smethod_0(slaveAccount4, Delegate365.delegate365_0) / num2);
					}
					else
					{
						slaveAccount4.SetFactorNetLiq(0.0);
					}
				}
			}
		}

		private void method_39(Account account_2 = null)
		{
			try
			{
				if (account_2 == null)
				{
					foreach (Account account in Delegate366.smethod_0(Delegate366.delegate366_0).ToList<Account>())
					{
						this.method_41(account);
					}
					this.method_40();
				}
				else
				{
					this.method_41(account_2);
					this.method_40();
				}
			}
			catch (Exception)
			{
			}
			Delegate37.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(this.method_131), Delegate37.delegate37_0);
			if (this.Instrument != null && this.CrossOrderInstrument != null)
			{
				try
				{
					foreach (SlaveAccount slaveAccount in this.bindingList_0.ToList<SlaveAccount>())
					{
						if (!this.method_103(this.Account, slaveAccount, this.Instrument, this.CrossOrderInstrument))
						{
							slaveAccount.Status = FollowerAccountStatus.Off;
						}
					}
				}
				catch (Exception)
				{
				}
			}
		}

		private void method_40()
		{
			foreach (long num in this.concurrentDictionary_5.Keys.ToList<long>())
			{
				try
				{
					ServerStrategy serverStrategy;
					if (this.concurrentDictionary_5.TryGetValue(num, out serverStrategy) && serverStrategy != null && serverStrategy.IsTerminal(this.Account))
					{
						ServerStrategy serverStrategy2;
						this.concurrentDictionary_5.TryRemove(num, out serverStrategy2);
					}
				}
				catch (Exception)
				{
				}
			}
		}

		private void method_41(Account account_2)
		{
			ReplikantoTabPage.<>c__DisplayClass144_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass144_0();
			CS$<>8__locals1.account_0 = account_2;
			CS$<>8__locals1.replikantoTabPage_0 = this;
			if (CS$<>8__locals1.account_0 == null)
			{
				return;
			}
			if (Delegate367.smethod_0(CS$<>8__locals1.account_0, Delegate367.delegate367_0) != 13 && !Delegate102.smethod_0(Delegate368.smethod_0(CS$<>8__locals1.account_0, Delegate368.delegate368_0), "Backtest", Delegate102.delegate102_0))
			{
				CS$<>8__locals1.pKixovmqJc = this.bindingList_0.ToList<SlaveAccount>().FirstOrDefault(new Func<SlaveAccount, bool>(CS$<>8__locals1.method_0));
				if (CS$<>8__locals1.pKixovmqJc != null)
				{
					if ((this.Account == null || CS$<>8__locals1.account_0 != this.Account || !Delegate274.smethod_0(this, Delegate274.delegate274_0).Invoke<bool>(new Func<bool>(CS$<>8__locals1.method_2))) && Delegate369.smethod_0(CS$<>8__locals1.account_0, Delegate369.delegate369_0) == 3)
					{
						if (Delegate371.smethod_0(Delegate370.smethod_0(Delegate370.doXgxbvvvX), Delegate371.delegate371_0))
						{
							Account account = Delegate230.smethod_0(CS$<>8__locals1.pKixovmqJc, Delegate230.delegate230_0);
							if (account == null || Delegate127.smethod_0(account, Delegate127.delegate127_0) != 15)
							{
								goto IL_02AC;
							}
						}
						try
						{
							CS$<>8__locals1.pKixovmqJc.Status = this.concurrentDictionary_0[Delegate373.smethod_0(CS$<>8__locals1.pKixovmqJc, Delegate373.AqggkfHrBe)].Status;
							CS$<>8__locals1.pKixovmqJc.CrossOrder = this.concurrentDictionary_0[Delegate373.smethod_0(CS$<>8__locals1.pKixovmqJc, Delegate373.AqggkfHrBe)].CrossOrder;
							CS$<>8__locals1.pKixovmqJc.UseATM = this.concurrentDictionary_0[Delegate373.smethod_0(CS$<>8__locals1.pKixovmqJc, Delegate373.AqggkfHrBe)].UseATM;
							CS$<>8__locals1.pKixovmqJc.MarketOnly = this.concurrentDictionary_0[Delegate373.smethod_0(CS$<>8__locals1.pKixovmqJc, Delegate373.AqggkfHrBe)].MarketOnly;
							CS$<>8__locals1.pKixovmqJc.PctField = this.concurrentDictionary_0[Delegate373.smethod_0(CS$<>8__locals1.pKixovmqJc, Delegate373.AqggkfHrBe)].PctField;
							CS$<>8__locals1.pKixovmqJc.Ratio = this.concurrentDictionary_0[Delegate373.smethod_0(CS$<>8__locals1.pKixovmqJc, Delegate373.AqggkfHrBe)].Ratio;
							CS$<>8__locals1.pKixovmqJc.PreAllocation = this.concurrentDictionary_0[Delegate373.smethod_0(CS$<>8__locals1.pKixovmqJc, Delegate373.AqggkfHrBe)].PreAllocation;
							Delegate374.smethod_0(CS$<>8__locals1.pKixovmqJc, Delegate205.smethod_0(Delegate204.smethod_0(Delegate203.smethod_0(Delegate230.smethod_0(CS$<>8__locals1.pKixovmqJc, Delegate230.delegate230_0), Delegate203.delegate203_0), Delegate204.delegate204_0), Delegate205.delegate205_0), Delegate374.delegate374_0);
							return;
						}
						catch (KeyNotFoundException)
						{
							return;
						}
					}
					IL_02AC:
					Delegate37.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(CS$<>8__locals1.method_3), Delegate37.delegate37_0);
					return;
				}
				Account account2 = CS$<>8__locals1.account_0;
				long? num = ((account2 != null) ? new long?(Delegate231.smethod_0(account2, Delegate231.delegate231_0)) : null);
				Account account3 = this.Account;
				long? num2 = ((account3 == null) ? null : new long?(Delegate231.smethod_0(account3, Delegate231.delegate231_0)));
				if ((!((num.GetValueOrDefault() == num2.GetValueOrDefault()) & (num != null == (num2 != null))) || Delegate274.smethod_0(this, Delegate274.delegate274_0).Invoke<bool>(new Func<bool>(CS$<>8__locals1.method_1))) && Delegate369.smethod_0(CS$<>8__locals1.account_0, Delegate369.delegate369_0) == 3 && (!Delegate371.smethod_0(Delegate370.smethod_0(Delegate370.doXgxbvvvX), Delegate371.delegate371_0) || Delegate367.smethod_0(CS$<>8__locals1.account_0, Delegate367.delegate367_0) == 15))
				{
					ReplikantoTabPage.<>c__DisplayClass144_1 CS$<>8__locals2 = new ReplikantoTabPage.<>c__DisplayClass144_1();
					CS$<>8__locals2.<>c__DisplayClass144_0_0 = CS$<>8__locals1;
					CS$<>8__locals2.slaveAccount_0 = new SlaveAccount(CS$<>8__locals2.<>c__DisplayClass144_0_0.account_0, this);
					Delegate256.smethod_0(CS$<>8__locals2.slaveAccount_0, new PropertyChangedEventHandler(this.method_43), Delegate256.delegate256_0);
					Delegate215.smethod_0(Delegate230.smethod_0(CS$<>8__locals2.slaveAccount_0, Delegate230.delegate230_0), new EventHandler<AccountItemEventArgs>(this.method_42), Delegate215.delegate215_0);
					if (!Delegate372.smethod_0(this.concurrentDictionary_0, Delegate372.delegate372_0))
					{
						try
						{
							CS$<>8__locals2.slaveAccount_0.Status = this.concurrentDictionary_0[Delegate373.smethod_0(CS$<>8__locals2.slaveAccount_0, Delegate373.AqggkfHrBe)].Status;
							CS$<>8__locals2.slaveAccount_0.CrossOrder = this.concurrentDictionary_0[Delegate373.smethod_0(CS$<>8__locals2.slaveAccount_0, Delegate373.AqggkfHrBe)].CrossOrder;
							CS$<>8__locals2.slaveAccount_0.UseATM = this.concurrentDictionary_0[Delegate373.smethod_0(CS$<>8__locals2.slaveAccount_0, Delegate373.AqggkfHrBe)].UseATM;
							CS$<>8__locals2.slaveAccount_0.MarketOnly = this.concurrentDictionary_0[Delegate373.smethod_0(CS$<>8__locals2.slaveAccount_0, Delegate373.AqggkfHrBe)].MarketOnly;
							CS$<>8__locals2.slaveAccount_0.PctField = this.concurrentDictionary_0[Delegate373.smethod_0(CS$<>8__locals2.slaveAccount_0, Delegate373.AqggkfHrBe)].PctField;
							CS$<>8__locals2.slaveAccount_0.Ratio = this.concurrentDictionary_0[Delegate373.smethod_0(CS$<>8__locals2.slaveAccount_0, Delegate373.AqggkfHrBe)].Ratio;
							CS$<>8__locals2.slaveAccount_0.PreAllocation = this.concurrentDictionary_0[Delegate373.smethod_0(CS$<>8__locals2.slaveAccount_0, Delegate373.AqggkfHrBe)].PreAllocation;
							goto IL_0636;
						}
						catch (KeyNotFoundException)
						{
							this.concurrentDictionary_0[Delegate373.smethod_0(CS$<>8__locals2.slaveAccount_0, Delegate373.AqggkfHrBe)] = new SlaveAccountSavedStatus
							{
								Ratio = 1.0,
								Status = FollowerAccountStatus.Off,
								CrossOrder = false,
								UseATM = false,
								MarketOnly = false,
								PctField = 0.0,
								PreAllocation = 0
							};
							goto IL_0636;
						}
						catch (Exception)
						{
							goto IL_0636;
						}
					}
					this.concurrentDictionary_0[Delegate373.smethod_0(CS$<>8__locals2.slaveAccount_0, Delegate373.AqggkfHrBe)] = new SlaveAccountSavedStatus
					{
						Ratio = 1.0,
						Status = FollowerAccountStatus.Off,
						CrossOrder = false,
						UseATM = false,
						MarketOnly = false,
						PctField = 0.0,
						PreAllocation = 0
					};
					IL_0636:
					Delegate37.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(CS$<>8__locals2.method_0), Delegate37.delegate37_0);
					return;
				}
				return;
			}
		}

		private void method_42(object sender, AccountItemEventArgs e)
		{
			if (Delegate222.smethod_0(e, Delegate222.delegate222_0) == 1 || Delegate222.smethod_0(e, Delegate222.delegate222_0) == 15)
			{
				this.method_38();
			}
		}

		private void method_43(object sender, PropertyChangedEventArgs e)
		{
			ReplikantoTabPage.<OnSlaveAccountPropertyUpdate>d__146 <OnSlaveAccountPropertyUpdate>d__;
			<OnSlaveAccountPropertyUpdate>d__.<>t__builder = Delegate40.smethod_0(Delegate40.delegate40_0);
			<OnSlaveAccountPropertyUpdate>d__.<>4__this = this;
			<OnSlaveAccountPropertyUpdate>d__.sender = sender;
			<OnSlaveAccountPropertyUpdate>d__.e = e;
			<OnSlaveAccountPropertyUpdate>d__.<>1__state = -1;
			<OnSlaveAccountPropertyUpdate>d__.<>t__builder.Start<ReplikantoTabPage.<OnSlaveAccountPropertyUpdate>d__146>(ref <OnSlaveAccountPropertyUpdate>d__);
		}

		private void method_44(object sender, PropertyChangedEventArgs e)
		{
			InternetNode internetNode = (InternetNode)sender;
			if (Delegate102.smethod_0(Delegate278.smethod_0(e, Delegate278.delegate278_0), "Status", Delegate102.delegate102_0))
			{
				if (internetNode.Status == NodeStatus.Away)
				{
					Delegate375.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(this.method_132), DispatcherPriority.Background, Array.Empty<object>(), Delegate375.delegate375_0);
					return;
				}
				if (!this.observableCollection_1.Any(new Func<InternetNode, bool>(ReplikantoTabPage.<>c.<>c_0.method_6)))
				{
					Delegate375.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(this.method_133), DispatcherPriority.Background, Array.Empty<object>(), Delegate375.delegate375_0);
				}
			}
		}

		private void method_45(object sender, PropertyChangedEventArgs e)
		{
			Node node = (Node)sender;
			if (Delegate102.smethod_0(Delegate278.smethod_0(e, Delegate278.delegate278_0), "Status", Delegate102.delegate102_0))
			{
				if (node.Status == NodeStatus.Away)
				{
					Delegate375.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(this.method_134), DispatcherPriority.Background, Array.Empty<object>(), Delegate375.delegate375_0);
					return;
				}
				if (!this.observableCollection_0.Any(new Func<Node, bool>(ReplikantoTabPage.<>c.<>c_0.method_7)))
				{
					Delegate375.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(this.method_135), DispatcherPriority.Background, Array.Empty<object>(), Delegate375.delegate375_0);
				}
			}
		}

		private void method_46(SlaveAccount slaveAccount_0)
		{
			string text = Delegate32.smethod_0("Status = {0}", slaveAccount_0.Status, Delegate32.delegate32_0);
			string text2 = Delegate32.smethod_0("Cross Order = {0}", Delegate274.smethod_0(this, Delegate274.delegate274_0).Invoke<bool>(new Func<bool>(this.method_136)) && slaveAccount_0.CrossOrder, Delegate32.delegate32_0);
			string text3 = Delegate32.smethod_0("Use ATM = {0}", Delegate274.smethod_0(this, Delegate274.delegate274_0).Invoke<bool>(new Func<bool>(this.method_137)) && slaveAccount_0.UseATM, Delegate32.delegate32_0);
			string text4 = Delegate32.smethod_0("Market Only = {0}", slaveAccount_0.MarketOnly, Delegate32.delegate32_0);
			string text5 = Delegate32.smethod_0("PreAllocation = {0}", slaveAccount_0.PreAllocation, Delegate32.delegate32_0);
			string text6 = Delegate32.smethod_0("Ratio = {0}", slaveAccount_0.Ratio, Delegate32.delegate32_0);
			string text7 = Delegate32.smethod_0("PctField = {0}", slaveAccount_0.PctField, Delegate32.delegate32_0);
			Delegate34.smethod_0(Delegate288.smethod_0(new string[]
			{
				"Replikanto: Follower account '",
				Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
				"' from tab '",
				this.UniqueID,
				"' workspace '",
				this.string_2,
				"', ",
				text,
				", ",
				text6,
				", ",
				text5,
				", ",
				text7,
				", ",
				text2,
				", ",
				text3,
				", ",
				text4
			}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
		}

		private int method_47(ReplikantoOrder replikantoOrder_0, SlaveAccount slaveAccount_0, out OrderAction orderAction_0, out OrderType orderType_0, out double double_0, out double double_1, out double double_2, int int_6 = 0)
		{
			ReplikantoTabPage.<>c__DisplayClass150_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass150_0();
			CS$<>8__locals1.replikantoOrder_0 = replikantoOrder_0;
			int num = 0;
			orderAction_0 = 0;
			orderType_0 = 99;
			double_0 = 0.0;
			double_1 = 0.0;
			double_2 = 0.0;
			if (CS$<>8__locals1.replikantoOrder_0 != null)
			{
				int_6 = (CS$<>8__locals1.replikantoOrder_0.IsFromExecution ? CS$<>8__locals1.replikantoOrder_0.ExecutionQuantity : CS$<>8__locals1.replikantoOrder_0.Quantity);
				orderAction_0 = CS$<>8__locals1.replikantoOrder_0.OrderAction;
				orderType_0 = CS$<>8__locals1.replikantoOrder_0.OrderType;
				double_0 = CS$<>8__locals1.replikantoOrder_0.LimitPrice;
				double_1 = CS$<>8__locals1.replikantoOrder_0.StopPrice;
			}
			if (slaveAccount_0.Status != FollowerAccountStatus.Off && slaveAccount_0.Status != FollowerAccountStatus.Disarmed && int_6 != 0)
			{
				if (this.Account != null && CS$<>8__locals1.replikantoOrder_0 != null)
				{
					string text = "Replikanto: Calculating resulting quantity for leader account {0} with a {1} {2} {3} Order with {4} qty, name: \"{5}\" and strategy: \"{6}\" from tab \"{7}\"";
					object[] array = new object[8];
					array[0] = Delegate368.smethod_0(this.Account, Delegate368.delegate368_0);
					array[1] = orderType_0;
					array[2] = orderAction_0;
					array[3] = CS$<>8__locals1.replikantoOrder_0.OrderState;
					array[4] = int_6;
					int num2 = 5;
					ReplikantoOrder replikantoOrder_ = CS$<>8__locals1.replikantoOrder_0;
					array[num2] = ((replikantoOrder_ == null) ? null : replikantoOrder_.Name);
					int num3 = 6;
					ReplikantoOrder replikantoOrder_2 = CS$<>8__locals1.replikantoOrder_0;
					array[num3] = ((replikantoOrder_2 != null) ? replikantoOrder_2.StrategyName : null);
					array[7] = this.UniqueID;
					Delegate34.smethod_0(Delegate55.smethod_0(text, array, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
				}
				else if (orderType_0 == 3)
				{
					if (orderAction_0 == 0)
					{
						if (double_0 < double_1)
						{
							double_0 = double_1;
						}
					}
					else if (orderAction_0 == 2 && double_0 > double_1)
					{
						double_0 = double_1;
					}
				}
				if (this.Method == EnumMethod.AvailableCash)
				{
					num = Delegate377.smethod_0(Delegate376.smethod_0((double)((float)int_6) * slaveAccount_0.FactorAvailableEquity, Delegate376.delegate376_0), Delegate377.delegate377_0);
					double_2 = (double)int_6 * slaveAccount_0.FactorAvailableEquity - (double)num;
					if (CS$<>8__locals1.replikantoOrder_0 != null)
					{
						Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Follower account {0} will copy a leader account {1} {2} order from tab \"{3}\" with quantity {4}. The calculation AvailableCash was {5}", new object[]
						{
							Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
							orderType_0,
							orderAction_0,
							this.UniqueID,
							num,
							(double)int_6 * slaveAccount_0.FactorAvailableEquity
						}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
					}
				}
				else if (this.Method == EnumMethod.PctChange)
				{
					Position position = Delegate378.smethod_0(Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0), Delegate378.delegate378_0).FirstOrDefault(new Func<Position, bool>(CS$<>8__locals1.method_0));
					if (position == null)
					{
						if (CS$<>8__locals1.replikantoOrder_0 != null)
						{
							Delegate34.smethod_0(Delegate288.smethod_0(new string[]
							{
								"Replikanto: Position for instrument ",
								Delegate327.smethod_0(this.Instrument, Delegate327.delegate327_0),
								" not found for follower account ",
								Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
								" from tab \"",
								this.UniqueID,
								"\""
							}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
						}
						return 0;
					}
					int num4 = Delegate193.smethod_0(position, Delegate193.delegate193_0);
					MarketPosition marketPosition = Delegate195.smethod_0(position, Delegate195.delegate195_0);
					if (CS$<>8__locals1.replikantoOrder_0 != null)
					{
						Delegate34.smethod_0(Delegate50.smethod_0("Replikanto: Position {0} found for follower account {1} from tab \"{2}\"", position, Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe), this.UniqueID, Delegate50.delegate50_0), 1, Delegate34.delegate34_0);
					}
					double pctField = slaveAccount_0.PctField;
					bool flag = false;
					ReplikantoOrder replikantoOrder_3 = CS$<>8__locals1.replikantoOrder_0;
					if (replikantoOrder_3 == null || replikantoOrder_3.OrderAction != 0)
					{
						ReplikantoOrder replikantoOrder_4 = CS$<>8__locals1.replikantoOrder_0;
						if (replikantoOrder_4 == null || replikantoOrder_4.OrderAction != 1)
						{
							ReplikantoOrder replikantoOrder_5 = CS$<>8__locals1.replikantoOrder_0;
							if (replikantoOrder_5 == null || replikantoOrder_5.OrderAction != 2)
							{
								ReplikantoOrder replikantoOrder_6 = CS$<>8__locals1.replikantoOrder_0;
								if (replikantoOrder_6 == null || replikantoOrder_6.OrderAction != 3)
								{
									goto IL_03DB;
								}
							}
							flag = false;
							goto IL_03DB;
						}
					}
					flag = true;
					IL_03DB:
					if (marketPosition != null)
					{
						if (marketPosition == 1)
						{
							if (pctField > 0.0)
							{
								if (!flag)
								{
									num = Delegate377.smethod_0(Delegate376.smethod_0((double)num4 * (pctField / 100.0), Delegate376.delegate376_0), Delegate377.delegate377_0);
									double_2 = (double)num4 * (pctField / 100.0) - (double)num;
									orderAction_0 = 2;
									if (CS$<>8__locals1.replikantoOrder_0 != null)
									{
										Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Increase accounts {0} position {1} in {2} from tab \"{3}\"", new object[]
										{
											Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
											position,
											num,
											this.UniqueID
										}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
									}
								}
							}
							else if (pctField < 0.0)
							{
								if (flag)
								{
									num = Delegate377.smethod_0(Delegate376.smethod_0((double)num4 * (Delegate379.smethod_0(pctField, Delegate379.delegate379_0) / 100.0), Delegate376.delegate376_0), Delegate377.delegate377_0);
									double_2 = (double)num4 * (Delegate379.smethod_0(pctField, Delegate379.delegate379_0) / 100.0) - (double)num;
									orderAction_0 = 0;
									if (CS$<>8__locals1.replikantoOrder_0 != null)
									{
										Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Decrease accounts {0} position {1} in {2} from tab \"{3}\"", new object[]
										{
											Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
											position,
											num,
											this.UniqueID
										}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
									}
								}
							}
							else if (CS$<>8__locals1.replikantoOrder_0 != null)
							{
								Delegate34.smethod_0(Delegate288.smethod_0(new string[]
								{
									"Replikanto: Account ",
									Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
									" from tab \"",
									this.UniqueID,
									"\" has a short position but percentage value is zero"
								}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
							}
						}
					}
					else if (pctField > 0.0)
					{
						if (flag)
						{
							num = Delegate377.smethod_0(Delegate376.smethod_0((double)num4 * (pctField / 100.0), Delegate376.delegate376_0), Delegate377.delegate377_0);
							double_2 = (double)num4 * (pctField / 100.0) - (double)num;
							orderAction_0 = 0;
							if (CS$<>8__locals1.replikantoOrder_0 != null)
							{
								Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Increase accounts {0} position {1} in {2} from tab \"{3}\"", new object[]
								{
									Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
									position,
									num,
									this.UniqueID
								}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
							}
						}
					}
					else if (pctField < 0.0)
					{
						if (!flag)
						{
							num = Delegate377.smethod_0(Delegate376.smethod_0((double)num4 * (Delegate379.smethod_0(pctField, Delegate379.delegate379_0) / 100.0), Delegate376.delegate376_0), Delegate377.delegate377_0);
							double_2 = (double)num4 * (Delegate379.smethod_0(pctField, Delegate379.delegate379_0) / 100.0) - (double)num;
							orderAction_0 = 2;
							if (CS$<>8__locals1.replikantoOrder_0 != null)
							{
								Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Decrease accounts {0} position {1} in {2} from tab \"{3}\"", new object[]
								{
									Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
									position,
									num,
									this.UniqueID
								}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
							}
						}
					}
					else
					{
						Delegate34.smethod_0(Delegate288.smethod_0(new string[]
						{
							"Replikanto: Account ",
							Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
							" from tab \"",
							this.UniqueID,
							"\" has a long position but percentage value is zero"
						}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
					}
				}
				else if (this.Method == EnumMethod.NetLiq)
				{
					num = Delegate377.smethod_0(Delegate376.smethod_0((double)((float)int_6) * slaveAccount_0.FactorNetLiq, Delegate376.delegate376_0), Delegate377.delegate377_0);
					double_2 = (double)int_6 * slaveAccount_0.FactorNetLiq - (double)num;
					if (CS$<>8__locals1.replikantoOrder_0 != null)
					{
						Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Follower account {0} order with quantity {1} was calculated from tab \"{2}\". The result NetLiq calc is {3}", new object[]
						{
							Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
							num,
							this.UniqueID,
							(double)int_6 * slaveAccount_0.FactorNetLiq
						}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
					}
				}
				else if (this.Method == EnumMethod.EqualQuantity)
				{
					int num5 = 0;
					List<SlaveAccount> list = this.bindingList_0.ToList<SlaveAccount>();
					for (int i = 0; i < list.Count; i++)
					{
						SlaveAccount slaveAccount = list[i];
						if ((slaveAccount != null && slaveAccount.Status == FollowerAccountStatus.Checked) || (slaveAccount != null && slaveAccount.Status == FollowerAccountStatus.OutOfSync))
						{
							num5++;
						}
					}
					num = Delegate377.smethod_0(Delegate376.smethod_0((double)((float)int_6 / (float)num5), Delegate376.delegate376_0), Delegate377.delegate377_0);
					double_2 = (double)((float)int_6 / (float)num5 - (float)num);
					if (CS$<>8__locals1.replikantoOrder_0 != null)
					{
						Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Follower account {0} order with quantity {1} was calculated from tab \"{2}\". The result PooledQuantity calc is {3}", new object[]
						{
							Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
							num,
							this.UniqueID,
							(float)int_6 / (float)num5
						}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
					}
				}
				else if (this.Method != EnumMethod.ExactQuantity)
				{
					if (this.Method == EnumMethod.Ratio)
					{
						if (slaveAccount_0.Ratio < 0.0)
						{
							ReplikantoOrder replikantoOrder_7 = CS$<>8__locals1.replikantoOrder_0;
							if (replikantoOrder_7 == null || replikantoOrder_7.OrderAction != 0)
							{
								ReplikantoOrder replikantoOrder_8 = CS$<>8__locals1.replikantoOrder_0;
								if (replikantoOrder_8 != null && replikantoOrder_8.OrderAction == 2)
								{
									orderAction_0 = 1;
								}
								else
								{
									ReplikantoOrder replikantoOrder_9 = CS$<>8__locals1.replikantoOrder_0;
									if (replikantoOrder_9 == null || replikantoOrder_9.OrderAction != 3)
									{
										ReplikantoOrder replikantoOrder_10 = CS$<>8__locals1.replikantoOrder_0;
										if (replikantoOrder_10 != null && replikantoOrder_10.OrderAction == 1)
										{
											orderAction_0 = 2;
										}
									}
									else
									{
										orderAction_0 = 0;
									}
								}
							}
							else
							{
								orderAction_0 = 3;
							}
							ReplikantoOrder replikantoOrder_11 = CS$<>8__locals1.replikantoOrder_0;
							OrderType? orderType = ((replikantoOrder_11 == null) ? null : new OrderType?(replikantoOrder_11.OrderType));
							if (orderType != null)
							{
								OrderType valueOrDefault = orderType.GetValueOrDefault();
								if (valueOrDefault != null)
								{
									if (valueOrDefault - 3 <= 1)
									{
										orderType_0 = 0;
										double_1 = 0.0;
										ReplikantoOrder replikantoOrder_12 = CS$<>8__locals1.replikantoOrder_0;
										double_0 = ((replikantoOrder_12 == null) ? null : new double?(replikantoOrder_12.StopPrice)).Value;
									}
								}
								else if (this.ReplikantoProperties.orderTypeWhenInvert == 3)
								{
									orderType_0 = 3;
									double_1 = CS$<>8__locals1.replikantoOrder_0.LimitPrice;
									double num6 = Delegate380.smethod_0(Delegate357.smethod_0(CS$<>8__locals1.replikantoOrder_0.Instrument, Delegate357.delegate357_0), Delegate380.delegate380_0);
									double num7 = this.ReplikantoProperties.OffSet;
									if (orderAction_0 != 1 && orderAction_0 != 0)
									{
										double_0 = CS$<>8__locals1.replikantoOrder_0.LimitPrice - num7 * num6;
									}
									else
									{
										double_0 = CS$<>8__locals1.replikantoOrder_0.LimitPrice + num7 * num6;
									}
								}
								else
								{
									orderType_0 = 4;
									double_0 = 0.0;
									double_1 = CS$<>8__locals1.replikantoOrder_0.LimitPrice;
								}
							}
						}
						num = Delegate377.smethod_0(Delegate376.smethod_0((double)int_6 * Delegate379.smethod_0(slaveAccount_0.Ratio, Delegate379.delegate379_0), Delegate376.delegate376_0), Delegate377.delegate377_0);
						double_2 = (double)int_6 * Delegate379.smethod_0(slaveAccount_0.Ratio, Delegate379.delegate379_0) - (double)num;
						if (CS$<>8__locals1.replikantoOrder_0 != null)
						{
							Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Follower account {0} order with quantity {1} was calculated from tab \"{2}\". The result Ratio calc is {3}", new object[]
							{
								Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
								num,
								this.UniqueID,
								(double)int_6 * slaveAccount_0.Ratio
							}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
						}
					}
					else if (this.Method == EnumMethod.PreAllocation)
					{
						num = (int)slaveAccount_0.PreAllocation;
						if (CS$<>8__locals1.replikantoOrder_0 != null)
						{
							if (CS$<>8__locals1.replikantoOrder_0.IsFromExecution)
							{
								double num8 = (double)CS$<>8__locals1.replikantoOrder_0.Quantity / (double)slaveAccount_0.PreAllocation;
								double_2 = (double)(CS$<>8__locals1.replikantoOrder_0.Filled - (CS$<>8__locals1.replikantoOrder_0.Filled - CS$<>8__locals1.replikantoOrder_0.ExecutionQuantity)) / num8;
								num = Delegate377.smethod_0(Delegate376.smethod_0(double_2, Delegate376.delegate376_0), Delegate377.delegate377_0);
								double_2 -= (double)num;
							}
							Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Follower account {0} order with quantity {1} was calculated from tab \"{2}\". The PreAllocation value is {3}", new object[]
							{
								Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
								num,
								this.UniqueID,
								slaveAccount_0.PreAllocation
							}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
						}
					}
				}
				else
				{
					num = int_6;
					if (CS$<>8__locals1.replikantoOrder_0 != null)
					{
						Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Follower account {0} order with quantity {1} was calculated from tab \"{2}\". The result ExactQuantity calc is {3}", new object[]
						{
							Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
							num,
							this.UniqueID,
							num
						}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
					}
				}
				return num;
			}
			return 0;
		}

		private void method_48(object sender, OrderEventArgs e)
		{
		}

		private void method_49(object sender, PositionEventArgs e)
		{
			ReplikantoTabPage.<>c__DisplayClass152_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass152_0();
			CS$<>8__locals1.positionEventArgs_0 = e;
			Position position = Delegate223.smethod_0(CS$<>8__locals1.positionEventArgs_0, Delegate223.delegate223_0);
			long? num;
			if (position != null)
			{
				Instrument instrument = Delegate381.smethod_0(position, Delegate381.delegate381_0);
				num = ((instrument != null) ? new long?(Delegate131.smethod_0(instrument, Delegate131.delegate131_0)) : null);
			}
			else
			{
				num = null;
			}
			long? num2 = num;
			Instrument instrument2 = this.Instrument;
			long? num3 = ((instrument2 != null) ? new long?(Delegate131.smethod_0(instrument2, Delegate131.delegate131_0)) : null);
			if (!((num2.GetValueOrDefault() == num3.GetValueOrDefault()) & (num2 != null == (num3 != null))))
			{
				Position position2 = Delegate223.smethod_0(CS$<>8__locals1.positionEventArgs_0, Delegate223.delegate223_0);
				long? num4;
				if (position2 != null)
				{
					Instrument instrument3 = Delegate381.smethod_0(position2, Delegate381.delegate381_0);
					num4 = ((instrument3 != null) ? new long?(Delegate131.smethod_0(instrument3, Delegate131.delegate131_0)) : null);
				}
				else
				{
					num4 = null;
				}
				num3 = num4;
				Instrument crossOrderInstrument = this.CrossOrderInstrument;
				num2 = ((crossOrderInstrument == null) ? null : new long?(Delegate131.smethod_0(crossOrderInstrument, Delegate131.delegate131_0)));
				if (!((num3.GetValueOrDefault() == num2.GetValueOrDefault()) & (num3 != null == (num2 != null))))
				{
					return;
				}
			}
			SlaveAccount slaveAccount = this.bindingList_0.ToList<SlaveAccount>().FirstOrDefault(new Func<SlaveAccount, bool>(CS$<>8__locals1.method_0));
			if (slaveAccount == null)
			{
				return;
			}
			Instrument instrument4 = ((!slaveAccount.CrossOrder || !this.isCrossOrderChecked) ? this.Instrument : this.CrossOrderInstrument);
			if (Delegate186.smethod_0(Delegate226.smethod_0(Delegate223.smethod_0(CS$<>8__locals1.positionEventArgs_0, Delegate223.delegate223_0), Delegate226.delegate226_0), Delegate186.delegate186_0) != Delegate186.smethod_0(instrument4, Delegate186.delegate186_0))
			{
				return;
			}
			this.method_53();
		}

		private void method_50(object sender, PositionEventArgs e)
		{
			Position position = Delegate223.smethod_0(e, Delegate223.delegate223_0);
			long? num;
			if (position != null)
			{
				Instrument instrument = Delegate381.smethod_0(position, Delegate381.delegate381_0);
				num = ((instrument == null) ? null : new long?(Delegate131.smethod_0(instrument, Delegate131.delegate131_0)));
			}
			else
			{
				num = null;
			}
			long? num2 = num;
			Instrument instrument2 = this.Instrument;
			long? num3 = ((instrument2 == null) ? null : new long?(Delegate131.smethod_0(instrument2, Delegate131.delegate131_0)));
			if (!((num2.GetValueOrDefault() == num3.GetValueOrDefault()) & (num2 != null == (num3 != null))))
			{
				return;
			}
			this.method_53();
		}

		private void method_51(object sender, ExecutionEventArgs e)
		{
			ReplikantoTabPage.<>c__DisplayClass154_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass154_0();
			CS$<>8__locals1.replikantoTabPage_0 = this;
			try
			{
				Execution execution = Delegate382.smethod_0(e, Delegate382.delegate382_0);
				long? num;
				if (execution == null)
				{
					num = null;
				}
				else
				{
					Account account = Delegate383.smethod_0(execution, Delegate383.delegate383_0);
					num = ((account != null) ? new long?(Delegate231.smethod_0(account, Delegate231.delegate231_0)) : null);
				}
				long? num2 = num;
				Account account2 = this.Account;
				long? num3 = ((account2 == null) ? null : new long?(Delegate231.smethod_0(account2, Delegate231.delegate231_0)));
				if ((num2.GetValueOrDefault() == num3.GetValueOrDefault()) & (num2 != null == (num3 != null)))
				{
					Execution execution2 = Delegate382.smethod_0(e, Delegate382.delegate382_0);
					long? num4;
					if (execution2 == null)
					{
						num4 = null;
					}
					else
					{
						Instrument instrument = Delegate384.smethod_0(execution2, Delegate384.delegate384_0);
						num4 = ((instrument == null) ? null : new long?(Delegate131.smethod_0(instrument, Delegate131.delegate131_0)));
					}
					num3 = num4;
					Instrument instrument2 = this.Instrument;
					num2 = ((instrument2 != null) ? new long?(Delegate131.smethod_0(instrument2, Delegate131.delegate131_0)) : null);
					if ((num3.GetValueOrDefault() == num2.GetValueOrDefault()) & (num3 != null == (num2 != null)))
					{
						try
						{
							Execution execution3 = Delegate382.smethod_0(e, Delegate382.delegate382_0);
							string text;
							if (execution3 != null)
							{
								Order order = Delegate385.smethod_0(execution3, Delegate385.delegate385_0);
								if (order != null)
								{
									Account account3 = Delegate386.smethod_0(order, Delegate386.delegate386_0);
									if (account3 != null)
									{
										Connection connection = Delegate179.smethod_0(account3, Delegate179.delegate179_0);
										if (connection != null)
										{
											ConnectOptions connectOptions = Delegate387.smethod_0(connection, Delegate387.delegate387_0);
											text = ((connectOptions == null) ? null : Delegate388.smethod_0(connectOptions, Delegate388.delegate388_0));
										}
										else
										{
											text = null;
										}
									}
									else
									{
										text = null;
									}
								}
								else
								{
									text = null;
								}
							}
							else
							{
								text = null;
							}
							if (Delegate102.smethod_0(text, Delegate389.smethod_0(Delegate45.smethod_0(typeof(SimulatorOptions).TypeHandle, Delegate45.delegate45_0), Delegate389.delegate389_0), Delegate102.delegate102_0))
							{
								Delegate34.smethod_0(Delegate50.smethod_0("Replikanto: Has discarded the execution {0}, order {1} \"{2}\" originated from Simulated Data Feed connection. It will not be sen to nodes.", Delegate390.smethod_0(Delegate382.smethod_0(e, Delegate382.delegate382_0), Delegate390.delegate390_0), Delegate138.smethod_0(Delegate107.smethod_0(Delegate382.smethod_0(e, Delegate382.delegate382_0), Delegate107.delegate107_0), Delegate138.mDysTjiIyF), Delegate145.smethod_0(Delegate107.smethod_0(Delegate382.smethod_0(e, Delegate382.delegate382_0), Delegate107.delegate107_0), Delegate145.delegate145_0), Delegate50.delegate50_0), 1, Delegate34.delegate34_0);
								return;
							}
						}
						catch
						{
						}
						try
						{
							if (ReplikantoTabPage.list_5.Contains(Delegate114.smethod_0(Delegate107.smethod_0(Delegate382.smethod_0(e, Delegate382.delegate382_0), Delegate107.delegate107_0), Delegate114.delegate114_0)))
							{
								string text2 = "Replikanto: Blocked the copy of the execution {0}, order {1} \"{2}\" originated from a leader that wants to prevent its orders to be copied";
								Execution execution4 = Delegate382.smethod_0(e, Delegate382.delegate382_0);
								object obj = ((execution4 == null) ? null : Delegate391.smethod_0(execution4, Delegate391.delegate391_0));
								Execution execution5 = Delegate382.smethod_0(e, Delegate382.delegate382_0);
								object obj2;
								if (execution5 == null)
								{
									obj2 = null;
								}
								else
								{
									Order order2 = Delegate385.smethod_0(execution5, Delegate385.delegate385_0);
									obj2 = ((order2 == null) ? null : Delegate392.smethod_0(order2, Delegate392.delegate392_0));
								}
								Execution execution6 = Delegate382.smethod_0(e, Delegate382.delegate382_0);
								OrderState? orderState;
								if (execution6 == null)
								{
									orderState = null;
								}
								else
								{
									Order order3 = Delegate385.smethod_0(execution6, Delegate385.delegate385_0);
									orderState = ((order3 == null) ? null : new OrderState?(Delegate393.smethod_0(order3, Delegate393.delegate393_0)));
								}
								Delegate34.smethod_0(Delegate50.smethod_0(text2, obj, obj2, orderState, Delegate50.delegate50_0), 2, Delegate34.delegate34_0);
								if (Delegate394.smethod_0(Delegate145.smethod_0(Delegate107.smethod_0(Delegate382.smethod_0(e, Delegate382.delegate382_0), Delegate107.delegate107_0), Delegate145.delegate145_0), Delegate394.vupglcLpc3))
								{
									ReplikantoTabPage.list_5.Remove(Delegate114.smethod_0(Delegate107.smethod_0(Delegate382.smethod_0(e, Delegate382.delegate382_0), Delegate107.delegate107_0), Delegate114.delegate114_0));
								}
								return;
							}
						}
						catch
						{
						}
						string text3 = "Replikanto: OnExecutionUpdate \"{0}\" \"{1}\" \"{2}\" from workspace \"{3}\" and tab \"{4}\"";
						object[] array = new object[5];
						array[0] = Delegate395.smethod_0(e, Delegate395.delegate395_0);
						int num5 = 1;
						Execution execution7 = Delegate382.smethod_0(e, Delegate382.delegate382_0);
						array[num5] = ((execution7 != null) ? new long?(Delegate396.smethod_0(execution7, Delegate396.delegate396_0)) : null);
						array[2] = Delegate397.smethod_0(e, Delegate397.delegate397_0);
						array[3] = this.string_2;
						array[4] = this.UniqueID;
						Delegate34.smethod_0(Delegate55.smethod_0(text3, array, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
						Execution execution8 = Delegate382.smethod_0(e, Delegate382.delegate382_0);
						Order order4 = ((execution8 == null) ? null : Delegate385.smethod_0(execution8, Delegate385.delegate385_0));
						if (order4 == null || Delegate398.smethod_0(order4, Delegate398.delegate398_0) != 1 || !Delegate102.smethod_0((order4 == null) ? null : Delegate399.smethod_0(order4, Delegate399.delegate399_0), ReplikantoTabPage.string_3, Delegate102.delegate102_0) || order4 == null || Delegate393.smethod_0(order4, Delegate393.delegate393_0) != 4)
						{
							CS$<>8__locals1.replikantoOrder_0 = ReplikantoOrder.Parse(Delegate382.smethod_0(e, Delegate382.delegate382_0));
							if (CS$<>8__locals1.replikantoOrder_0 != null)
							{
								this.method_62(CS$<>8__locals1.replikantoOrder_0, LeaderOrderSource.LOCAL);
								if (this.replikantoMode_0 == ReplikantoMode.LEADER_MODE)
								{
									if (this.observableCollection_0.Count(new Func<Node, bool>(ReplikantoTabPage.<>c.<>c_0.EqsOmAvZyi)) > 0)
									{
										Delegate274.smethod_0(this, Delegate274.delegate274_0).InvokeAsync<Task>(new Func<Task>(CS$<>8__locals1.method_0));
									}
									if (this.observableCollection_1.Count(new Func<InternetNode, bool>(ReplikantoTabPage.<>c.<>c_0.method_8)) > 0)
									{
										this.list_4.Add(Delegate382.smethod_0(e, Delegate382.delegate382_0));
										Execution execution9 = Delegate382.smethod_0(e, Delegate382.delegate382_0);
										bool flag;
										if (execution9 != null)
										{
											Order order5 = Delegate385.smethod_0(execution9, Delegate385.delegate385_0);
											OrderState? orderState2 = ((order5 == null) ? null : new OrderState?(Delegate393.smethod_0(order5, Delegate393.delegate393_0)));
											flag = (orderState2.GetValueOrDefault() == 2) & (orderState2 != null);
										}
										else
										{
											flag = false;
										}
										if (flag)
										{
											Timer timer = this.timer_2;
											if (timer != null && !Delegate400.smethod_0(timer, Delegate400.delegate400_0))
											{
												this.method_52(null, null);
												goto IL_0608;
											}
										}
										bool flag2 = false;
										try
										{
											Timer timer2 = this.timer_2;
											if (timer2 != null && !Delegate400.smethod_0(timer2, Delegate400.delegate400_0))
											{
												Delegate241.smethod_0(this.timer_2, true, Delegate241.delegate241_0);
												Timer timer3 = this.timer_2;
												if (timer3 != null)
												{
													Delegate361.smethod_0(timer3, Delegate361.delegate361_0);
												}
											}
										}
										catch (ObjectDisposedException)
										{
											flag2 = true;
										}
										catch (Exception)
										{
											flag2 = true;
										}
										finally
										{
											if (flag2)
											{
												this.method_52(null, null);
											}
										}
									}
								}
								IL_0608:;
							}
							else
							{
								Delegate34.smethod_0(Delegate32.smethod_0("Replikanto: Error parsing the execution event ({0})", e, Delegate32.delegate32_0), 3, Delegate34.delegate34_0);
							}
						}
					}
				}
			}
			catch (Exception)
			{
			}
		}

		private void method_52(object sender, ElapsedEventArgs e)
		{
			try
			{
				List<Execution> list = this.list_4.ToList<Execution>();
				for (int i = 0; i < list.Count; i++)
				{
					ReplikantoTabPage.<>c__DisplayClass155_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass155_0();
					CS$<>8__locals1.replikantoTabPage_0 = this;
					CS$<>8__locals1.execution_0 = list[i];
					CS$<>8__locals1.execution_1 = CS$<>8__locals1.execution_0;
					int num = 1;
					if (CS$<>8__locals1.execution_0 != null)
					{
						ReplikantoTabPage.<>c__DisplayClass155_1 CS$<>8__locals2 = new ReplikantoTabPage.<>c__DisplayClass155_1();
						CS$<>8__locals2.<>c__DisplayClass155_0_0 = CS$<>8__locals1;
						CS$<>8__locals2.replikantoOrder_0 = ReplikantoOrder.Parse(CS$<>8__locals2.<>c__DisplayClass155_0_0.execution_0);
						this.list_4.Remove(CS$<>8__locals2.<>c__DisplayClass155_0_0.execution_0);
						if (list.Remove(CS$<>8__locals2.<>c__DisplayClass155_0_0.execution_0))
						{
							i--;
						}
						ReplikantoTabPage.<>c__DisplayClass155_1 CS$<>8__locals3 = CS$<>8__locals2;
						Execution execution_ = CS$<>8__locals2.<>c__DisplayClass155_0_0.execution_0;
						CS$<>8__locals3.order_0 = ((execution_ == null) ? null : Delegate385.smethod_0(execution_, Delegate385.delegate385_0));
						IEnumerable<Execution> enumerable = list.ToList<Execution>().Where(new Func<Execution, bool>(CS$<>8__locals2.method_0));
						IEnumerator<Execution> enumerator = enumerable.GetEnumerator();
						try
						{
							while (Delegate38.smethod_0(enumerator, Delegate38.delegate38_0))
							{
								Execution execution = enumerator.Current;
								CS$<>8__locals2.replikantoOrder_0.IsLastExit = Delegate128.smethod_0(execution, Delegate128.delegate128_0);
								CS$<>8__locals2.replikantoOrder_0.IsEntry = Delegate129.smethod_0(execution, Delegate129.delegate129_0);
								CS$<>8__locals2.replikantoOrder_0.ExecutionQuantity += Delegate130.smethod_0(execution, Delegate130.delegate130_0);
								CS$<>8__locals2.replikantoOrder_0.Time = Delegate117.smethod_0(execution, Delegate117.delegate117_0);
								num++;
								this.list_4.Remove(execution);
								list.Remove(execution);
								CS$<>8__locals2.<>c__DisplayClass155_0_0.execution_1 = execution;
							}
						}
						finally
						{
							if (enumerator != null)
							{
								Delegate39.smethod_0(enumerator, Delegate39.delegate39_0);
							}
						}
						if (num > 1)
						{
							Account account = Delegate111.smethod_0(CS$<>8__locals2.<>c__DisplayClass155_0_0.execution_0, Delegate111.delegate111_0);
							int? num2;
							if (account != null)
							{
								Collection<Execution> collection = Delegate401.smethod_0(account, Delegate401.delegate401_0);
								if (collection != null)
								{
									num2 = collection.ToList<Execution>().Where(new Func<Execution, bool>(CS$<>8__locals2.<>c__DisplayClass155_0_0.method_0)).Sum(new Func<Execution, int?>(ReplikantoTabPage.<>c.<>c_0.method_9));
								}
								else
								{
									num2 = null;
								}
							}
							else
							{
								num2 = null;
							}
							int? num3 = num2;
							Execution execution_2 = CS$<>8__locals2.<>c__DisplayClass155_0_0.execution_1;
							int? num4;
							if (execution_2 == null)
							{
								num4 = null;
							}
							else
							{
								Order order = Delegate385.smethod_0(execution_2, Delegate385.delegate385_0);
								num4 = ((order != null) ? new int?(Delegate113.smethod_0(order, Delegate113.delegate113_0)) : null);
							}
							int? num5 = num4;
							bool flag = (num3.GetValueOrDefault() == num5.GetValueOrDefault()) & (num3 != null == (num5 != null));
							CS$<>8__locals2.replikantoOrder_0.OrderStateName = ((!flag) ? 4.ToString() : 2.ToString());
							string text = "Replikanto: Grouping {0} executions {1} ({2}) + \"{3}\" from workspace \"{4}\" and tab \"{5}\"";
							object[] array = new object[6];
							array[0] = num;
							int num6 = 1;
							Execution execution_3 = CS$<>8__locals2.<>c__DisplayClass155_0_0.execution_0;
							array[num6] = ((execution_3 == null) ? null : Delegate391.smethod_0(execution_3, Delegate391.delegate391_0));
							int num7 = 2;
							Execution execution_4 = CS$<>8__locals2.<>c__DisplayClass155_0_0.execution_0;
							array[num7] = Delegate110.smethod_0(((execution_4 != null) ? new long?(Delegate396.smethod_0(execution_4, Delegate396.delegate396_0) % 1000L) : null).ToString(), 3, '0', Delegate110.delegate110_0);
							int num8 = 3;
							string text2 = ", ";
							IEnumerable<string> enumerable2;
							if (enumerable != null)
							{
								enumerable2 = enumerable.Select(new Func<Execution, string>(ReplikantoTabPage.<>c.<>c_0.method_10));
							}
							else
							{
								enumerable2 = null;
							}
							array[num8] = Delegate49.smethod_0(text2, enumerable2, Delegate49.delegate49_0);
							array[4] = this.string_2;
							array[5] = this.UniqueID;
							Delegate34.smethod_0(Delegate55.smethod_0(text, array, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
						}
						Delegate274.smethod_0(this, Delegate274.delegate274_0).InvokeAsync<Task>(new Func<Task>(CS$<>8__locals2.method_1));
					}
				}
				if (Delegate372.smethod_0(this.list_4, Delegate372.delegate372_0))
				{
					bool flag2 = false;
					try
					{
						Delegate28.smethod_0(this.timer_2, Delegate28.delegate28_0);
						Delegate241.smethod_0(this.timer_2, false, Delegate241.delegate241_0);
					}
					catch (ObjectDisposedException)
					{
						flag2 = true;
					}
					catch (Exception)
					{
						flag2 = true;
					}
					finally
					{
						if (flag2)
						{
							try
							{
								Delegate241.smethod_0(this.timer_2, false, Delegate241.delegate241_0);
								Delegate28.smethod_0(this.timer_2, Delegate28.delegate28_0);
							}
							catch
							{
							}
						}
					}
				}
			}
			catch (Exception)
			{
			}
		}

		private void OnOrderUpdate(object sender, OrderEventArgs e)
		{
			ReplikantoTabPage.<>c__DisplayClass156_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass156_0();
			CS$<>8__locals1.orderEventArgs_0 = e;
			CS$<>8__locals1.replikantoTabPage_0 = this;
			if (!this.orderState_1.Any(new Func<OrderState, bool>(CS$<>8__locals1.method_0)))
			{
				if (this.Account != null && this.Instrument != null)
				{
					Order order = Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0);
					long? num;
					if (order != null)
					{
						Account account = Delegate386.smethod_0(order, Delegate386.delegate386_0);
						num = ((account == null) ? null : new long?(Delegate231.smethod_0(account, Delegate231.delegate231_0)));
					}
					else
					{
						num = null;
					}
					long? num2 = num;
					Account account2 = this.Account;
					long? num3 = ((account2 != null) ? new long?(Delegate231.smethod_0(account2, Delegate231.delegate231_0)) : null);
					if ((num2.GetValueOrDefault() == num3.GetValueOrDefault()) & (num2 != null == (num3 != null)))
					{
						Order order2 = Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0);
						long? num4;
						if (order2 != null)
						{
							Instrument instrument = Delegate402.smethod_0(order2, Delegate402.delegate402_0);
							num4 = ((instrument != null) ? new long?(Delegate131.smethod_0(instrument, Delegate131.delegate131_0)) : null);
						}
						else
						{
							num4 = null;
						}
						num3 = num4;
						Instrument instrument2 = this.Instrument;
						num2 = ((instrument2 != null) ? new long?(Delegate131.smethod_0(instrument2, Delegate131.delegate131_0)) : null);
						if ((num3.GetValueOrDefault() == num2.GetValueOrDefault()) & (num3 != null == (num2 != null)))
						{
							try
							{
								Order order3 = Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0);
								bool flag;
								if (order3 != null)
								{
									Account account3 = Delegate386.smethod_0(order3, Delegate386.delegate386_0);
									Provider? provider = ((account3 != null) ? new Provider?(Delegate127.smethod_0(account3, Delegate127.delegate127_0)) : null);
									flag = (provider.GetValueOrDefault() == 13) & (provider != null);
								}
								else
								{
									flag = false;
								}
								if (flag)
								{
									string text = "Replikanto: Has discarded the order {0} \"{1}\" originated from {2} account";
									Order order4 = Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0);
									object obj = ((order4 != null) ? Delegate392.smethod_0(order4, Delegate392.delegate392_0) : null);
									Order order5 = Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0);
									Delegate34.smethod_0(Delegate50.smethod_0(text, obj, (order5 == null) ? null : new OrderState?(Delegate393.smethod_0(order5, Delegate393.delegate393_0)), "Playback101", Delegate50.delegate50_0), 1, Delegate34.delegate34_0);
									return;
								}
							}
							catch
							{
							}
							try
							{
								if (ReplikantoTabPage.list_5.Contains(Delegate114.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate114.delegate114_0)))
								{
									string text2 = "Replikanto: Blocked the copy of the order {0} \"{1}\" originated from a leader that wants to prevent its orders to be copied";
									Order order6 = Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0);
									Delegate34.smethod_0(Delegate82.smethod_0(text2, (order6 != null) ? Delegate392.smethod_0(order6, Delegate392.delegate392_0) : null, Delegate158.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate158.YneVagLmKx), Delegate82.delegate82_0), 2, Delegate34.delegate34_0);
									if (Delegate394.smethod_0(Delegate158.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate158.YneVagLmKx), Delegate394.vupglcLpc3))
									{
										ReplikantoTabPage.list_5.Remove(Delegate114.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate114.delegate114_0));
									}
									return;
								}
							}
							catch
							{
							}
							string text3 = string.Empty;
							try
							{
								string text4 = "{0}{1:ssFFFFFFF}{2:D}";
								Order order7 = Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0);
								object obj2 = ((order7 != null) ? new long?(Delegate403.smethod_0(order7, Delegate403.delegate403_0)) : null);
								Order order8 = Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0);
								text3 = Delegate50.smethod_0(text4, obj2, (order8 == null) ? null : new DateTime?(Delegate404.smethod_0(order8, Delegate404.delegate404_0)), Delegate158.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate158.YneVagLmKx), Delegate50.delegate50_0);
								ulong num5 = Delegate405.smethod_0(text3, Delegate405.delegate405_0);
								if (num5 > 0UL && this.hashSet_0.Contains(num5))
								{
									string text5 = "Replikanto: Info [1001] for order {0} {1}";
									Order order9 = Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0);
									Delegate34.smethod_0(Delegate82.smethod_0(text5, (order9 != null) ? new long?(Delegate403.smethod_0(order9, Delegate403.delegate403_0)) : null, Delegate158.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate158.YneVagLmKx), Delegate82.delegate82_0), 1, Delegate34.delegate34_0);
									return;
								}
								if (this.hashSet_0.Add(num5))
								{
									Delegate25.smethod_0(ReplikantoTabPage.int_2, Delegate25.delegate25_0).ContinueWith<DispatcherOperation>(new Func<Task, object, DispatcherOperation>(CS$<>8__locals1.method_1), num5);
								}
							}
							catch (Exception)
							{
							}
							string text6 = "Replikanto: OnOrderUpdate {0} \"{1}\" \"{2}\" \"{3}\" from workspace \"{4}\" and tab \"{5}\"";
							object[] array = new object[6];
							int num6 = 0;
							Order order10 = Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0);
							array[num6] = ((order10 == null) ? null : Delegate392.smethod_0(order10, Delegate392.delegate392_0));
							int num7 = 1;
							Order order11 = Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0);
							array[num7] = ((order11 == null) ? null : new OrderState?(Delegate393.smethod_0(order11, Delegate393.delegate393_0)));
							int num8 = 2;
							Order order12 = Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0);
							array[num8] = ((order12 == null) ? null : new long?(Delegate403.smethod_0(order12, Delegate403.delegate403_0)));
							array[3] = text3;
							array[4] = this.string_2;
							array[5] = this.UniqueID;
							Delegate34.smethod_0(Delegate55.smethod_0(text6, array, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
							CS$<>8__locals1.replikantoOrder_0 = ReplikantoOrder.Parse(CS$<>8__locals1.orderEventArgs_0);
							if (Delegate158.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate158.YneVagLmKx) == 2 || Delegate158.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate158.YneVagLmKx) == 4)
							{
								if (Delegate406.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate406.delegate406_0))
								{
									Order order13 = Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0);
									if (((order13 != null) ? Delegate407.smethod_0(order13, Delegate407.delegate407_0) : null) != null)
									{
										Order order14 = Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0);
										if (((order14 != null) ? Delegate407.smethod_0(order14, Delegate407.delegate407_0) : null) is AtmStrategy)
										{
											Order order15 = Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0);
											AtmStrategy atmStrategy = (AtmStrategy)((order15 == null) ? null : Delegate407.smethod_0(order15, Delegate407.delegate407_0));
											int num9 = Delegate156.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate156.delegate156_0);
											int num10 = 0;
											int num11 = 0;
											int num12 = Delegate408.smethod_0(atmStrategy, Delegate408.delegate408_0).Length;
											List<Order> list = new List<Order>();
											for (int i = 0; i < num12; i++)
											{
												Collection<Order> collection = Delegate409.smethod_0(atmStrategy, i, Delegate409.delegate409_0);
												Collection<Order> collection2 = Delegate410.smethod_0(atmStrategy, i, Delegate410.delegate410_0);
												if (collection.Count == 0 && collection2.Count == 0)
												{
													break;
												}
												for (int j = collection.Count - 1; j >= 0; j--)
												{
													Order order16 = collection[j];
													if (order16 != null && (Delegate145.smethod_0(order16, Delegate145.delegate145_0) == 10 || Delegate145.smethod_0(order16, Delegate145.delegate145_0) == null || Delegate145.smethod_0(order16, Delegate145.delegate145_0) == 50 || Delegate145.smethod_0(order16, Delegate145.delegate145_0) == 8))
													{
														this.list_2.Add(order16);
														list.Add(order16);
														num10 += Delegate123.smethod_0(order16, Delegate123.delegate123_0);
														if (num10 >= num9)
														{
															break;
														}
													}
												}
												for (int k = collection2.Count - 1; k >= 0; k--)
												{
													Order order17 = collection2[k];
													if (order17 != null && (Delegate145.smethod_0(order17, Delegate145.delegate145_0) == 10 || Delegate145.smethod_0(order17, Delegate145.delegate145_0) == null || Delegate145.smethod_0(order17, Delegate145.delegate145_0) == 50 || Delegate145.smethod_0(order17, Delegate145.delegate145_0) == 8))
													{
														this.list_3.Add(order17);
														list.Add(order17);
														num11 += Delegate123.smethod_0(order17, Delegate123.delegate123_0);
														if (num11 >= num9)
														{
															break;
														}
													}
												}
												if (!Delegate372.smethod_0(list, Delegate372.delegate372_0) && (num10 >= num9 || num11 >= num9))
												{
													break;
												}
											}
											if (this.list_2.Count <= 0)
											{
												int count = this.list_3.Count;
											}
										}
									}
								}
								ReplikantoAccount replikantoAccount = CS$<>8__locals1.replikantoOrder_0.ReplikantoAccount;
								if (replikantoAccount != null && replikantoAccount.Provider == 50)
								{
									long num13;
									if (CS$<>8__locals1.replikantoOrder_0.WebStrategyId > 0L)
									{
										ServerStrategy serverStrategy;
										if (this.concurrentDictionary_5.TryGetValue(CS$<>8__locals1.replikantoOrder_0.WebStrategyId, out serverStrategy))
										{
											int bracketIndex = serverStrategy.GetBracketIndex(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0));
											if (bracketIndex >= 0)
											{
												CompositeID stopOrder = serverStrategy.GetStopOrder(bracketIndex);
												if (!CompositeID.IsEmpty(stopOrder))
												{
													Order order18 = Delegate411.smethod_0(Delegate149.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate149.delegate149_0), stopOrder.Id, Delegate411.delegate411_0);
													if (order18 != null && Delegate104.smethod_0(Delegate138.smethod_0(order18, Delegate138.mDysTjiIyF), CS$<>8__locals1.replikantoOrder_0.OrderId, Delegate104.delegate104_0))
													{
														this.list_2.Add(order18);
													}
												}
												CompositeID targetOrder = serverStrategy.GetTargetOrder(bracketIndex);
												if (!CompositeID.IsEmpty(targetOrder))
												{
													Order order19 = Delegate411.smethod_0(Delegate149.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate149.delegate149_0), targetOrder.Id, Delegate411.delegate411_0);
													if (order19 != null && Delegate104.smethod_0(Delegate138.smethod_0(order19, Delegate138.mDysTjiIyF), CS$<>8__locals1.replikantoOrder_0.OrderId, Delegate104.delegate104_0))
													{
														this.list_3.Add(order19);
													}
												}
											}
											if (this.list_2.Count <= 0 && this.list_3.Count > 0)
											{
											}
										}
									}
									else if (Delegate412.smethod_0(Delegate163.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate163.delegate163_0), ref num13, Delegate412.delegate412_0) && !this.concurrentDictionary_5.ContainsKey(num13))
									{
										foreach (ServerStrategy serverStrategy2 in this.concurrentDictionary_5.Values.ToList<ServerStrategy>())
										{
											if (serverStrategy2.Contains(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0)))
											{
												int bracketIndex2 = serverStrategy2.GetBracketIndex(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0));
												if (bracketIndex2 >= 0)
												{
													CompositeID stopOrder2 = serverStrategy2.GetStopOrder(bracketIndex2);
													if (!CompositeID.IsEmpty(stopOrder2))
													{
														Order order20 = Delegate411.smethod_0(Delegate149.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate149.delegate149_0), stopOrder2.Id, Delegate411.delegate411_0);
														if (order20 != null && Delegate104.smethod_0(Delegate138.smethod_0(order20, Delegate138.mDysTjiIyF), CS$<>8__locals1.replikantoOrder_0.OrderId, Delegate104.delegate104_0))
														{
															this.list_2.Add(order20);
														}
													}
													CompositeID targetOrder2 = serverStrategy2.GetTargetOrder(bracketIndex2);
													if (!CompositeID.IsEmpty(targetOrder2))
													{
														Order order21 = Delegate411.smethod_0(Delegate149.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate149.delegate149_0), targetOrder2.Id, Delegate411.delegate411_0);
														if (order21 != null && Delegate104.smethod_0(Delegate138.smethod_0(order21, Delegate138.mDysTjiIyF), CS$<>8__locals1.replikantoOrder_0.OrderId, Delegate104.delegate104_0))
														{
															this.list_3.Add(order21);
														}
													}
												}
												if (this.list_2.Count <= 0 && this.list_3.Count > 0)
												{
													break;
												}
												break;
											}
										}
									}
								}
							}
							if (Delegate158.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate158.YneVagLmKx) == 5 || Delegate158.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate158.YneVagLmKx) == 1 || Delegate158.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate158.YneVagLmKx) == 9 || Delegate158.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate158.YneVagLmKx) == 6)
							{
								if (!Delegate413.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate413.delegate413_0) && !Delegate414.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate414.delegate414_0) && !Delegate415.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate415.delegate415_0))
								{
									ReplikantoAccount replikantoAccount2 = CS$<>8__locals1.replikantoOrder_0.ReplikantoAccount;
									if (replikantoAccount2 == null || replikantoAccount2.Provider != 50 || (!Delegate416.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate416.delegate416_0) && !Delegate417.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate417.delegate417_0) && !Delegate418.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate418.delegate418_0) && !Delegate419.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate419.delegate419_0)))
									{
										goto IL_0D10;
									}
								}
								if (this.list_2.Contains(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0)) || this.list_3.Contains(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0)))
								{
									if (Delegate158.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate158.YneVagLmKx) == 6)
									{
										CS$<>8__locals1.replikantoOrder_0.SuppressChange = true;
									}
									else
									{
										CS$<>8__locals1.replikantoOrder_0.SuppressCancel = true;
									}
								}
							}
							IL_0D10:
							ReplikantoAccount replikantoAccount3 = CS$<>8__locals1.replikantoOrder_0.ReplikantoAccount;
							if (replikantoAccount3 != null && replikantoAccount3.Provider == 50)
							{
								ServerStrategy serverStrategy3;
								if (CS$<>8__locals1.replikantoOrder_0.WebStrategyId > 0L && this.concurrentDictionary_5.TryGetValue(CS$<>8__locals1.replikantoOrder_0.WebStrategyId, out serverStrategy3))
								{
									CS$<>8__locals1.replikantoOrder_0.WebStrategyOrderIndex = serverStrategy3.GetBracketIndex(CS$<>8__locals1.replikantoOrder_0);
									if (CS$<>8__locals1.replikantoOrder_0.WebStrategyOrderIndex < 0)
									{
									}
								}
								else
								{
									CS$<>8__locals1.replikantoOrder_0.WebStrategyOrderIndex = 0;
								}
								try
								{
									Position position = Delegate228.smethod_0(this.Account, Delegate186.smethod_0(this.Instrument, Delegate186.delegate186_0), Delegate228.delegate228_0);
									if (position != null && Delegate195.smethod_0(position, Delegate195.delegate195_0) != 2)
									{
										ReplikantoTabPage.<>c__DisplayClass156_2 CS$<>8__locals2 = new ReplikantoTabPage.<>c__DisplayClass156_2();
										CS$<>8__locals2.<>c__DisplayClass156_0_0 = CS$<>8__locals1;
										ReplikantoTabPage.<>c__DisplayClass156_2 CS$<>8__locals3 = CS$<>8__locals2;
										DateTime dateTime = Delegate160.smethod_0(CS$<>8__locals2.<>c__DisplayClass156_0_0.orderEventArgs_0, Delegate160.delegate160_0);
										CS$<>8__locals3.dateTime_0 = Delegate420.smethod_0(ref dateTime, Delegate233.smethod_0(2.0, Delegate233.delegate233_0), Delegate420.delegate420_0);
										if (Delegate193.smethod_0(position, Delegate193.delegate193_0) == Delegate161.smethod_0(CS$<>8__locals2.<>c__DisplayClass156_0_0.orderEventArgs_0, Delegate161.delegate161_0) && Delegate44.smethod_0(CS$<>8__locals2.<>c__DisplayClass156_0_0.replikantoOrder_0.Name, Delegate44.delegate44_0) && Delegate158.smethod_0(CS$<>8__locals2.<>c__DisplayClass156_0_0.orderEventArgs_0, Delegate158.YneVagLmKx) == 2 && Delegate146.smethod_0(Delegate162.smethod_0(CS$<>8__locals2.<>c__DisplayClass156_0_0.orderEventArgs_0, Delegate162.delegate162_0), Delegate146.delegate146_0) == 1)
										{
											if ((Delegate277.smethod_0(this.Account, Delegate277.delegate277_0).Where(new Func<Order, bool>(CS$<>8__locals2.method_0)).Sum(new Func<Order, int>(ReplikantoTabPage.<>c.<>c_0.method_11)) / 2 == Delegate193.smethod_0(position, Delegate193.delegate193_0) || Delegate277.smethod_0(this.Account, Delegate277.delegate277_0).Count(new Func<Order, bool>(CS$<>8__locals2.<>c__DisplayClass156_0_0.method_2)) == 0) && ((position != null && Delegate187.smethod_0(position, Delegate187.delegate187_0) == null && (Delegate121.smethod_0(Delegate162.smethod_0(CS$<>8__locals2.<>c__DisplayClass156_0_0.orderEventArgs_0, Delegate162.delegate162_0), Delegate121.delegate121_0) == 2 || Delegate121.smethod_0(Delegate162.smethod_0(CS$<>8__locals2.<>c__DisplayClass156_0_0.orderEventArgs_0, Delegate162.delegate162_0), Delegate121.delegate121_0) == 3)) || (position != null && Delegate187.smethod_0(position, Delegate187.delegate187_0) == 1 && (Delegate121.smethod_0(Delegate162.smethod_0(CS$<>8__locals2.<>c__DisplayClass156_0_0.orderEventArgs_0, Delegate162.delegate162_0), Delegate121.delegate121_0) == null || Delegate121.smethod_0(Delegate162.smethod_0(CS$<>8__locals2.<>c__DisplayClass156_0_0.orderEventArgs_0, Delegate162.delegate162_0), Delegate121.delegate121_0) == 1))))
											{
												if (!Delegate152.smethod_0(Delegate162.smethod_0(CS$<>8__locals2.<>c__DisplayClass156_0_0.orderEventArgs_0, Delegate162.delegate162_0), Delegate152.delegate152_0).Any(new Func<OrderEventArgs, bool>(ReplikantoTabPage.<>c.<>c_0.method_12)))
												{
													CS$<>8__locals2.<>c__DisplayClass156_0_0.replikantoOrder_0.Name = "Close";
													Delegate34.smethod_0(Delegate51.smethod_0("Replikanto: Leader order ", Delegate163.smethod_0(CS$<>8__locals2.<>c__DisplayClass156_0_0.orderEventArgs_0, Delegate163.delegate163_0), " from Tradovate/TradingView is a Close order", Delegate51.delegate51_0), 1, Delegate34.delegate34_0);
												}
											}
										}
									}
								}
								catch (Exception)
								{
								}
								if (Delegate158.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate158.YneVagLmKx) == 10)
								{
									Delegate421.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate144.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate144.delegate144_0), Delegate421.delegate421_0);
									Delegate422.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate147.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate147.kBvszTivj9), Delegate422.delegate422_0);
									Delegate423.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate123.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate123.delegate123_0), Delegate423.delegate423_0);
								}
							}
							this.method_62(CS$<>8__locals1.replikantoOrder_0, LeaderOrderSource.LOCAL);
							if (CS$<>8__locals1.replikantoOrder_0.SuppressCancel || CS$<>8__locals1.replikantoOrder_0.SuppressChange)
							{
								this.method_55(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0));
							}
							if (Delegate102.smethod_0(Delegate424.smethod_0(Delegate204.smethod_0(Delegate203.smethod_0(Delegate149.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate149.delegate149_0), Delegate203.delegate203_0), Delegate204.delegate204_0), Delegate424.delegate424_0), Delegate389.smethod_0(Delegate45.smethod_0(typeof(SimulatorOptions).TypeHandle, Delegate45.delegate45_0), Delegate389.delegate389_0), Delegate102.delegate102_0))
							{
								Delegate34.smethod_0(Delegate82.smethod_0("Replikanto: Has discarded the order {0} \"{1}\" originated from Simulated Data Feed connection. It will not be sen to nodes.", Delegate138.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate138.mDysTjiIyF), Delegate145.smethod_0(Delegate162.smethod_0(CS$<>8__locals1.orderEventArgs_0, Delegate162.delegate162_0), Delegate145.delegate145_0), Delegate82.delegate82_0), 1, Delegate34.delegate34_0);
								return;
							}
							Delegate274.smethod_0(this, Delegate274.delegate274_0).InvokeAsync<Task>(new Func<Task>(CS$<>8__locals1.method_3));
							return;
						}
					}
				}
				return;
			}
		}

		private void method_53()
		{
			try
			{
				Timer timer = this.timer_0;
				if (timer != null)
				{
					Delegate360.smethod_0(timer, Delegate360.delegate360_0);
				}
				Timer timer2 = this.timer_0;
				if (timer2 != null)
				{
					Delegate361.smethod_0(timer2, Delegate361.delegate361_0);
				}
			}
			catch (ObjectDisposedException)
			{
			}
		}

		private void QwpRlTrwi4(object sender, ElapsedEventArgs e)
		{
			this.method_54();
		}

		private void method_54()
		{
			ReplikantoTabPage.<>c__DisplayClass159_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass159_0();
			CS$<>8__locals1.replikantoTabPage_0 = this;
			if (this.Account != null && this.Instrument != null)
			{
				CS$<>8__locals1.marketPosition_0 = 2;
				CS$<>8__locals1.position_0 = null;
				try
				{
					CS$<>8__locals1.position_0 = Delegate228.smethod_0(this.Account, Delegate186.smethod_0(this.Instrument, Delegate186.delegate186_0), Delegate228.delegate228_0);
					if (CS$<>8__locals1.position_0 != null)
					{
						CS$<>8__locals1.marketPosition_0 = Delegate195.smethod_0(CS$<>8__locals1.position_0, Delegate195.delegate195_0);
					}
				}
				catch
				{
				}
				Parallel.ForEach<SlaveAccount>(this.bindingList_0.ToList<SlaveAccount>().Where(new Func<SlaveAccount, bool>(ReplikantoTabPage.<>c.<>c_0.method_13)), new Action<SlaveAccount>(CS$<>8__locals1.method_0));
				return;
			}
		}

		private void method_55(Order order_0)
		{
			try
			{
				this.list_2.Remove(order_0);
				this.list_3.Remove(order_0);
			}
			catch
			{
			}
		}

		private Task method_56(ReplikantoOrder replikantoOrder_0, RemoteNodes remoteNodes_0 = (RemoteNodes)3)
		{
			ReplikantoTabPage.<SendToAllNodes>d__161 <SendToAllNodes>d__;
			<SendToAllNodes>d__.<>t__builder = Delegate425.smethod_0(Delegate425.delegate425_0);
			<SendToAllNodes>d__.<>4__this = this;
			<SendToAllNodes>d__.replikantoOrder = replikantoOrder_0;
			<SendToAllNodes>d__.nodesToSend = remoteNodes_0;
			<SendToAllNodes>d__.<>1__state = -1;
			<SendToAllNodes>d__.<>t__builder.Start<ReplikantoTabPage.<SendToAllNodes>d__161>(ref <SendToAllNodes>d__);
			return Delegate426.smethod_0(ref <SendToAllNodes>d__.<>t__builder, Delegate426.delegate426_0);
		}

		private void method_57(ReplikantoOrder replikantoOrder_0)
		{
			if (!replikantoOrder_0.HasOpositeFilled)
			{
				if (replikantoOrder_0.HasOco() && (replikantoOrder_0.OrderState == 5 || replikantoOrder_0.OrderState == 1 || replikantoOrder_0.OrderState == 9 || replikantoOrder_0.OrderState == 6))
				{
					string text = replikantoOrder_0.Oco;
					if (replikantoOrder_0.Oco.Contains('|'))
					{
						text = Delegate191.smethod_0(replikantoOrder_0.Oco, new char[] { '|' }, Delegate191.delegate191_0)[0];
					}
					if (this.collection_0.Contains(Delegate97.smethod_0(text, "-", "", Delegate97.delegate97_0)))
					{
						replikantoOrder_0.HasOpositeFilled = true;
					}
				}
				return;
			}
		}

		private string method_58(ReplikantoOrder replikantoOrder_0, string string_4 = null)
		{
			string text = replikantoOrder_0.Name;
			if (!Delegate44.smethod_0(string_4, Delegate44.delegate44_0))
			{
				text = string_4;
			}
			string text2 = replikantoOrder_0.Id;
			if (Delegate99.smethod_0(text2, Delegate99.delegate99_0) > 16)
			{
				text2 = Delegate101.smethod_0(text2, 0, Delegate99.smethod_0(text2, Delegate99.delegate99_0) - 16, Delegate101.delegate101_0);
			}
			if (Delegate171.smethod_0(text, Delegate171.delegate171_0))
			{
				return Delegate51.smethod_0(text2, "-", this.UniqueID, Delegate51.delegate51_0);
			}
			string text3 = Delegate288.smethod_0(new string[] { text, "-", text2, "-", this.UniqueID }, Delegate288.delegate288_0);
			if (Delegate99.smethod_0(text3, Delegate99.delegate99_0) > ReplikantoTabPage.int_1)
			{
				return Delegate51.smethod_0(Delegate101.smethod_0(text3, 0, ReplikantoTabPage.int_1 / 2 - 1, Delegate101.delegate101_0), "...", Delegate428.smethod_0(text3, Delegate427.smethod_0(0, Delegate99.smethod_0(text3, Delegate99.delegate99_0) - (ReplikantoTabPage.int_1 / 2 - 2), Delegate427.delegate427_0), Delegate428.delegate428_0), Delegate51.delegate51_0);
			}
			return text3;
		}

		private string method_59(ReplikantoOrder replikantoOrder_0)
		{
			if (!this.ReplikantoProperties.StealthMode)
			{
				return this.method_58(replikantoOrder_0, null);
			}
			if (replikantoOrder_0.IsFromExecution)
			{
				return string.Empty;
			}
			return replikantoOrder_0.Name;
		}

		private string method_60(Order order_0, bool bool_5 = false, string string_4 = null)
		{
			ReplikantoTabPage.<>c__DisplayClass165_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass165_0();
			CS$<>8__locals1.order_0 = order_0;
			if (!this.ReplikantoProperties.StealthMode && !bool_5)
			{
				return Delegate116.smethod_0(CS$<>8__locals1.order_0, Delegate116.delegate116_0);
			}
			foreach (KeyValuePair<CompositeID, List<CompositeID>> keyValuePair in this.concurrentDictionary_2.ToArray())
			{
				IEnumerable<CompositeID> value = keyValuePair.Value;
				Func<CompositeID, bool> func;
				if ((func = CS$<>8__locals1.func_0) == null)
				{
					func = (CS$<>8__locals1.func_0 = new Func<CompositeID, bool>(CS$<>8__locals1.method_0));
				}
				if (value.FirstOrDefault(func) != null)
				{
					CompositeID key = keyValuePair.Key;
					return this.method_58(ReplikantoOrder.CreatePartialObject(key), string_4);
				}
			}
			return "";
		}

		private string method_61(ReplikantoOrder replikantoOrder_0, SlaveAccount slaveAccount_0)
		{
			string text2;
			try
			{
				ReplikantoAccount replikantoAccount = replikantoOrder_0.ReplikantoAccount;
				long num;
				if (replikantoAccount != null && replikantoAccount.Provider == 50 && replikantoOrder_0.WebStrategyId == 0L && Delegate412.smethod_0(replikantoOrder_0.OrderId, ref num, Delegate412.delegate412_0) && !replikantoOrder_0.HasOco())
				{
					if (replikantoOrder_0.IsLimit && !replikantoOrder_0.IsEntry)
					{
						string text = "{0}{1}{2}";
						object obj = ((!this.ReplikantoProperties.StealthMode) ? "TV" : string.Empty);
						object obj2 = Delegate429.smethod_0(num - 2L, Delegate429.delegate429_0);
						Account account = Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0);
						object obj3;
						if (account == null)
						{
							obj3 = null;
						}
						else
						{
							long num2 = Delegate231.smethod_0(account, Delegate231.delegate231_0);
							obj3 = Delegate430.smethod_0(ref num2, "D4", Delegate430.delegate430_0);
						}
						text2 = Delegate50.smethod_0(text, obj, obj2, obj3, Delegate50.delegate50_0);
					}
					else if ((!replikantoOrder_0.IsStopMarket && !replikantoOrder_0.IsStopLimit && !replikantoOrder_0.IsSimulatedStop) || replikantoOrder_0.IsEntry)
					{
						text2 = string.Empty;
					}
					else
					{
						string text3 = "{0}{1}{2}";
						object obj4 = ((!this.ReplikantoProperties.StealthMode) ? "TV" : string.Empty);
						object obj5 = Delegate429.smethod_0(num - 1L, Delegate429.delegate429_0);
						Account account2 = Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0);
						object obj6;
						if (account2 != null)
						{
							long num2 = Delegate231.smethod_0(account2, Delegate231.delegate231_0);
							obj6 = Delegate430.smethod_0(ref num2, "D4", Delegate430.delegate430_0);
						}
						else
						{
							obj6 = null;
						}
						text2 = Delegate50.smethod_0(text3, obj4, obj5, obj6, Delegate50.delegate50_0);
					}
				}
				else
				{
					ReplikantoAccount replikantoAccount2 = replikantoOrder_0.ReplikantoAccount;
					if (replikantoAccount2 != null && replikantoAccount2.Provider == 50 && replikantoOrder_0.WebStrategyId > 0L && !replikantoOrder_0.HasOco())
					{
						if ((!replikantoOrder_0.IsLimit && !replikantoOrder_0.IsStopMarket && !replikantoOrder_0.IsStopLimit && !replikantoOrder_0.IsSimulatedStop) || replikantoOrder_0.IsEntry)
						{
							text2 = string.Empty;
						}
						else
						{
							string text4 = "{0}{1}{2}";
							object obj7 = ((!this.ReplikantoProperties.StealthMode) ? "TD" : string.Empty);
							object obj8 = (long)(replikantoOrder_0.WebStrategyOrderIndex + 1) + replikantoOrder_0.WebStrategyId;
							Account account3 = Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0);
							object obj9;
							if (account3 != null)
							{
								long num2 = Delegate231.smethod_0(account3, Delegate231.delegate231_0);
								obj9 = Delegate430.smethod_0(ref num2, "D4", Delegate430.delegate430_0);
							}
							else
							{
								obj9 = null;
							}
							text2 = Delegate50.smethod_0(text4, obj7, obj8, obj9, Delegate50.delegate50_0);
						}
					}
					else if (this.ReplikantoProperties.StealthMode)
					{
						text2 = new string(Delegate431.smethod_0(replikantoOrder_0.Oco, Delegate431.delegate431_0));
					}
					else
					{
						string[] array = new string[5];
						array[0] = Delegate97.smethod_0(replikantoOrder_0.Oco, "-", string.Empty, Delegate97.delegate97_0);
						array[1] = "|";
						array[2] = this.UniqueID;
						array[3] = "|";
						int num3 = 4;
						Account account4 = Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0);
						array[num3] = ((account4 != null) ? new long?(Delegate231.smethod_0(account4, Delegate231.delegate231_0)) : null).ToString();
						string text5 = Delegate288.smethod_0(array, Delegate288.delegate288_0);
						text2 = (replikantoOrder_0.HasOco() ? text5 : string.Empty);
					}
				}
			}
			catch (Exception ex)
			{
				Delegate34.smethod_0(Delegate50.smethod_0("Replikanto: Info [1007] for {0} and {1}. {2}", replikantoOrder_0, slaveAccount_0, ex, Delegate50.delegate50_0), 1, Delegate34.delegate34_0);
				text2 = string.Empty;
			}
			return text2;
		}

		private void method_62(ReplikantoOrder replikantoOrder_0, LeaderOrderSource leaderOrderSource_0)
		{
			ReplikantoTabPage.<>c__DisplayClass167_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass167_0();
			CS$<>8__locals1.replikantoOrder_0 = replikantoOrder_0;
			CS$<>8__locals1.replikantoTabPage_0 = this;
			CS$<>8__locals1.string_0 = this.method_63(CS$<>8__locals1.replikantoOrder_0, leaderOrderSource_0);
			if ((CS$<>8__locals1.replikantoOrder_0.OrderState != 7 || !Delegate104.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, ReplikantoTabPage.string_3, Delegate104.delegate104_0)) && (!Delegate102.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "External", Delegate102.delegate102_0) || CS$<>8__locals1.replikantoOrder_0.OrderState != 10 || (CS$<>8__locals1.replikantoOrder_0.OrderType != null && CS$<>8__locals1.replikantoOrder_0.OrderType != 1)))
			{
				if (Delegate102.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "External", Delegate102.delegate102_0))
				{
					if (CS$<>8__locals1.replikantoOrder_0.OrderState != null)
					{
						if (CS$<>8__locals1.replikantoOrder_0.OrderState != 10 || CS$<>8__locals1.replikantoOrder_0.OrderUpdates == null)
						{
							goto IL_0162;
						}
						if (CS$<>8__locals1.replikantoOrder_0.OrderUpdates.FindIndex(new Predicate<ReplikantoOrderEventArgs>(ReplikantoTabPage.<>c.<>c_0.method_16)) != -1)
						{
							goto IL_0162;
						}
					}
					if (CS$<>8__locals1.replikantoOrder_0.OrderType == 3 || CS$<>8__locals1.replikantoOrder_0.OrderType == 4 || CS$<>8__locals1.replikantoOrder_0.OrderType == 2)
					{
						goto IL_0302;
					}
				}
				IL_0162:
				ReplikantoAccount replikantoAccount = CS$<>8__locals1.replikantoOrder_0.ReplikantoAccount;
				if (replikantoAccount != null && replikantoAccount.Provider == 50 && Delegate44.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, Delegate44.delegate44_0))
				{
					if (CS$<>8__locals1.replikantoOrder_0.OrderState == 10 && CS$<>8__locals1.replikantoOrder_0.OrderUpdates != null)
					{
						if (CS$<>8__locals1.replikantoOrder_0.OrderUpdates.Count(new Func<ReplikantoOrderEventArgs, bool>(ReplikantoTabPage.<>c.<>c_0.method_17)) == 1)
						{
							goto IL_0302;
						}
					}
					if (CS$<>8__locals1.replikantoOrder_0.OrderState == 2 && !CS$<>8__locals1.replikantoOrder_0.IsFromExecution && CS$<>8__locals1.replikantoOrder_0.OrderUpdates != null)
					{
						if (!CS$<>8__locals1.replikantoOrder_0.OrderUpdates.Any(new Func<ReplikantoOrderEventArgs, bool>(ReplikantoTabPage.<>c.<>c_0.method_18)))
						{
							goto IL_0302;
						}
					}
				}
				if (CS$<>8__locals1.replikantoOrder_0.OrderState == 6 && CS$<>8__locals1.replikantoOrder_0.OrderUpdates != null)
				{
					ReplikantoAccount replikantoAccount2 = CS$<>8__locals1.replikantoOrder_0.ReplikantoAccount;
					if (replikantoAccount2 != null && replikantoAccount2.Provider == 50)
					{
						if (CS$<>8__locals1.replikantoOrder_0.OrderUpdates.Count(new Func<ReplikantoOrderEventArgs, bool>(ReplikantoTabPage.<>c.<>c_0.method_19)) == 1)
						{
							if (CS$<>8__locals1.replikantoOrder_0.OrderUpdates.FindIndex(new Predicate<ReplikantoOrderEventArgs>(ReplikantoTabPage.<>c.<>c_0.method_20)) == -1)
							{
								goto IL_0302;
							}
						}
					}
				}
				if (CS$<>8__locals1.replikantoOrder_0.OrderState != 5 && CS$<>8__locals1.replikantoOrder_0.OrderState != 1)
				{
					if (CS$<>8__locals1.replikantoOrder_0.OrderState != 9)
					{
						if (CS$<>8__locals1.replikantoOrder_0.OrderState == 6)
						{
							ReplikantoTabPage.<>c__DisplayClass167_4 CS$<>8__locals2 = new ReplikantoTabPage.<>c__DisplayClass167_4();
							CS$<>8__locals2.<>c__DisplayClass167_0_0 = CS$<>8__locals1;
							if (this.ReplikantoProperties.OnlyActiveWokspace && Delegate104.smethod_0(this.string_2, Delegate42.smethod_0(Delegate42.delegate42_0), Delegate104.delegate104_0))
							{
								Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: From workspace \"{0}\" and tab \"{1}\" will not process the order {2} \"{3}\" due to \"{4}\" property", new object[]
								{
									this.string_2,
									this.UniqueID,
									CS$<>8__locals2.<>c__DisplayClass167_0_0.replikantoOrder_0.OrderId,
									CS$<>8__locals2.<>c__DisplayClass167_0_0.replikantoOrder_0.OrderState,
									Resources.OnlyActiveWokspace
								}, Delegate55.delegate55_0), 2, Delegate34.delegate34_0);
								return;
							}
							CS$<>8__locals2.string_0 = null;
							try
							{
								if (this.concurrentDictionary_4.TryGetValue(CS$<>8__locals2.<>c__DisplayClass167_0_0.replikantoOrder_0.OrderId, out CS$<>8__locals2.string_0))
								{
									if (!Delegate104.smethod_0(CS$<>8__locals2.<>c__DisplayClass167_0_0.replikantoOrder_0.Name, CS$<>8__locals2.string_0, Delegate104.delegate104_0))
									{
										CS$<>8__locals2.string_0 = null;
									}
									else
									{
										string text;
										this.concurrentDictionary_4.TryRemove(CS$<>8__locals2.<>c__DisplayClass167_0_0.replikantoOrder_0.OrderId, out text);
										this.concurrentDictionary_4.TryAdd(CS$<>8__locals2.<>c__DisplayClass167_0_0.replikantoOrder_0.OrderId, CS$<>8__locals2.<>c__DisplayClass167_0_0.replikantoOrder_0.Name);
									}
								}
							}
							catch (Exception)
							{
							}
							this.method_57(CS$<>8__locals2.<>c__DisplayClass167_0_0.replikantoOrder_0);
							Parallel.ForEach<SlaveAccount>(this.bindingList_0.ToList<SlaveAccount>().Where(new Func<SlaveAccount, bool>(ReplikantoTabPage.<>c.<>c_0.method_25)), new Action<SlaveAccount>(CS$<>8__locals2.method_0));
							goto IL_11B5;
						}
						else
						{
							if (CS$<>8__locals1.replikantoOrder_0.OrderState != 7 || !Delegate102.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, ReplikantoTabPage.string_3, Delegate102.delegate102_0))
							{
								if (CS$<>8__locals1.replikantoOrder_0.OrderState == 2 && !CS$<>8__locals1.replikantoOrder_0.IsFromExecution && Delegate102.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, ReplikantoTabPage.string_3, Delegate102.delegate102_0) && CS$<>8__locals1.replikantoOrder_0.OrderType == 1)
								{
									ReplikantoAccount replikantoAccount3 = CS$<>8__locals1.replikantoOrder_0.ReplikantoAccount;
									if (replikantoAccount3 != null && replikantoAccount3.Provider == 50)
									{
										goto IL_0947;
									}
								}
								if ((CS$<>8__locals1.replikantoOrder_0.OrderState != 2 && CS$<>8__locals1.replikantoOrder_0.OrderState != 4) || CS$<>8__locals1.replikantoOrder_0.IsFromExecution)
								{
									if (CS$<>8__locals1.replikantoOrder_0.OrderState == 13)
									{
										ReplikantoAccount replikantoAccount4 = CS$<>8__locals1.replikantoOrder_0.ReplikantoAccount;
										if (replikantoAccount4 != null && replikantoAccount4.Provider == 50)
										{
											if (this.ReplikantoProperties.OnlyActiveWokspace && Delegate104.smethod_0(this.string_2, Delegate42.smethod_0(Delegate42.delegate42_0), Delegate104.delegate104_0))
											{
												Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: From workspace \"{0}\" and tab \"{1}\" will not process the order {2} \"{3}\" due to \"{4}\" property", new object[]
												{
													this.string_2,
													this.UniqueID,
													CS$<>8__locals1.replikantoOrder_0.OrderId,
													CS$<>8__locals1.replikantoOrder_0.OrderState,
													Resources.OnlyActiveWokspace
												}, Delegate55.delegate55_0), 2, Delegate34.delegate34_0);
												return;
											}
											goto IL_11B5;
										}
									}
									if (CS$<>8__locals1.replikantoOrder_0.OrderState != null)
									{
										goto IL_11B5;
									}
									if (this.ReplikantoProperties.OnlyActiveWokspace && Delegate104.smethod_0(this.string_2, Delegate42.smethod_0(Delegate42.delegate42_0), Delegate104.delegate104_0))
									{
										Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: From workspace \"{0}\" and tab \"{1}\" will not process the order {2} \"{3}\" due to \"{4}\" property", new object[]
										{
											this.string_2,
											this.UniqueID,
											CS$<>8__locals1.replikantoOrder_0.OrderId,
											CS$<>8__locals1.replikantoOrder_0.OrderState,
											Resources.OnlyActiveWokspace
										}, Delegate55.delegate55_0), 2, Delegate34.delegate34_0);
										return;
									}
									try
									{
										if (leaderOrderSource_0 == LeaderOrderSource.LOCAL)
										{
											if (CS$<>8__locals1.replikantoOrder_0.OrderUpdates.Count(new Func<ReplikantoOrderEventArgs, bool>(ReplikantoTabPage.<>c.<>c_0.method_26)) == 1)
											{
												Delegate34.smethod_0(Delegate50.smethod_0("Replikanto: {0} Order ID: {1} = {2}", CS$<>8__locals1.replikantoOrder_0.OrderState, CS$<>8__locals1.replikantoOrder_0.Id, CS$<>8__locals1.replikantoOrder_0.OrderId, Delegate50.delegate50_0), 1, Delegate34.delegate34_0);
											}
										}
										goto IL_11B5;
									}
									catch
									{
										goto IL_11B5;
									}
								}
								Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Filled leader Order {0} from tab \"{1}\" [Limit Price: {2}, Stop Price: {3}, Quantity: {4}]", new object[]
								{
									CS$<>8__locals1.replikantoOrder_0.OrderId,
									this.UniqueID,
									CS$<>8__locals1.replikantoOrder_0.LimitPrice,
									CS$<>8__locals1.replikantoOrder_0.StopPrice,
									CS$<>8__locals1.replikantoOrder_0.Quantity
								}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
								if (CS$<>8__locals1.replikantoOrder_0.HasOco())
								{
									string text2 = CS$<>8__locals1.replikantoOrder_0.Oco;
									if (text2.Contains('|'))
									{
										text2 = Delegate191.smethod_0(text2, new char[] { '|' }, Delegate191.delegate191_0)[0];
									}
									text2 = Delegate97.smethod_0(text2, "-", "", Delegate97.delegate97_0);
									this.collection_0.Add(text2);
									Delegate304.smethod_0(Delegate25.smethod_0(ReplikantoTabPage.int_2, Delegate25.delegate25_0), new Action<Task, object>(CS$<>8__locals1.method_1), text2, Delegate304.delegate304_0);
								}
								if (this.ReplikantoProperties.OnlyActiveWokspace && Delegate104.smethod_0(this.string_2, Delegate42.smethod_0(Delegate42.delegate42_0), Delegate104.delegate104_0))
								{
									Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: From workspace \"{0}\" and tab \"{1}\" will not process the order {2} \"{3}\" due to \"{4}\" property", new object[]
									{
										this.string_2,
										this.UniqueID,
										CS$<>8__locals1.replikantoOrder_0.OrderId,
										CS$<>8__locals1.replikantoOrder_0.OrderState,
										Resources.OnlyActiveWokspace
									}, Delegate55.delegate55_0), 2, Delegate34.delegate34_0);
									return;
								}
								if (!this.ReplikantoProperties.CancelEntry)
								{
									goto IL_11B5;
								}
								uint cancelEntrySeconds = this.ReplikantoProperties.CancelEntrySeconds;
								List<CompositeID> list;
								if (CS$<>8__locals1.replikantoOrder_0.IsEntry && this.concurrentDictionary_2.TryGetValue(CS$<>8__locals1.replikantoOrder_0.GetCompositeID(), out list))
								{
									using (List<CompositeID>.Enumerator enumerator = list.ToList<CompositeID>().GetEnumerator())
									{
										while (enumerator.MoveNext())
										{
											CompositeID compositeID = enumerator.Current;
											IEnumerator<SlaveAccount> enumerator2 = this.bindingList_0.ToList<SlaveAccount>().Where(new Func<SlaveAccount, bool>(ReplikantoTabPage.<>c.<>c_0.yhwOydfaUk)).GetEnumerator();
											try
											{
												while (Delegate38.smethod_0(enumerator2, Delegate38.delegate38_0))
												{
													ReplikantoTabPage.<>c__DisplayClass167_6 CS$<>8__locals3 = new ReplikantoTabPage.<>c__DisplayClass167_6();
													CS$<>8__locals3.<>c__DisplayClass167_0_0 = CS$<>8__locals1;
													CS$<>8__locals3.slaveAccount_0 = enumerator2.Current;
													ReplikantoTabPage.<>c__DisplayClass167_7 CS$<>8__locals4 = new ReplikantoTabPage.<>c__DisplayClass167_7();
													CS$<>8__locals4.<>c__DisplayClass167_6_0 = CS$<>8__locals3;
													if ((CS$<>8__locals4.order_0 = Delegate411.smethod_0(Delegate230.smethod_0(CS$<>8__locals4.<>c__DisplayClass167_6_0.slaveAccount_0, Delegate230.delegate230_0), compositeID.Id, Delegate411.delegate411_0)) != null)
													{
														CS$<>8__locals4.dateTime_0 = Delegate178.smethod_0(Delegate178.delegate178_0);
														try
														{
															CS$<>8__locals4.dateTime_0 = CS$<>8__locals4.<>c__DisplayClass167_6_0.<>c__DisplayClass167_0_0.replikantoOrder_0.OrderUpdates[1].Time;
														}
														catch
														{
														}
														Delegate314.smethod_0(Delegate432.smethod_0(Delegate233.smethod_0(this.ReplikantoProperties.CancelEntrySeconds, Delegate233.delegate233_0), Delegate432.delegate432_0), new Action<Task>(CS$<>8__locals4.method_0), Delegate314.delegate314_0);
													}
												}
											}
											finally
											{
												if (enumerator2 != null)
												{
													Delegate39.smethod_0(enumerator2, Delegate39.delegate39_0);
												}
											}
										}
										goto IL_11B5;
									}
									goto IL_0FC7;
								}
								goto IL_11B5;
							}
							IL_0947:
							if (this.ReplikantoProperties.OnlyActiveWokspace && Delegate104.smethod_0(this.string_2, Delegate42.smethod_0(Delegate42.delegate42_0), Delegate104.delegate104_0))
							{
								Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: From workspace \"{0}\" and tab \"{1}\" will not process the order {2} \"{3}\" due to \"{4}\" property", new object[]
								{
									this.string_2,
									this.UniqueID,
									CS$<>8__locals1.replikantoOrder_0.OrderId,
									CS$<>8__locals1.replikantoOrder_0.OrderState,
									Resources.OnlyActiveWokspace
								}, Delegate55.delegate55_0), 2, Delegate34.delegate34_0);
								return;
							}
							Delegate34.smethod_0(Delegate288.smethod_0(new string[]
							{
								"Replikanto: Leader order ",
								CS$<>8__locals1.replikantoOrder_0.OrderId,
								" from tab \"",
								this.UniqueID,
								"\" is a Close or Flatten All order"
							}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
							if (this.Method == EnumMethod.PctChange)
							{
								Delegate34.smethod_0(Delegate51.smethod_0("Replikanto: When using ", Resources.EnumMethod_PctChange, " method, it will not flatten the position", Delegate51.delegate51_0), 1, Delegate34.delegate34_0);
								return;
							}
							this.hLdmCaifov(CS$<>8__locals1.replikantoOrder_0.Account, false);
							goto IL_11B5;
						}
					}
				}
				IL_0FC7:
				ReplikantoTabPage.<>c__DisplayClass167_2 CS$<>8__locals5 = new ReplikantoTabPage.<>c__DisplayClass167_2();
				CS$<>8__locals5.<>c__DisplayClass167_0_0 = CS$<>8__locals1;
				if (this.ReplikantoProperties.OnlyActiveWokspace && Delegate104.smethod_0(this.string_2, Delegate42.smethod_0(Delegate42.delegate42_0), Delegate104.delegate104_0))
				{
					Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: From worskpace \"{0}\" and tab \"{1}\" will not process the order {2} \"{3}\" due to \"{4}\" property", new object[]
					{
						this.string_2,
						this.UniqueID,
						CS$<>8__locals5.<>c__DisplayClass167_0_0.replikantoOrder_0.OrderId,
						CS$<>8__locals5.<>c__DisplayClass167_0_0.replikantoOrder_0.OrderState,
						Resources.OnlyActiveWokspace
					}, Delegate55.delegate55_0), 2, Delegate34.delegate34_0);
					return;
				}
				CS$<>8__locals5.string_0 = null;
				try
				{
					if (this.concurrentDictionary_4.TryGetValue(CS$<>8__locals5.<>c__DisplayClass167_0_0.replikantoOrder_0.OrderId, out CS$<>8__locals5.string_0))
					{
						if (!Delegate104.smethod_0(CS$<>8__locals5.<>c__DisplayClass167_0_0.replikantoOrder_0.Name, CS$<>8__locals5.string_0, Delegate104.delegate104_0))
						{
							CS$<>8__locals5.string_0 = null;
						}
						else
						{
							string text;
							this.concurrentDictionary_4.TryRemove(CS$<>8__locals5.<>c__DisplayClass167_0_0.replikantoOrder_0.OrderId, out text);
							this.concurrentDictionary_4.TryAdd(CS$<>8__locals5.<>c__DisplayClass167_0_0.replikantoOrder_0.OrderId, CS$<>8__locals5.<>c__DisplayClass167_0_0.replikantoOrder_0.Name);
						}
					}
				}
				catch (Exception)
				{
				}
				Delegate34.smethod_0(Delegate50.smethod_0("Replikanto: {0} leader Order {1} from tab \"{2}\", it will cancel all replicated orders on all follower accounts", CS$<>8__locals5.<>c__DisplayClass167_0_0.replikantoOrder_0.OrderState, CS$<>8__locals5.<>c__DisplayClass167_0_0.replikantoOrder_0.OrderId, this.UniqueID, Delegate50.delegate50_0), 1, Delegate34.delegate34_0);
				this.method_57(CS$<>8__locals5.<>c__DisplayClass167_0_0.replikantoOrder_0);
				Parallel.ForEach<SlaveAccount>(this.bindingList_0.ToList<SlaveAccount>().Where(new Func<SlaveAccount, bool>(ReplikantoTabPage.<>c.<>c_0.CitOalMvNk)), new Action<SlaveAccount>(CS$<>8__locals5.method_0));
				goto IL_11B5;
			}
			IL_0302:
			if (this.ReplikantoProperties.OnlyActiveWokspace && Delegate104.smethod_0(this.string_2, Delegate42.smethod_0(Delegate42.delegate42_0), Delegate104.delegate104_0))
			{
				Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: From workspace \"{0}\" and tab \"{1}\" will not process the order {2} \"{3}\" due to \"{4}\" property", new object[]
				{
					this.string_2,
					this.UniqueID,
					CS$<>8__locals1.replikantoOrder_0.OrderId,
					CS$<>8__locals1.replikantoOrder_0.OrderState,
					Resources.OnlyActiveWokspace
				}, Delegate55.delegate55_0), 2, Delegate34.delegate34_0);
				return;
			}
			ReplikantoAccount replikantoAccount5 = CS$<>8__locals1.replikantoOrder_0.ReplikantoAccount;
			if (replikantoAccount5 != null && replikantoAccount5.Provider == 50)
			{
				if (CS$<>8__locals1.replikantoOrder_0.OrderState == 13)
				{
					return;
				}
				if (CS$<>8__locals1.replikantoOrder_0.OrderState == 10 && CS$<>8__locals1.replikantoOrder_0.OrderUpdates.Count >= 3)
				{
					int num;
					if ((num = CS$<>8__locals1.replikantoOrder_0.OrderUpdates.FindIndex(new Predicate<ReplikantoOrderEventArgs>(ReplikantoTabPage.<>c.<>c_0.method_21))) != -1)
					{
						int num2;
						if ((num2 = CS$<>8__locals1.replikantoOrder_0.OrderUpdates.FindIndex(new Predicate<ReplikantoOrderEventArgs>(ReplikantoTabPage.<>c.<>c_0.method_22))) != -1 && num > num2)
						{
							long num3;
							if (CS$<>8__locals1.replikantoOrder_0.WebStrategyId != 0L || !Delegate412.smethod_0(CS$<>8__locals1.replikantoOrder_0.OrderId, ref num3, Delegate412.delegate412_0))
							{
								goto IL_05A9;
							}
							if (CS$<>8__locals1.replikantoOrder_0.IsLimit)
							{
								num3 -= 2L;
							}
							else if (!CS$<>8__locals1.replikantoOrder_0.IsStopMarket && !CS$<>8__locals1.replikantoOrder_0.IsStopLimit && !CS$<>8__locals1.replikantoOrder_0.IsSimulatedStop)
							{
								num3 = -1L;
							}
							else
							{
								num3 -= 1L;
							}
							if (num3 <= 0L)
							{
								goto IL_05A9;
							}
							ServerStrategy serverStrategy = null;
							if (!this.concurrentDictionary_5.ContainsKey(num3))
							{
								serverStrategy = new ServerStrategy();
								if (!this.concurrentDictionary_5.TryAdd(num3, serverStrategy))
								{
									serverStrategy = null;
								}
							}
							if (serverStrategy == null && !this.concurrentDictionary_5.TryGetValue(num3, out serverStrategy))
							{
								serverStrategy = null;
							}
							if (serverStrategy != null && serverStrategy.AddOrder(CS$<>8__locals1.replikantoOrder_0, true))
							{
								goto IL_05A9;
							}
							goto IL_05A9;
						}
					}
				}
				if (CS$<>8__locals1.replikantoOrder_0.OrderState == 10)
				{
					if (CS$<>8__locals1.replikantoOrder_0.OrderUpdates.FindIndex(new Predicate<ReplikantoOrderEventArgs>(ReplikantoTabPage.<>c.<>c_0.method_23)) >= 0)
					{
						return;
					}
				}
			}
			IL_05A9:
			Delegate34.smethod_0(Delegate288.smethod_0(new string[]
			{
				"Replikanto: Submitted leader Order ",
				CS$<>8__locals1.replikantoOrder_0.OrderId,
				" from tab \"",
				this.UniqueID,
				"\", it will submit a replication order to all follower accounts"
			}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
			try
			{
				this.concurrentDictionary_4.TryAdd(CS$<>8__locals1.replikantoOrder_0.OrderId, CS$<>8__locals1.replikantoOrder_0.Name);
			}
			catch
			{
			}
			if (leaderOrderSource_0 == LeaderOrderSource.LOCAL)
			{
				Delegate34.smethod_0(Delegate50.smethod_0("Replikanto: {0} Order ID: {1} = {2}", CS$<>8__locals1.replikantoOrder_0.OrderState, CS$<>8__locals1.replikantoOrder_0.Id, CS$<>8__locals1.replikantoOrder_0.OrderId, Delegate50.delegate50_0), 1, Delegate34.delegate34_0);
			}
			Parallel.ForEach<SlaveAccount>(this.bindingList_0.ToList<SlaveAccount>().Where(new Func<SlaveAccount, bool>(ReplikantoTabPage.<>c.<>c_0.method_24)), new Action<SlaveAccount>(CS$<>8__locals1.method_0));
			IL_11B5:
			if (CS$<>8__locals1.replikantoOrder_0.IsFromExecution || (Delegate102.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, ReplikantoTabPage.string_3, Delegate102.delegate102_0) && CS$<>8__locals1.replikantoOrder_0.OriginalId == 0L && this.replikantoMode_0 != ReplikantoMode.LEADER_MODE))
			{
				if (this.ReplikantoProperties.OnlyActiveWokspace && Delegate104.smethod_0(this.string_2, Delegate42.smethod_0(Delegate42.delegate42_0), Delegate104.delegate104_0))
				{
					Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: From worskpace \"{0}\" and tab \"{1}\" will not process the order {2} \"{3}\" due to \"{4}\" property", new object[]
					{
						this.string_2,
						this.UniqueID,
						CS$<>8__locals1.replikantoOrder_0.OrderId,
						CS$<>8__locals1.replikantoOrder_0.OrderState,
						Resources.OnlyActiveWokspace
					}, Delegate55.delegate55_0), 2, Delegate34.delegate34_0);
					return;
				}
				IEnumerable<SlaveAccount> enumerable = this.bindingList_0.ToList<SlaveAccount>().Where(new Func<SlaveAccount, bool>(ReplikantoTabPage.<>c.<>c_0.method_27));
				if (enumerable.Count<SlaveAccount>() > 0)
				{
					Delegate34.smethod_0(Delegate288.smethod_0(new string[]
					{
						"Replikanto: Leader Execution Order ",
						CS$<>8__locals1.replikantoOrder_0.Id,
						" will be submitted to all follower accounts with Market Only checked from tab \"",
						this.UniqueID,
						"\""
					}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
					Parallel.ForEach<SlaveAccount>(enumerable, new Action<SlaveAccount>(CS$<>8__locals1.method_2));
				}
			}
			try
			{
				if (!CS$<>8__locals1.replikantoOrder_0.IsFromExecution && Delegate394.smethod_0(CS$<>8__locals1.replikantoOrder_0.OrderState, Delegate394.vupglcLpc3))
				{
					Delegate314.smethod_0(Delegate25.smethod_0(ReplikantoTabPage.int_2 * 2, Delegate25.delegate25_0), new Action<Task>(CS$<>8__locals1.method_3), Delegate314.delegate314_0);
				}
			}
			catch
			{
			}
		}

		private void hLdmCaifov(Account account_2, bool bool_5 = false)
		{
			ReplikantoTabPage.<>c__DisplayClass168_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass168_0();
			CS$<>8__locals1.bool_0 = bool_5;
			CS$<>8__locals1.account_0 = account_2;
			CS$<>8__locals1.replikantoTabPage_0 = this;
			Parallel.ForEach<SlaveAccount>(this.bindingList_0.ToList<SlaveAccount>().Where(new Func<SlaveAccount, bool>(CS$<>8__locals1.method_0)), new Action<SlaveAccount>(CS$<>8__locals1.wYuiyfeUmx));
		}

		private string method_63(ReplikantoOrder replikantoOrder_0, LeaderOrderSource leaderOrderSource_0)
		{
			string text = string.Empty;
			bool flag = false;
			try
			{
				if (this.bool_1 && Delegate104.smethod_0(replikantoOrder_0.StrategyName, replikantoOrder_0.Name, Delegate104.delegate104_0))
				{
					text = ((Delegate44.smethod_0(replikantoOrder_0.StrategyName, Delegate44.delegate44_0) || Delegate433.smethod_0(replikantoOrder_0.StrategyName, " - ", Delegate433.delegate433_0) < 0) ? (text = string.Empty) : Delegate101.smethod_0(replikantoOrder_0.StrategyName, 0, Delegate433.smethod_0(replikantoOrder_0.StrategyName, " - ", Delegate433.delegate433_0), Delegate101.delegate101_0));
					if (Delegate104.smethod_0(text, string.Empty, Delegate104.delegate104_0))
					{
						if (leaderOrderSource_0 != LeaderOrderSource.INTERNET_WS && leaderOrderSource_0 != LeaderOrderSource.INTERNET_HTTP)
						{
							if (leaderOrderSource_0 != LeaderOrderSource.NETWORK)
							{
								if (leaderOrderSource_0 == LeaderOrderSource.LOCAL && !Delegate307.smethod_0(replikantoOrder_0.StrategyName, "Custom", Delegate307.delegate307_0))
								{
									flag = true;
									goto IL_00F1;
								}
								goto IL_00F1;
							}
						}
						if (!Delegate307.smethod_0(replikantoOrder_0.StrategyName, "Custom", Delegate307.delegate307_0))
						{
							flag = StrategyFiles.HasStrategy(text);
						}
					}
				}
				IL_00F1:
				if (!flag)
				{
					string strategyName = replikantoOrder_0.StrategyName;
					if (strategyName != null && Delegate185.smethod_0(strategyName, "Custom", Delegate185.delegate185_0) && leaderOrderSource_0 == LeaderOrderSource.LOCAL)
					{
						return "Custom";
					}
					text = string.Empty;
				}
			}
			catch
			{
				text = string.Empty;
			}
			return text;
		}

		public bool ExternalFlatAll(Account account, Instrument instrument)
		{
			if (this.ReplikantoProperties.ScalperTicketIntegration && account != null && instrument != null)
			{
				long num = Delegate225.smethod_0(account, Delegate225.delegate225_0);
				Account account2 = this.Account;
				long? num2 = ((account2 == null) ? null : new long?(Delegate231.smethod_0(account2, Delegate231.delegate231_0)));
				if ((num == num2.GetValueOrDefault()) & (num2 != null))
				{
					long num3 = Delegate186.smethod_0(instrument, Delegate186.delegate186_0);
					Instrument instrument2 = this.Instrument;
					num2 = ((instrument2 == null) ? null : new long?(Delegate131.smethod_0(instrument2, Delegate131.delegate131_0)));
					if ((num3 == num2.GetValueOrDefault()) & (num2 != null))
					{
						Delegate34.smethod_0(Delegate51.smethod_0("Replikanto: Flatten All external call (ScalperTicket) from tab \"", this.UniqueID, "\"", Delegate51.delegate51_0), 1, Delegate34.delegate34_0);
						this.FlatAll();
						return true;
					}
				}
			}
			return false;
		}

		private void method_64(object sender, RoutedEventArgs e)
		{
			NTMessageBox ntmessageBox = new NTMessageBox(Resources.FlatAllConfirmation, Resources.FlatAll, MessageBoxButton.YesNo, MessageBoxImage.Hand);
			Delegate434.smethod_0(ntmessageBox, Delegate280.smethod_0(this, Delegate280.delegate280_0), Delegate434.delegate434_0);
			Delegate57.smethod_0(ntmessageBox, true, Delegate57.delegate57_0);
			Delegate56.smethod_0(ntmessageBox, "ReplikantoFlatAll", Delegate56.delegate56_0);
			if (Delegate58.smethod_0(ntmessageBox, Delegate58.delegate58_0) == MessageBoxResult.No)
			{
				return;
			}
			string[] array = new string[5];
			array[0] = "Replikanto: Flatten All clicked (Yes) for the instrument ";
			int num = 1;
			Instrument instrument = this.Instrument;
			array[num] = ((instrument != null) ? Delegate120.smethod_0(instrument, Delegate120.delegate120_0) : null);
			array[2] = " from tab \"";
			array[3] = this.UniqueID;
			array[4] = "\"";
			Delegate34.smethod_0(Delegate288.smethod_0(array, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
			try
			{
				Delegate435.smethod_0(this.btnFlatAll, false, Delegate435.delegate435_0);
				object obj = this.btnFlatAll;
				string wait = Resources.Wait;
				TimeSpan timeSpan = Delegate436.smethod_0((double)ReplikantoTabPage.int_3, Delegate436.delegate436_0);
				Delegate438.smethod_0(obj, Delegate32.smethod_0(wait, Delegate437.smethod_0(ref timeSpan, Delegate437.delegate437_0), Delegate32.delegate32_0), Delegate438.delegate438_0);
				Delegate25.smethod_0(ReplikantoTabPage.int_3, Delegate25.delegate25_0).ContinueWith<DispatcherOperation>(new Func<Task, DispatcherOperation>(this.method_138));
			}
			catch (Exception)
			{
			}
			this.FlatAll();
			try
			{
				this.timeSpan_0 = Delegate436.smethod_0((double)ReplikantoTabPage.int_3, Delegate436.delegate436_0);
				DispatcherTimer dispatcherTimer = new DispatcherTimer();
				Delegate439.smethod_0(dispatcherTimer, Delegate233.smethod_0(1.0, Delegate233.delegate233_0), Delegate439.delegate439_0);
				this.dispatcherTimer_0 = dispatcherTimer;
				Delegate440.smethod_0(this.dispatcherTimer_0, new EventHandler(this.method_140), Delegate440.WoheLvbJqj);
				Delegate441.smethod_0(this.dispatcherTimer_0, Delegate441.XeieYrqnu6);
			}
			catch (Exception)
			{
			}
		}

		private void method_65(object sender, RoutedEventArgs e)
		{
			foreach (SlaveAccount slaveAccount in this.bindingList_0.ToList<SlaveAccount>())
			{
				if (slaveAccount != null && slaveAccount.Status == FollowerAccountStatus.Disarmed)
				{
					slaveAccount.Status = FollowerAccountStatus.Checked;
				}
			}
			this.method_53();
		}

		private void FlatAll()
		{
			try
			{
				if (this.replikantoMode_0 == ReplikantoMode.LEADER_MODE)
				{
					ReplikantoTabPage.<>c__DisplayClass173_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass173_0();
					CS$<>8__locals1.replikantoTabPage_0 = this;
					CS$<>8__locals1.bool_0 = false;
					CS$<>8__locals1.eventHandler_0 = null;
					CS$<>8__locals1.eventHandler_0 = new EventHandler<OrderEventArgs>(CS$<>8__locals1.method_0);
					if (this.Account != null)
					{
						Delegate340.smethod_0(this.Account, CS$<>8__locals1.eventHandler_0, Delegate340.delegate340_0);
					}
					CS$<>8__locals1.bool_1 = this.Flatten(this.Account, this.Instrument);
					Delegate314.smethod_0(Delegate25.smethod_0(1000, Delegate25.delegate25_0), new Action<Task>(CS$<>8__locals1.method_1), Delegate314.delegate314_0);
					if (!CS$<>8__locals1.bool_1)
					{
						this.method_141();
					}
				}
				else
				{
					this.hLdmCaifov(this.Account, true);
				}
				this.method_65(null, new RoutedEventArgs());
			}
			catch (Exception ex)
			{
				string text = "Replikanto: Copy Flatten All leader account  ";
				Account account = this.Account;
				Delegate34.smethod_0(Delegate303.smethod_0(text, (account == null) ? null : Delegate125.smethod_0(account, Delegate125.delegate125_0), " Error. ", Delegate31.smethod_0(ex, Delegate31.delegate31_0), Delegate303.delegate303_0), 3, Delegate34.delegate34_0);
			}
		}

		private void method_66(SlaveAccount slaveAccount_0)
		{
			if (slaveAccount_0.Status == FollowerAccountStatus.Off)
			{
				return;
			}
			Instrument instrument = ((!slaveAccount_0.CrossOrder || !this.isCrossOrderChecked) ? this.Instrument : this.CrossOrderInstrument);
			this.Flatten(Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0), instrument);
		}

		private bool Flatten(Account account, Instrument instrument)
		{
			ReplikantoTabPage.<>c__DisplayClass175_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass175_0();
			CS$<>8__locals1.instrument_0 = instrument;
			CS$<>8__locals1.account_0 = account;
			if (CS$<>8__locals1.instrument_0 != null && CS$<>8__locals1.account_0 != null)
			{
				bool flag = false;
				try
				{
					Position position = Delegate228.smethod_0(CS$<>8__locals1.account_0, Delegate186.smethod_0(CS$<>8__locals1.instrument_0, Delegate186.delegate186_0), Delegate228.delegate228_0);
					flag = position != null && Delegate195.smethod_0(position, Delegate195.delegate195_0) != 2;
					Delegate34.smethod_0(Delegate288.smethod_0(new string[]
					{
						"Replikanto: Replikanto Flatten method invoked for account ",
						Delegate368.smethod_0(CS$<>8__locals1.account_0, Delegate368.delegate368_0),
						", instrument ",
						Delegate327.smethod_0(CS$<>8__locals1.instrument_0, Delegate327.delegate327_0),
						" and ",
						flag ? Delegate86.smethod_0(position, Delegate86.delegate86_0) : "`position flat`",
						" from tab \"",
						this.UniqueID,
						"\"."
					}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
					IEnumerable<Order> enumerable = Delegate277.smethod_0(CS$<>8__locals1.account_0, Delegate277.delegate277_0).ToList<Order>().Where(new Func<Order, bool>(CS$<>8__locals1.method_0));
					if (enumerable != null && enumerable.Count<Order>() > 0)
					{
						Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: The NinjaScript Flatten will cancel {0} orders for the account {1} for the instrument {2} from tab \"{3}\"", new object[]
						{
							enumerable.Count<Order>(),
							CS$<>8__locals1.account_0,
							CS$<>8__locals1.instrument_0,
							this.UniqueID
						}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
					}
					else
					{
						Delegate34.smethod_0(Delegate50.smethod_0("Replikanto: No orders to cancel found for the account {0} for the instrument {1} from tab \"{2}\"", CS$<>8__locals1.account_0, CS$<>8__locals1.instrument_0, this.UniqueID, Delegate50.delegate50_0), 1, Delegate34.delegate34_0);
					}
					if (!flag)
					{
						Delegate34.smethod_0(Delegate50.smethod_0("Replikanto: No position found for the account {0} for the instrument {1} from tab \"{2}\"", CS$<>8__locals1.account_0, CS$<>8__locals1.instrument_0, this.UniqueID, Delegate50.delegate50_0), 1, Delegate34.delegate34_0);
					}
					else
					{
						Delegate34.smethod_0(Delegate50.smethod_0("Replikanto: The NinjaScript Flatten will close the position for the account {0} for the instrument {1} from tab \"{2}\"", CS$<>8__locals1.account_0, CS$<>8__locals1.instrument_0, this.UniqueID, Delegate50.delegate50_0), 1, Delegate34.delegate34_0);
					}
				}
				catch
				{
					flag = false;
				}
				try
				{
					Delegate34.smethod_0(Delegate288.smethod_0(new string[]
					{
						"Replikanto: Calling the NinjaScript Flatten method for account ",
						Delegate368.smethod_0(CS$<>8__locals1.account_0, Delegate368.delegate368_0),
						" and instrument ",
						Delegate327.smethod_0(CS$<>8__locals1.instrument_0, Delegate327.delegate327_0),
						" from tab \"",
						this.UniqueID,
						"\"."
					}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
					Delegate442.smethod_0(CS$<>8__locals1.account_0, new Instrument[] { CS$<>8__locals1.instrument_0 }, Delegate442.delegate442_0);
					Delegate34.smethod_0(Delegate288.smethod_0(new string[]
					{
						"Replikanto: NinjaScript Flatten method called for account ",
						Delegate368.smethod_0(CS$<>8__locals1.account_0, Delegate368.delegate368_0),
						" and instrument ",
						Delegate327.smethod_0(CS$<>8__locals1.instrument_0, Delegate327.delegate327_0),
						" from tab \"",
						this.UniqueID,
						"\"."
					}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
				}
				catch (Exception ex)
				{
					Delegate34.smethod_0(Delegate288.smethod_0(new string[]
					{
						"Replikanto: NinjaScript Flatten method has thrown an error: \"",
						Delegate31.smethod_0(ex, Delegate31.delegate31_0),
						"\" for account ",
						Delegate368.smethod_0(CS$<>8__locals1.account_0, Delegate368.delegate368_0),
						" and instrument ",
						Delegate327.smethod_0(CS$<>8__locals1.instrument_0, Delegate327.delegate327_0),
						" from tab \"",
						this.UniqueID,
						"\"."
					}, Delegate288.delegate288_0), 3, Delegate34.delegate34_0);
					flag = false;
				}
				return flag;
			}
			return false;
		}

		private void method_67(ReplikantoOrder replikantoOrder_0, SlaveAccount slaveAccount_0, Order order_0)
		{
			ReplikantoTabPage.<>c__DisplayClass176_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass176_0();
			CS$<>8__locals1.order_0 = order_0;
			CS$<>8__locals1.replikantoTabPage_0 = this;
			CS$<>8__locals1.slaveAccount_0 = slaveAccount_0;
			CS$<>8__locals1.replikantoOrder_0 = replikantoOrder_0;
			CS$<>8__locals1.eventHandler_0 = null;
			CS$<>8__locals1.eventHandler_0 = new EventHandler<OrderEventArgs>(CS$<>8__locals1.method_0);
			Delegate340.smethod_0(Delegate230.smethod_0(CS$<>8__locals1.slaveAccount_0, Delegate230.delegate230_0), CS$<>8__locals1.eventHandler_0, Delegate340.delegate340_0);
			Delegate314.smethod_0(Delegate25.smethod_0(ReplikantoTabPage.int_2, Delegate25.delegate25_0), new Action<Task>(CS$<>8__locals1.method_2), Delegate314.delegate314_0);
		}

		private int[] method_68(ReplikantoOrder replikantoOrder_0, List<Order> list_8)
		{
			List<int> list = new List<int>();
			if (list_8 == null)
			{
				return list.ToArray();
			}
			Dictionary<int, List<int>> dictionary = new Dictionary<int, List<int>>();
			int strategyOrderIndex = replikantoOrder_0.StrategyOrderIndex;
			if (strategyOrderIndex < 0)
			{
				return list.ToArray();
			}
			dictionary[strategyOrderIndex] = list;
			try
			{
				ReplikantoTabPage.<>c__DisplayClass177_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass177_0();
				List<StrategyOrder> list2 = JsonConvert.DeserializeObject<List<StrategyOrder>>(replikantoOrder_0.StrategyOrders);
				CS$<>8__locals1.rvwiHbdSeN = list2[strategyOrderIndex];
				List<StrategyOrder> list3 = list2.Where(new Func<StrategyOrder, bool>(CS$<>8__locals1.method_0)).ToList<StrategyOrder>();
				List<Order> list4 = list_8.Where(new Func<Order, bool>(CS$<>8__locals1.method_1)).ToList<Order>();
				if (list4.Count == 0)
				{
					return dictionary[strategyOrderIndex].ToArray();
				}
				int count = list3.Count;
				int count2 = list4.Count;
				int num = list3.IndexOf(CS$<>8__locals1.rvwiHbdSeN);
				if (count == count2)
				{
					dictionary[strategyOrderIndex].Add(list_8.IndexOf(list4[num]));
				}
				else if (count > count2)
				{
					List<List<StrategyOrder>> list5 = list3.RearrangeBy(count2);
					for (int i = 0; i < list5.Count; i++)
					{
						if (list5[i].Contains(CS$<>8__locals1.rvwiHbdSeN))
						{
							dictionary[strategyOrderIndex].Add(list_8.IndexOf(list4[i]));
							break;
						}
					}
				}
				else if (count < count2)
				{
					List<Order> list6 = list4.RearrangeBy(count)[num];
					for (int j = 0; j < list6.Count; j++)
					{
						dictionary[strategyOrderIndex].Add(list_8.IndexOf(list6[j]));
					}
				}
			}
			catch (Exception)
			{
			}
			return dictionary[strategyOrderIndex].ToArray();
		}

		private AtmStrategy method_69(string string_4, SlaveAccount slaveAccount_0, Instrument instrument_2)
		{
			ReplikantoTabPage.<>c__DisplayClass178_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass178_0();
			CS$<>8__locals1.instrument_0 = instrument_2;
			CS$<>8__locals1.string_0 = string_4;
			AtmStrategy atmStrategy = null;
			Collection<Order> collection = Delegate277.smethod_0(Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0), Delegate277.delegate277_0);
			Order order = ((collection == null) ? null : collection.FirstOrDefault(new Func<Order, bool>(CS$<>8__locals1.method_0)));
			if (order != null)
			{
				atmStrategy = (AtmStrategy)Delegate133.smethod_0(order, Delegate133.delegate133_0);
			}
			return atmStrategy;
		}

		private AtmStrategy method_70(ReplikantoOrder replikantoOrder_0, SlaveAccount slaveAccount_0, Instrument instrument_2)
		{
			ReplikantoTabPage.<>c__DisplayClass179_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass179_0();
			CS$<>8__locals1.instrument_0 = instrument_2;
			CS$<>8__locals1.atmStrategy_0 = null;
			if (this.concurrentDictionary_3.TryGetValue(Tuple.Create<long, long>(Delegate225.smethod_0(Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0), Delegate225.delegate225_0), replikantoOrder_0.StrategyId), out CS$<>8__locals1.atmStrategy_0) && CS$<>8__locals1.atmStrategy_0 != null)
			{
				if (Delegate443.smethod_0(CS$<>8__locals1.atmStrategy_0, Delegate443.delegate443_0))
				{
					AtmStrategy atmStrategy;
					this.concurrentDictionary_3.TryRemove(Tuple.Create<long, long>(Delegate225.smethod_0(Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0), Delegate225.delegate225_0), replikantoOrder_0.StrategyId), out atmStrategy);
					return null;
				}
				Account account = Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0);
				Position position;
				if ((position = ((account != null) ? Delegate132.smethod_0(account, Delegate186.smethod_0(CS$<>8__locals1.instrument_0, Delegate186.delegate186_0), Delegate132.delegate132_0) : null)) == null || Delegate195.smethod_0(position, Delegate195.delegate195_0) == 2)
				{
					Account account2 = Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0);
					bool flag2;
					if (account2 != null)
					{
						Collection<Order> collection = Delegate444.smethod_0(account2, Delegate444.delegate444_0);
						bool? flag = ((collection == null) ? null : new bool?(collection.Any(new Func<Order, bool>(CS$<>8__locals1.QaVintqwSd))));
						flag2 = !flag.GetValueOrDefault() & (flag != null);
					}
					else
					{
						flag2 = false;
					}
					if (flag2)
					{
						AtmStrategy atmStrategy;
						this.concurrentDictionary_3.TryRemove(Tuple.Create<long, long>(Delegate225.smethod_0(Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0), Delegate225.delegate225_0), replikantoOrder_0.StrategyId), out atmStrategy);
						return null;
					}
				}
				Account account3 = Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0);
				Order order;
				if (account3 != null)
				{
					Collection<Order> collection2 = Delegate444.smethod_0(account3, Delegate444.delegate444_0);
					order = ((collection2 == null) ? null : collection2.FirstOrDefault(new Func<Order, bool>(CS$<>8__locals1.method_0)));
				}
				else
				{
					order = null;
				}
				Order order2 = order;
				if (order2 != null)
				{
					AtmStrategy atmStrategy_ = CS$<>8__locals1.atmStrategy_0;
					string text = ((atmStrategy_ != null) ? Delegate135.smethod_0(atmStrategy_, Delegate135.delegate135_0) : null);
					StrategyBase strategyBase = Delegate133.smethod_0(order2, Delegate133.delegate133_0);
					if (Delegate104.smethod_0(text, (strategyBase == null) ? null : Delegate135.smethod_0(strategyBase, Delegate135.delegate135_0), Delegate104.delegate104_0))
					{
						ReplikantoTabPage.<>c__DisplayClass179_1 CS$<>8__locals2 = new ReplikantoTabPage.<>c__DisplayClass179_1();
						CS$<>8__locals2.atmStrategy_0 = (AtmStrategy)Delegate133.smethod_0(order2, Delegate133.delegate133_0);
						CS$<>8__locals1.atmStrategy_0 = this.concurrentDictionary_3.AddOrUpdate(Tuple.Create<long, long>(Delegate225.smethod_0(Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0), Delegate225.delegate225_0), replikantoOrder_0.StrategyId), CS$<>8__locals2.atmStrategy_0, new Func<Tuple<long, long>, AtmStrategy, AtmStrategy>(CS$<>8__locals2.method_0));
					}
				}
			}
			return CS$<>8__locals1.atmStrategy_0;
		}

		private void method_71(ReplikantoOrder replikantoOrder_0, SlaveAccount slaveAccount_0, string string_4, string string_5)
		{
			ReplikantoTabPage.<>c__DisplayClass180_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass180_0();
			CS$<>8__locals1.replikantoTabPage_0 = this;
			CS$<>8__locals1.string_0 = string_4;
			CS$<>8__locals1.replikantoOrder_0 = replikantoOrder_0;
			CS$<>8__locals1.slaveAccount_0 = slaveAccount_0;
			if (CS$<>8__locals1.slaveAccount_0.Status != FollowerAccountStatus.Checked && CS$<>8__locals1.slaveAccount_0.Status != FollowerAccountStatus.OutOfSync)
			{
				return;
			}
			if (CS$<>8__locals1.replikantoOrder_0.IsFromExecution)
			{
				return;
			}
			int num = 0;
			CS$<>8__locals1.instrument_0 = ((!CS$<>8__locals1.slaveAccount_0.CrossOrder || !this.isCrossOrderChecked) ? CS$<>8__locals1.replikantoOrder_0.Instrument : this.CrossOrderInstrument);
			if (CS$<>8__locals1.instrument_0 == null)
			{
				Delegate34.smethod_0(Delegate32.smethod_0("Replikanto: Instrument for {0} is null", CS$<>8__locals1.slaveAccount_0, Delegate32.delegate32_0), 2, Delegate34.delegate34_0);
				return;
			}
			if (!Delegate44.smethod_0(string_5, Delegate44.delegate44_0) && (Delegate307.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "Entry", Delegate307.delegate307_0) || Delegate307.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "Exit", Delegate307.delegate307_0) || Delegate307.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "Target", Delegate307.delegate307_0) || Delegate307.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "Stop", Delegate307.delegate307_0) || Delegate307.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "SimStop", Delegate307.delegate307_0)))
			{
				ReplikantoTabPage.<>c__DisplayClass180_1 CS$<>8__locals2 = new ReplikantoTabPage.<>c__DisplayClass180_1();
				CS$<>8__locals2.<>c__DisplayClass180_0_0 = CS$<>8__locals1;
				CS$<>8__locals2.atmStrategy_0 = null;
				CS$<>8__locals2.atmStrategy_0 = this.method_70(CS$<>8__locals2.<>c__DisplayClass180_0_0.replikantoOrder_0, CS$<>8__locals2.<>c__DisplayClass180_0_0.slaveAccount_0, CS$<>8__locals2.<>c__DisplayClass180_0_0.instrument_0);
				if (CS$<>8__locals2.atmStrategy_0 != null)
				{
					AtmStrategy atmStrategy_ = CS$<>8__locals2.atmStrategy_0;
					List<Order> list;
					if (atmStrategy_ == null)
					{
						list = null;
					}
					else
					{
						Collection<Order> collection = Delegate445.smethod_0(atmStrategy_, Delegate445.delegate445_0);
						list = ((collection == null) ? null : collection.ToList<Order>());
					}
					List<Order> list2 = list;
					int[] array = this.method_68(CS$<>8__locals2.<>c__DisplayClass180_0_0.replikantoOrder_0, list2);
					if (array.Length == 0)
					{
						return;
					}
					Account account = Delegate230.smethod_0(CS$<>8__locals2.<>c__DisplayClass180_0_0.slaveAccount_0, Delegate230.delegate230_0);
					IEnumerable<Order> enumerable;
					if (account == null)
					{
						enumerable = null;
					}
					else
					{
						Collection<Order> collection2 = Delegate444.smethod_0(account, Delegate444.delegate444_0);
						enumerable = ((collection2 == null) ? null : collection2.ToList<Order>().Where(new Func<Order, bool>(CS$<>8__locals2.method_0)));
					}
					IEnumerable<Order> enumerable2 = enumerable;
					bool flag = false;
					int num2 = ((enumerable2 != null) ? enumerable2.Count<Order>() : 0) - 1;
					while (num2 >= num && num2 >= 0)
					{
						Order order = enumerable2.ElementAt(num2);
						if (!Delegate307.smethod_0(CS$<>8__locals2.<>c__DisplayClass180_0_0.replikantoOrder_0.Name, "Target", Delegate307.delegate307_0) && !Delegate307.smethod_0(CS$<>8__locals2.<>c__DisplayClass180_0_0.replikantoOrder_0.Name, "Stop", Delegate307.delegate307_0) && !Delegate307.smethod_0(CS$<>8__locals2.<>c__DisplayClass180_0_0.replikantoOrder_0.Name, "SimStop", Delegate307.delegate307_0))
						{
							goto IL_0350;
						}
						if (CS$<>8__locals2.<>c__DisplayClass180_0_0.replikantoOrder_0.SuppressCancel)
						{
							Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Leader order {0} '{1}' for follower account {2} from tab \"{3}\" was canceled due to leader Exit filled, it will not cancel on follower's side", new object[]
							{
								CS$<>8__locals2.<>c__DisplayClass180_0_0.replikantoOrder_0.OrderId,
								CS$<>8__locals2.<>c__DisplayClass180_0_0.replikantoOrder_0.OrderState,
								Delegate373.smethod_0(CS$<>8__locals2.<>c__DisplayClass180_0_0.slaveAccount_0, Delegate373.AqggkfHrBe),
								this.UniqueID
							}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
							return;
						}
						if (array.Length != 0)
						{
							StrategyBase strategyBase = Delegate133.smethod_0(order, Delegate133.delegate133_0);
							if (strategyBase == null)
							{
								goto IL_0350;
							}
							Collection<Order> collection3 = Delegate136.smethod_0((AtmStrategy)strategyBase, Delegate136.delegate136_0);
							if (collection3 == null)
							{
								goto IL_0350;
							}
							int num3 = collection3.IndexOf(order);
							if (num3 <= 0 || CS$<>8__locals2.<>c__DisplayClass180_0_0.replikantoOrder_0.StrategyOrderIndex <= 0 || array.Contains(num3))
							{
								goto IL_0350;
							}
						}
						IL_0632:
						num2--;
						continue;
						IL_0350:
						if (!Delegate307.smethod_0(CS$<>8__locals2.<>c__DisplayClass180_0_0.replikantoOrder_0.Name, "Entry", Delegate307.delegate307_0) && !Delegate307.smethod_0(CS$<>8__locals2.<>c__DisplayClass180_0_0.replikantoOrder_0.Name, "Exit", Delegate307.delegate307_0))
						{
							if (Delegate307.smethod_0(CS$<>8__locals2.<>c__DisplayClass180_0_0.replikantoOrder_0.Name, "Target", Delegate307.delegate307_0) || Delegate307.smethod_0(CS$<>8__locals2.<>c__DisplayClass180_0_0.replikantoOrder_0.Name, "Stop", Delegate307.delegate307_0) || Delegate307.smethod_0(CS$<>8__locals2.<>c__DisplayClass180_0_0.replikantoOrder_0.Name, "SimStop", Delegate307.delegate307_0))
							{
								if (Delegate104.smethod_0(Delegate116.smethod_0(order, Delegate116.delegate116_0), CS$<>8__locals2.<>c__DisplayClass180_0_0.replikantoOrder_0.Name, Delegate104.delegate104_0))
								{
									goto IL_0632;
								}
							}
						}
						else if (Delegate104.smethod_0(this.method_60(order, true, null), this.method_58(CS$<>8__locals2.<>c__DisplayClass180_0_0.replikantoOrder_0, null), Delegate104.delegate104_0) && Delegate104.smethod_0(this.method_60(order, true, null), CS$<>8__locals2.<>c__DisplayClass180_0_0.replikantoOrder_0.Id, Delegate104.delegate104_0))
						{
							goto IL_0632;
						}
						bool flag2 = true;
						if (CS$<>8__locals2.<>c__DisplayClass180_0_0.replikantoOrder_0.HasOpositeFilled)
						{
							flag2 = false;
							Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Order {0} '{1}' for follower account {2} from tab \"{3}\" has opposite order (Same OCO*) filled, it will not cancel", new object[]
							{
								Delegate138.smethod_0(order, Delegate138.mDysTjiIyF),
								Delegate145.smethod_0(order, Delegate145.delegate145_0),
								Delegate373.smethod_0(CS$<>8__locals2.<>c__DisplayClass180_0_0.slaveAccount_0, Delegate373.AqggkfHrBe),
								this.UniqueID
							}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
						}
						if (flag2)
						{
							this.method_67(CS$<>8__locals2.<>c__DisplayClass180_0_0.replikantoOrder_0, CS$<>8__locals2.<>c__DisplayClass180_0_0.slaveAccount_0, order);
							Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Cancel Order {0} '{1}' for follower account {2} from tab \"{3}\"", new object[]
							{
								Delegate138.smethod_0(order, Delegate138.mDysTjiIyF),
								Delegate145.smethod_0(order, Delegate145.delegate145_0),
								Delegate373.smethod_0(CS$<>8__locals2.<>c__DisplayClass180_0_0.slaveAccount_0, Delegate373.AqggkfHrBe),
								this.UniqueID
							}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
							Delegate446.smethod_0(Delegate230.smethod_0(CS$<>8__locals2.<>c__DisplayClass180_0_0.slaveAccount_0, Delegate230.delegate230_0), new Order[] { order }, Delegate446.delegate446_0);
						}
						else
						{
							Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Wainting the opposite order to be filled to cancel follower order {0} '{1}' for follower account {2} from tab \"{3}\"", new object[]
							{
								Delegate138.smethod_0(order, Delegate138.mDysTjiIyF),
								Delegate145.smethod_0(order, Delegate145.delegate145_0),
								Delegate373.smethod_0(CS$<>8__locals2.<>c__DisplayClass180_0_0.slaveAccount_0, Delegate373.AqggkfHrBe),
								this.UniqueID
							}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
						}
						flag = true;
						num = num2 - 1;
						goto IL_0632;
					}
					if (!flag)
					{
						Delegate34.smethod_0(Delegate288.smethod_0(new string[]
						{
							"Replikanto: No linked order found to cancel that matches ",
							CS$<>8__locals2.<>c__DisplayClass180_0_0.replikantoOrder_0.Id,
							" for follower account ",
							Delegate373.smethod_0(CS$<>8__locals2.<>c__DisplayClass180_0_0.slaveAccount_0, Delegate373.AqggkfHrBe),
							" from tab \"",
							this.UniqueID,
							"\""
						}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
						return;
					}
				}
			}
			else
			{
				bool flag3 = false;
				IEnumerable<Order> enumerable3 = Delegate277.smethod_0(Delegate230.smethod_0(CS$<>8__locals1.slaveAccount_0, Delegate230.delegate230_0), Delegate277.delegate277_0).ToList<Order>().Where(new Func<Order, bool>(CS$<>8__locals1.method_0));
				int num4 = enumerable3.Count<Order>() - 1;
				while (num4 >= num && num4 >= 0)
				{
					ReplikantoTabPage.<>c__DisplayClass180_2 CS$<>8__locals3 = new ReplikantoTabPage.<>c__DisplayClass180_2();
					CS$<>8__locals3.order_0 = enumerable3.ElementAt(num4);
					bool flag4;
					List<CompositeID> list3;
					if (!(flag4 = Delegate102.smethod_0(this.method_60(CS$<>8__locals3.order_0, false, CS$<>8__locals1.string_0), this.method_58(CS$<>8__locals1.replikantoOrder_0, CS$<>8__locals1.string_0), Delegate102.delegate102_0) || Delegate102.smethod_0(this.method_60(CS$<>8__locals3.order_0, false, CS$<>8__locals1.string_0), CS$<>8__locals1.replikantoOrder_0.Id, Delegate102.delegate102_0)) && this.concurrentDictionary_2.TryGetValue(CS$<>8__locals1.replikantoOrder_0.GetCompositeID(), out list3) && list3 != null && list3.Count > 0 && list3.Any(new Func<CompositeID, bool>(CS$<>8__locals3.method_0)))
					{
						flag4 = true;
					}
					if (flag4)
					{
						if (Delegate145.smethod_0(CS$<>8__locals3.order_0, Delegate145.delegate145_0) != 1 && Delegate145.smethod_0(CS$<>8__locals3.order_0, Delegate145.delegate145_0) != 5 && Delegate145.smethod_0(CS$<>8__locals3.order_0, Delegate145.delegate145_0) != 11 && Delegate145.smethod_0(CS$<>8__locals3.order_0, Delegate145.delegate145_0) != 9 && Delegate145.smethod_0(CS$<>8__locals3.order_0, Delegate145.delegate145_0) != 2)
						{
							bool flag5 = true;
							if (!Delegate171.smethod_0(Delegate139.smethod_0(CS$<>8__locals3.order_0, Delegate139.qvGsqSkhle), Delegate171.delegate171_0))
							{
								string text = Delegate139.smethod_0(CS$<>8__locals3.order_0, Delegate139.qvGsqSkhle);
								if (Delegate139.smethod_0(CS$<>8__locals3.order_0, Delegate139.qvGsqSkhle).Contains('|'))
								{
									text = Delegate191.smethod_0(Delegate139.smethod_0(CS$<>8__locals3.order_0, Delegate139.qvGsqSkhle), new char[] { '|' }, Delegate191.delegate191_0)[0];
								}
								if (this.collection_0.Contains(Delegate97.smethod_0(text, "-", "", Delegate97.delegate97_0)))
								{
									flag5 = false;
								}
							}
							ReplikantoAccount replikantoAccount = CS$<>8__locals1.replikantoOrder_0.ReplikantoAccount;
							if (replikantoAccount != null && replikantoAccount.Provider == 50 && CS$<>8__locals1.replikantoOrder_0.SuppressCancel)
							{
								Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Leader order {0} '{1}' for follower account {2} from tab \"{3}\" was canceled due to leader Exit filled, it will not cancel on follower's side", new object[]
								{
									CS$<>8__locals1.replikantoOrder_0.OrderId,
									CS$<>8__locals1.replikantoOrder_0.OrderState,
									Delegate373.smethod_0(CS$<>8__locals1.slaveAccount_0, Delegate373.AqggkfHrBe),
									this.UniqueID
								}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
								return;
							}
							if (flag5 && CS$<>8__locals1.replikantoOrder_0.HasOpositeFilled)
							{
								flag5 = false;
								Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Order {0} '{1}' for follower account {2} from tab \"{3}\" has opposite order (Same OCO) filled, it will not cancel", new object[]
								{
									Delegate138.smethod_0(CS$<>8__locals3.order_0, Delegate138.mDysTjiIyF),
									Delegate145.smethod_0(CS$<>8__locals3.order_0, Delegate145.delegate145_0),
									Delegate373.smethod_0(CS$<>8__locals1.slaveAccount_0, Delegate373.AqggkfHrBe),
									this.UniqueID
								}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
							}
							if (!flag5)
							{
								Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Wainting the opposite order to be filled to cancel follower order {0} '{1}' for follower account {2} from tab \"{3}\"", new object[]
								{
									Delegate138.smethod_0(CS$<>8__locals3.order_0, Delegate138.mDysTjiIyF),
									Delegate145.smethod_0(CS$<>8__locals3.order_0, Delegate145.delegate145_0),
									Delegate373.smethod_0(CS$<>8__locals1.slaveAccount_0, Delegate373.AqggkfHrBe),
									this.UniqueID
								}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
							}
							else
							{
								this.method_67(CS$<>8__locals1.replikantoOrder_0, CS$<>8__locals1.slaveAccount_0, CS$<>8__locals3.order_0);
								Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Cancel Order {0} '{1}' for follower account {2} from tab \"{3}\"", new object[]
								{
									Delegate138.smethod_0(CS$<>8__locals3.order_0, Delegate138.mDysTjiIyF),
									Delegate145.smethod_0(CS$<>8__locals3.order_0, Delegate145.delegate145_0),
									Delegate373.smethod_0(CS$<>8__locals1.slaveAccount_0, Delegate373.AqggkfHrBe),
									this.UniqueID
								}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
								Delegate446.smethod_0(Delegate230.smethod_0(CS$<>8__locals1.slaveAccount_0, Delegate230.delegate230_0), new Order[] { CS$<>8__locals3.order_0 }, Delegate446.delegate446_0);
							}
						}
						else
						{
							if (Delegate145.smethod_0(CS$<>8__locals3.order_0, Delegate145.delegate145_0) != 1 && Delegate145.smethod_0(CS$<>8__locals3.order_0, Delegate145.delegate145_0) != 5)
							{
								if (Delegate145.smethod_0(CS$<>8__locals3.order_0, Delegate145.delegate145_0) != 11)
								{
									if (Delegate145.smethod_0(CS$<>8__locals3.order_0, Delegate145.delegate145_0) == 9)
									{
										Delegate34.smethod_0(Delegate288.smethod_0(new string[]
										{
											"Replikanto: Order ",
											Delegate138.smethod_0(CS$<>8__locals3.order_0, Delegate138.mDysTjiIyF),
											" is rejected for follower account ",
											Delegate373.smethod_0(CS$<>8__locals1.slaveAccount_0, Delegate373.AqggkfHrBe),
											" from tab \"",
											this.UniqueID,
											"\", impossible to cancel"
										}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
										goto IL_0D02;
									}
									if (Delegate145.smethod_0(CS$<>8__locals3.order_0, Delegate145.delegate145_0) == 2)
									{
										Delegate34.smethod_0(Delegate288.smethod_0(new string[]
										{
											"Replikanto: Order ",
											Delegate138.smethod_0(CS$<>8__locals3.order_0, Delegate138.mDysTjiIyF),
											" was filled for follower account ",
											Delegate373.smethod_0(CS$<>8__locals1.slaveAccount_0, Delegate373.AqggkfHrBe),
											" from tab \"",
											this.UniqueID,
											"\", impossible to cancel"
										}, Delegate288.delegate288_0), 2, Delegate34.delegate34_0);
										goto IL_0D02;
									}
									goto IL_0D02;
								}
							}
							Delegate34.smethod_0(Delegate288.smethod_0(new string[]
							{
								"Replikanto: Order ",
								Delegate138.smethod_0(CS$<>8__locals3.order_0, Delegate138.mDysTjiIyF),
								" is already cancelled for follower account ",
								Delegate373.smethod_0(CS$<>8__locals1.slaveAccount_0, Delegate373.AqggkfHrBe),
								" from tab \"",
								this.UniqueID,
								"\""
							}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
						}
						IL_0D02:
						flag3 = true;
						num = num4 - 1;
					}
					num4--;
				}
				if (!flag3)
				{
					Delegate34.smethod_0(Delegate288.smethod_0(new string[]
					{
						"Replikanto: No linked order found to cancel that matches ",
						CS$<>8__locals1.replikantoOrder_0.Id,
						" for follower account ",
						Delegate373.smethod_0(CS$<>8__locals1.slaveAccount_0, Delegate373.AqggkfHrBe),
						" from tab \"",
						this.UniqueID,
						"\""
					}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
					ReplikantoOrderEventArgs replikantoOrderEventArgs = CS$<>8__locals1.replikantoOrder_0.OrderUpdates.LastOrDefault(new Func<ReplikantoOrderEventArgs, bool>(ReplikantoTabPage.<>c.<>c_0.method_30));
					if (replikantoOrderEventArgs == null)
					{
						return;
					}
					TimeSpan timeSpan = Delegate447.smethod_0(CS$<>8__locals1.replikantoOrder_0.Time, replikantoOrderEventArgs.Time, Delegate447.delegate447_0);
					if (Delegate448.smethod_0(ref timeSpan, Delegate448.delegate448_0) < (double)ReplikantoTabPage.int_2)
					{
						ReplikantoTabPage.<>c__DisplayClass180_3 CS$<>8__locals4 = new ReplikantoTabPage.<>c__DisplayClass180_3();
						CS$<>8__locals4.<>c__DisplayClass180_0_0 = CS$<>8__locals1;
						Delegate34.smethod_0(Delegate288.smethod_0(new string[]
						{
							"Replikanto: Let's wait a follower order submittion for follower account ",
							Delegate373.smethod_0(CS$<>8__locals4.<>c__DisplayClass180_0_0.slaveAccount_0, Delegate373.AqggkfHrBe),
							" from tab \"",
							this.UniqueID,
							"\""
						}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
						CS$<>8__locals4.eventHandler_0 = null;
						CS$<>8__locals4.eventHandler_0 = new EventHandler<OrderEventArgs>(CS$<>8__locals4.method_0);
						Delegate340.smethod_0(Delegate230.smethod_0(CS$<>8__locals4.<>c__DisplayClass180_0_0.slaveAccount_0, Delegate230.delegate230_0), CS$<>8__locals4.eventHandler_0, Delegate340.delegate340_0);
						Delegate314.smethod_0(Delegate25.smethod_0(ReplikantoTabPage.int_2, Delegate25.delegate25_0), new Action<Task>(CS$<>8__locals4.method_1), Delegate314.delegate314_0);
					}
				}
			}
		}

		private void method_72(ReplikantoOrder replikantoOrder_0, SlaveAccount slaveAccount_0, string string_4)
		{
			ReplikantoTabPage.<>c__DisplayClass181_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass181_0();
			CS$<>8__locals1.replikantoTabPage_0 = this;
			CS$<>8__locals1.replikantoOrder_0 = replikantoOrder_0;
			if (slaveAccount_0.Status != FollowerAccountStatus.Checked && slaveAccount_0.Status != FollowerAccountStatus.OutOfSync)
			{
				return;
			}
			if (CS$<>8__locals1.replikantoOrder_0.IsFromExecution)
			{
				return;
			}
			CS$<>8__locals1.instrument_0 = ((!slaveAccount_0.CrossOrder || !this.isCrossOrderChecked) ? CS$<>8__locals1.replikantoOrder_0.Instrument : this.CrossOrderInstrument);
			if (CS$<>8__locals1.instrument_0 != null)
			{
				bool flag = false;
				if (Delegate102.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "External", Delegate102.delegate102_0))
				{
					Account account = Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0);
					IEnumerable<Order> enumerable = ((account != null) ? Delegate444.smethod_0(account, Delegate444.delegate444_0).ToList<Order>().Where(new Func<Order, bool>(CS$<>8__locals1.method_0)) : null);
					for (int i = ((enumerable == null) ? 0 : enumerable.Count<Order>()) - 1; i >= 0; i--)
					{
						Order order = enumerable.ElementAt(i);
						flag = true;
						Order order2 = this.method_75(CS$<>8__locals1.replikantoOrder_0, slaveAccount_0, order, true);
						if (order2 == null)
						{
							Delegate34.smethod_0(Delegate288.smethod_0(new string[]
							{
								"Replikanto: No changes to be made on order ",
								Delegate138.smethod_0(order, Delegate138.mDysTjiIyF),
								" for follower account ",
								Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
								" from tab \"",
								this.UniqueID,
								"\""
							}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
						}
						else
						{
							Account account2 = Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0);
							if (account2 != null)
							{
								Delegate449.smethod_0(account2, new Order[] { order2 }, Delegate449.delegate449_0);
							}
							Delegate34.smethod_0(Delegate288.smethod_0(new string[]
							{
								"Replikanto: Change Order ",
								Delegate138.smethod_0(order, Delegate138.mDysTjiIyF),
								" for follower account ",
								Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
								" from tab \"",
								this.UniqueID,
								"\""
							}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
						}
					}
				}
				if (!flag)
				{
					try
					{
						if (!Delegate44.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, Delegate44.delegate44_0))
						{
							string[] array = Delegate191.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, new char[] { '-' }, Delegate191.delegate191_0);
							if (array != null && array.Length != 0)
							{
								ReplikantoTabPage.<>c__DisplayClass181_1 CS$<>8__locals2 = new ReplikantoTabPage.<>c__DisplayClass181_1();
								CS$<>8__locals2.<>c__DisplayClass181_0_0 = CS$<>8__locals1;
								CS$<>8__locals2.long_0 = long.MinValue;
								for (int j = 0; j < Delegate100.smethod_0(array.Length, 2, Delegate100.delegate100_0); j++)
								{
									try
									{
										CS$<>8__locals2.long_0 = Delegate450.smethod_0(array[j], Delegate450.delegate450_0);
										break;
									}
									catch
									{
									}
								}
								if (CS$<>8__locals2.long_0 > 0L)
								{
									Account account3 = Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0);
									if (((account3 == null) ? null : Delegate444.smethod_0(account3, Delegate444.delegate444_0).Reverse<Order>().FirstOrDefault(new Func<Order, bool>(CS$<>8__locals2.method_0))) != null)
									{
										Delegate34.smethod_0(Delegate33.smethod_0("Replikanto: ", Resources.LoopPreventionPerformed, Delegate33.delegate33_0), 0, Delegate34.delegate34_0);
										return;
									}
								}
							}
						}
					}
					catch
					{
					}
					OrderAction orderAction;
					OrderType orderType;
					double num2;
					double num3;
					double num4;
					int num = this.method_47(CS$<>8__locals1.replikantoOrder_0, slaveAccount_0, out orderAction, out orderType, out num2, out num3, out num4, 0);
					if (this.ReplikantoProperties.ScalperTicketIntegration && (orderType == null || orderType == 4))
					{
						double num5 = num2;
						double num6 = num3;
						if (CS$<>8__locals1.replikantoOrder_0.ScalperTicketOrderType != ScalperTicketOrderType.BuyBid)
						{
							if (CS$<>8__locals1.replikantoOrder_0.ScalperTicketOrderType != ScalperTicketOrderType.SellBid)
							{
								if (CS$<>8__locals1.replikantoOrder_0.ScalperTicketOrderType != ScalperTicketOrderType.SellAsk)
								{
									if (CS$<>8__locals1.replikantoOrder_0.ScalperTicketOrderType != ScalperTicketOrderType.BuyAsk)
									{
										if (CS$<>8__locals1.replikantoOrder_0.ScalperTicketOrderType == ScalperTicketOrderType.SellBidSimulated)
										{
											try
											{
												num3 = Delegate453.smethod_0(Delegate452.smethod_0(Delegate451.smethod_0(CS$<>8__locals1.instrument_0, Delegate451.delegate451_0), Delegate452.delegate452_0), Delegate453.delegate453_0);
												if (num3 != 0.0 && !Delegate218.smethod_0(num3, Delegate218.delegate218_0))
												{
													Delegate34.smethod_0(Delegate82.smethod_0("Replikanto: Follower account {0} is using Bid price {1} from market instead of copying from leader's order price", Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe), num3, Delegate82.delegate82_0), 1, Delegate34.delegate34_0);
												}
												else
												{
													num3 = num6;
												}
												goto IL_05E6;
											}
											catch
											{
												num3 = num6;
												goto IL_05E6;
											}
										}
										if (CS$<>8__locals1.replikantoOrder_0.ScalperTicketOrderType != ScalperTicketOrderType.BuyAskSimulated)
										{
											goto IL_05E6;
										}
										try
										{
											num3 = Delegate453.smethod_0(Delegate454.smethod_0(Delegate451.smethod_0(CS$<>8__locals1.instrument_0, Delegate451.delegate451_0), Delegate454.delegate454_0), Delegate453.delegate453_0);
											if (num3 != 0.0 && !Delegate218.smethod_0(num3, Delegate218.delegate218_0))
											{
												Delegate34.smethod_0(Delegate82.smethod_0("Replikanto: Follower account {0} is using Ask price {1} from market instead of copying from leader's order price", Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe), num3, Delegate82.delegate82_0), 1, Delegate34.delegate34_0);
											}
											else
											{
												num3 = num6;
											}
											goto IL_05E6;
										}
										catch
										{
											num3 = num6;
											goto IL_05E6;
										}
									}
								}
								try
								{
									num2 = Delegate453.smethod_0(Delegate454.smethod_0(Delegate451.smethod_0(CS$<>8__locals1.instrument_0, Delegate451.delegate451_0), Delegate454.delegate454_0), Delegate453.delegate453_0);
									if (num2 != 0.0 && !Delegate218.smethod_0(num2, Delegate218.delegate218_0))
									{
										Delegate34.smethod_0(Delegate82.smethod_0("Replikanto: Follower account {0} is using Ask price {1} from market instead of copying from leader's order price", Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe), num2, Delegate82.delegate82_0), 1, Delegate34.delegate34_0);
									}
									else
									{
										num2 = num5;
									}
									goto IL_05E6;
								}
								catch
								{
									num2 = num5;
									goto IL_05E6;
								}
							}
						}
						try
						{
							num2 = Delegate453.smethod_0(Delegate452.smethod_0(Delegate451.smethod_0(CS$<>8__locals1.instrument_0, Delegate451.delegate451_0), Delegate452.delegate452_0), Delegate453.delegate453_0);
							if (num2 != 0.0 && !Delegate218.smethod_0(num2, Delegate218.delegate218_0))
							{
								Delegate34.smethod_0(Delegate82.smethod_0("Replikanto: Follower account {0} is using Bid price {1} from market instead of copying from leader's order price", Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe), num2, Delegate82.delegate82_0), 1, Delegate34.delegate34_0);
							}
							else
							{
								num2 = num5;
							}
						}
						catch
						{
							num2 = num5;
						}
					}
					IL_05E6:
					if (num != 0)
					{
						Order order3 = null;
						if (!Delegate44.smethod_0(string_4, Delegate44.delegate44_0) && (Delegate307.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "Entry", Delegate307.delegate307_0) || Delegate307.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "Exit", Delegate307.delegate307_0) || Delegate307.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "Target", Delegate307.delegate307_0) || Delegate307.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "Stop", Delegate307.delegate307_0) || Delegate307.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "SimStop", Delegate307.delegate307_0)))
						{
							if (Delegate307.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "Target", Delegate307.delegate307_0) || Delegate307.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "Stop", Delegate307.delegate307_0) || Delegate307.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "SimStop", Delegate307.delegate307_0))
							{
								try
								{
									StrategyBase strategyBase = CS$<>8__locals1.replikantoOrder_0.StrategyBase;
								}
								catch
								{
								}
								return;
							}
							AtmStrategy atmStrategy = this.method_70(CS$<>8__locals1.replikantoOrder_0, slaveAccount_0, CS$<>8__locals1.instrument_0);
							if (atmStrategy == null)
							{
								AtmStrategy atmStrategy2 = atmStrategy;
								if (Delegate307.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "Exit", Delegate307.delegate307_0) && atmStrategy2 == null)
								{
									Delegate34.smethod_0(Delegate288.smethod_0(new string[]
									{
										"Replikanto: Leader ",
										CS$<>8__locals1.replikantoOrder_0.Name,
										" order ",
										CS$<>8__locals1.replikantoOrder_0.OrderId,
										" cannot be copied to ",
										Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
										" from tab \"",
										this.UniqueID,
										"\" using the ATM. Followers position is flat or ATM not found"
									}, Delegate288.delegate288_0), 2, Delegate34.delegate34_0);
									return;
								}
								Account account4 = Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0);
								order3 = ((account4 == null) ? null : Delegate455.smethod_0(account4, CS$<>8__locals1.instrument_0, orderAction, orderType, this.ReplikantoProperties.StealthMode ? 1 : CS$<>8__locals1.replikantoOrder_0.OrderEntry, CS$<>8__locals1.replikantoOrder_0.TimeInForce, num, num2, num3, CS$<>8__locals1.replikantoOrder_0.Oco, Delegate307.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "Entry", Delegate307.delegate307_0) ? "Entry" : "Exit", CS$<>8__locals1.replikantoOrder_0.Gtd, null, Delegate455.delegate455_0));
								if (order3 == null)
								{
									goto IL_0D81;
								}
								ReplikantoTabPage.<>c__DisplayClass181_2 CS$<>8__locals3 = new ReplikantoTabPage.<>c__DisplayClass181_2();
								if (CS$<>8__locals1.replikantoOrder_0.BlockCopy && !ReplikantoTabPage.list_5.Contains(Delegate114.smethod_0(order3, Delegate114.delegate114_0)))
								{
									ReplikantoTabPage.list_5.Add(Delegate114.smethod_0(order3, Delegate114.delegate114_0));
								}
								if (Delegate123.smethod_0(order3, Delegate123.delegate123_0) != num)
								{
									Delegate456.smethod_0(order3, num, Delegate456.delegate456_0);
									Delegate34.smethod_0(Delegate82.smethod_0("Replikanto: Info [1005] for Order {0} from tab \"{1}\"", order3, this.UniqueID, Delegate82.delegate82_0), 1, Delegate34.delegate34_0);
								}
								this.method_67(CS$<>8__locals1.replikantoOrder_0, slaveAccount_0, order3);
								CS$<>8__locals3.atmStrategy_0 = null;
								if (Delegate102.smethod_0(string_4, "Custom", Delegate102.delegate102_0) && CS$<>8__locals1.replikantoOrder_0.StrategyBase != null)
								{
									CS$<>8__locals3.atmStrategy_0 = Delegate458.smethod_0((AtmStrategy)CS$<>8__locals1.replikantoOrder_0.StrategyBase, order3, Delegate458.delegate458_0);
								}
								else
								{
									CS$<>8__locals3.atmStrategy_0 = Delegate459.smethod_0(string_4, order3, Delegate459.delegate459_0);
								}
								Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Submitted Order {0} to {1} copied from leader order id {2} from tab \"{3}\" using the ATM {4}", new object[]
								{
									order3,
									Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
									CS$<>8__locals1.replikantoOrder_0.OrderId,
									this.UniqueID,
									CS$<>8__locals3.atmStrategy_0
								}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
								Delegate460.smethod_0(CS$<>8__locals3.atmStrategy_0, false, Delegate460.delegate460_0);
								Delegate461.smethod_0(CS$<>8__locals3.atmStrategy_0, false, Delegate461.delegate461_0);
								try
								{
									if (this.concurrentDictionary_3.AddOrUpdate(Tuple.Create<long, long>(Delegate225.smethod_0(Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0), Delegate225.delegate225_0), CS$<>8__locals1.replikantoOrder_0.StrategyId), CS$<>8__locals3.atmStrategy_0, new Func<Tuple<long, long>, AtmStrategy, AtmStrategy>(CS$<>8__locals3.method_0)) == null)
									{
										this.concurrentDictionary_3.TryAdd(Tuple.Create<long, long>(Delegate225.smethod_0(Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0), Delegate225.delegate225_0), CS$<>8__locals1.replikantoOrder_0.StrategyId), CS$<>8__locals3.atmStrategy_0);
									}
									goto IL_0D81;
								}
								catch
								{
									goto IL_0D81;
								}
							}
							Account account5 = Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0);
							order3 = ((account5 == null) ? null : Delegate455.smethod_0(account5, CS$<>8__locals1.instrument_0, orderAction, orderType, (!this.ReplikantoProperties.StealthMode) ? CS$<>8__locals1.replikantoOrder_0.OrderEntry : 1, CS$<>8__locals1.replikantoOrder_0.TimeInForce, num, num2, num3, CS$<>8__locals1.replikantoOrder_0.Oco, Delegate307.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "Entry", Delegate307.delegate307_0) ? "Entry" : "Exit", CS$<>8__locals1.replikantoOrder_0.Gtd, null, Delegate455.delegate455_0));
							if (order3 != null)
							{
								if (CS$<>8__locals1.replikantoOrder_0.BlockCopy && !ReplikantoTabPage.list_5.Contains(Delegate114.smethod_0(order3, Delegate114.delegate114_0)))
								{
									ReplikantoTabPage.list_5.Add(Delegate114.smethod_0(order3, Delegate114.delegate114_0));
								}
								if (Delegate123.smethod_0(order3, Delegate123.delegate123_0) != num)
								{
									Delegate456.smethod_0(order3, num, Delegate456.delegate456_0);
									Delegate34.smethod_0(Delegate82.smethod_0("Replikanto: Info [1005] for Order {0} from tab \"{1}\"", order3, this.UniqueID, Delegate82.delegate82_0), 1, Delegate34.delegate34_0);
								}
								Delegate457.smethod_0(atmStrategy, order3, Delegate457.delegate457_0);
								Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Manage Order {0} to {1} copied from leader order id {2} from tab \"{3}\" using the ATM {4}", new object[]
								{
									order3,
									Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
									CS$<>8__locals1.replikantoOrder_0.OrderId,
									this.UniqueID,
									atmStrategy
								}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
							}
						}
						else
						{
							Account account6 = Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0);
							order3 = ((account6 != null) ? Delegate455.smethod_0(account6, CS$<>8__locals1.instrument_0, orderAction, orderType, (!this.ReplikantoProperties.StealthMode) ? CS$<>8__locals1.replikantoOrder_0.OrderEntry : 1, CS$<>8__locals1.replikantoOrder_0.TimeInForce, num, num2, num3, this.method_61(CS$<>8__locals1.replikantoOrder_0, slaveAccount_0), this.method_59(CS$<>8__locals1.replikantoOrder_0), CS$<>8__locals1.replikantoOrder_0.Gtd, null, Delegate455.delegate455_0) : null);
							if (order3 != null)
							{
								if (CS$<>8__locals1.replikantoOrder_0.BlockCopy && !ReplikantoTabPage.list_5.Contains(Delegate114.smethod_0(order3, Delegate114.delegate114_0)))
								{
									ReplikantoTabPage.list_5.Add(Delegate114.smethod_0(order3, Delegate114.delegate114_0));
								}
								if (Delegate123.smethod_0(order3, Delegate123.delegate123_0) != num)
								{
									Delegate456.smethod_0(order3, num, Delegate456.delegate456_0);
									Delegate34.smethod_0(Delegate82.smethod_0("Replikanto: Info [1005] for Order {0} from tab \"{1}\"", order3, this.UniqueID, Delegate82.delegate82_0), 1, Delegate34.delegate34_0);
								}
								this.method_67(CS$<>8__locals1.replikantoOrder_0, slaveAccount_0, order3);
								Delegate462.smethod_0(Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0), new Order[] { order3 }, Delegate462.delegate462_0);
								Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Submitted Order {0} to {1} copied from leader order id {2} from tab \"{3}\"", new object[]
								{
									order3,
									Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
									CS$<>8__locals1.replikantoOrder_0.OrderId,
									this.UniqueID
								}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
							}
						}
						IL_0D81:
						if (order3 == null)
						{
							return;
						}
						try
						{
							List<CompositeID> list;
							if (!this.concurrentDictionary_2.ContainsKey(CS$<>8__locals1.replikantoOrder_0.GetCompositeID()))
							{
								this.concurrentDictionary_2.TryAdd(CS$<>8__locals1.replikantoOrder_0.GetCompositeID(), new List<CompositeID>(new CompositeID[] { ReplikantoOrder.Parse(order3).GetCompositeID() }));
							}
							else if (this.concurrentDictionary_2.TryGetValue(CS$<>8__locals1.replikantoOrder_0.GetCompositeID(), out list))
							{
								list.Add(ReplikantoOrder.Parse(order3).GetCompositeID());
							}
							return;
						}
						catch (Exception ex)
						{
							Delegate34.smethod_0(Delegate82.smethod_0("Replikanto: Info [1006] for {0}. {1}", CS$<>8__locals1.replikantoOrder_0, ex, Delegate82.delegate82_0), 1, Delegate34.delegate34_0);
							return;
						}
					}
					string[] array2 = new string[7];
					array2[0] = "Replikanto: Order not submitted to follower account ";
					array2[1] = Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe);
					array2[2] = " within instrument ";
					int num7 = 3;
					Instrument instrument = CS$<>8__locals1.replikantoOrder_0.Instrument;
					array2[num7] = ((instrument == null) ? null : Delegate120.smethod_0(instrument, Delegate120.delegate120_0));
					array2[4] = " from tab \"";
					array2[5] = this.UniqueID;
					array2[6] = "\". Calculation quantity result was zero";
					Delegate34.smethod_0(Delegate288.smethod_0(array2, Delegate288.delegate288_0), 2, Delegate34.delegate34_0);
				}
				return;
			}
			Delegate34.smethod_0(Delegate32.smethod_0("Replikanto: Instrument for {0} is null", slaveAccount_0, Delegate32.delegate32_0), 2, Delegate34.delegate34_0);
		}

		private void method_73(ReplikantoOrder replikantoOrder_0, SlaveAccount slaveAccount_0, string string_4, string string_5)
		{
			ReplikantoTabPage.<>c__DisplayClass182_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass182_0();
			CS$<>8__locals1.replikantoTabPage_0 = this;
			CS$<>8__locals1.replikantoOrder_0 = replikantoOrder_0;
			CS$<>8__locals1.slaveAccount_0 = slaveAccount_0;
			CS$<>8__locals1.string_0 = string_4;
			if (CS$<>8__locals1.slaveAccount_0.Status != FollowerAccountStatus.Checked && CS$<>8__locals1.slaveAccount_0.Status != FollowerAccountStatus.OutOfSync)
			{
				return;
			}
			if (CS$<>8__locals1.replikantoOrder_0.IsFromExecution)
			{
				return;
			}
			CS$<>8__locals1.instrument_0 = ((!CS$<>8__locals1.slaveAccount_0.CrossOrder || !this.isCrossOrderChecked) ? CS$<>8__locals1.replikantoOrder_0.Instrument : this.CrossOrderInstrument);
			if (CS$<>8__locals1.instrument_0 == null)
			{
				Delegate34.smethod_0(Delegate32.smethod_0("Replikanto: Instrument for {0} is null", CS$<>8__locals1.slaveAccount_0, Delegate32.delegate32_0), 2, Delegate34.delegate34_0);
				return;
			}
			if (!Delegate44.smethod_0(string_5, Delegate44.delegate44_0) && (Delegate307.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "Entry", Delegate307.delegate307_0) || Delegate307.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "Exit", Delegate307.delegate307_0) || Delegate307.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "Target", Delegate307.delegate307_0) || Delegate307.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "Stop", Delegate307.delegate307_0) || Delegate307.smethod_0(CS$<>8__locals1.replikantoOrder_0.Name, "SimStop", Delegate307.delegate307_0)))
			{
				ReplikantoTabPage.<>c__DisplayClass182_1 CS$<>8__locals2 = new ReplikantoTabPage.<>c__DisplayClass182_1();
				CS$<>8__locals2.<>c__DisplayClass182_0_0 = CS$<>8__locals1;
				CS$<>8__locals2.atmStrategy_0 = null;
				CS$<>8__locals2.atmStrategy_0 = this.method_70(CS$<>8__locals2.<>c__DisplayClass182_0_0.replikantoOrder_0, CS$<>8__locals2.<>c__DisplayClass182_0_0.slaveAccount_0, CS$<>8__locals2.<>c__DisplayClass182_0_0.instrument_0);
				if (CS$<>8__locals2.atmStrategy_0 != null)
				{
					AtmStrategy atmStrategy_ = CS$<>8__locals2.atmStrategy_0;
					List<Order> list;
					if (atmStrategy_ == null)
					{
						list = null;
					}
					else
					{
						Collection<Order> collection = Delegate445.smethod_0(atmStrategy_, Delegate445.delegate445_0);
						list = ((collection != null) ? collection.ToList<Order>() : null);
					}
					List<Order> list2 = list;
					int[] array = this.method_68(CS$<>8__locals2.<>c__DisplayClass182_0_0.replikantoOrder_0, list2);
					if (array.Length != 0)
					{
						Account account = Delegate230.smethod_0(CS$<>8__locals2.<>c__DisplayClass182_0_0.slaveAccount_0, Delegate230.delegate230_0);
						IEnumerable<Order> enumerable;
						if (account != null)
						{
							Collection<Order> collection2 = Delegate444.smethod_0(account, Delegate444.delegate444_0);
							enumerable = ((collection2 == null) ? null : collection2.ToList<Order>().Where(new Func<Order, bool>(CS$<>8__locals2.method_0)));
						}
						else
						{
							enumerable = null;
						}
						IEnumerable<Order> enumerable2 = enumerable;
						int i = ((enumerable2 == null) ? 0 : enumerable2.Count<Order>()) - 1;
						while (i >= 0)
						{
							ReplikantoTabPage.<>c__DisplayClass182_2 CS$<>8__locals3 = new ReplikantoTabPage.<>c__DisplayClass182_2();
							CS$<>8__locals3.<>c__DisplayClass182_1_0 = CS$<>8__locals2;
							CS$<>8__locals3.order_0 = enumerable2.ElementAt(i);
							if (!Delegate307.smethod_0(CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.replikantoOrder_0.Name, "Target", Delegate307.delegate307_0) && !Delegate307.smethod_0(CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.replikantoOrder_0.Name, "Stop", Delegate307.delegate307_0) && !Delegate307.smethod_0(CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.replikantoOrder_0.Name, "SimStop", Delegate307.delegate307_0))
							{
								goto IL_037D;
							}
							if (CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.replikantoOrder_0.SuppressChange)
							{
								Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Leader order {0} '{1}' for follower account {2} from tab \"{3}\" was changed due to leader Exit filled, it will not change on follower's side", new object[]
								{
									CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.replikantoOrder_0.OrderId,
									CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.replikantoOrder_0.OrderState,
									Delegate373.smethod_0(CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.slaveAccount_0, Delegate373.AqggkfHrBe),
									this.UniqueID
								}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
								return;
							}
							StrategyBase strategyBase = Delegate133.smethod_0(CS$<>8__locals3.order_0, Delegate133.delegate133_0);
							if (strategyBase == null)
							{
								goto IL_037D;
							}
							if (array.Length != 0)
							{
								Collection<Order> collection3 = Delegate136.smethod_0((AtmStrategy)strategyBase, Delegate136.delegate136_0);
								if (collection3 == null)
								{
									goto IL_037D;
								}
								int num = collection3.IndexOf(CS$<>8__locals3.order_0);
								if (num <= 0 || CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.replikantoOrder_0.StrategyOrderIndex <= 0 || array.Contains(num))
								{
									goto IL_037D;
								}
							}
							IL_098F:
							i--;
							continue;
							IL_037D:
							bool flag = false;
							if (!Delegate307.smethod_0(CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.replikantoOrder_0.Name, "Entry", Delegate307.delegate307_0) && !Delegate307.smethod_0(CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.replikantoOrder_0.Name, "Exit", Delegate307.delegate307_0))
							{
								if (Delegate307.smethod_0(CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.replikantoOrder_0.Name, "Target", Delegate307.delegate307_0) || Delegate307.smethod_0(CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.replikantoOrder_0.Name, "Stop", Delegate307.delegate307_0) || Delegate307.smethod_0(CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.replikantoOrder_0.Name, "SimStop", Delegate307.delegate307_0))
								{
									if (this.Method == EnumMethod.Ratio && CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.slaveAccount_0.Ratio < 0.0)
									{
										Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Leader order {0} '{1}' for follower account {2} from tab \"{3}\" cannot be change when Ratio value is < 0", new object[]
										{
											CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.replikantoOrder_0.OrderId,
											CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.replikantoOrder_0.OrderState,
											Delegate373.smethod_0(CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.slaveAccount_0, Delegate373.AqggkfHrBe),
											this.UniqueID
										}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
										goto IL_098F;
									}
									if (Delegate104.smethod_0(Delegate116.smethod_0(CS$<>8__locals3.order_0, Delegate116.delegate116_0), CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.replikantoOrder_0.Name, Delegate104.delegate104_0) || Delegate158.smethod_0(Delegate152.smethod_0(CS$<>8__locals3.order_0, Delegate152.delegate152_0)[Delegate152.smethod_0(CS$<>8__locals3.order_0, Delegate152.delegate152_0).Count - 1], Delegate158.YneVagLmKx) == 12)
									{
										goto IL_098F;
									}
								}
							}
							else
							{
								if (Delegate104.smethod_0(this.method_60(CS$<>8__locals3.order_0, true, null), this.method_58(CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.replikantoOrder_0, null), Delegate104.delegate104_0) && Delegate104.smethod_0(this.method_60(CS$<>8__locals3.order_0, true, null), CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.replikantoOrder_0.Id, Delegate104.delegate104_0))
								{
									goto IL_098F;
								}
								flag = Delegate145.smethod_0(CS$<>8__locals3.order_0, Delegate145.delegate145_0) != 4;
							}
							bool flag2 = true;
							if (CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.replikantoOrder_0.HasOpositeFilled)
							{
								Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Order {0} '{1}' for follower account {2} from tab \"{3}\" has opposite order (Same OCO*) filled, it will not change", new object[]
								{
									Delegate138.smethod_0(CS$<>8__locals3.order_0, Delegate138.mDysTjiIyF),
									Delegate145.smethod_0(CS$<>8__locals3.order_0, Delegate145.delegate145_0),
									Delegate373.smethod_0(CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.slaveAccount_0, Delegate373.AqggkfHrBe),
									this.UniqueID
								}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
								flag2 = false;
							}
							if (!flag2)
							{
								Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Wainting the opposite order to be filled to change follower order {0} '{1}' for follower account {2} from tab \"{3}\"", new object[]
								{
									Delegate138.smethod_0(CS$<>8__locals3.order_0, Delegate138.mDysTjiIyF),
									Delegate145.smethod_0(CS$<>8__locals3.order_0, Delegate145.delegate145_0),
									Delegate373.smethod_0(CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.slaveAccount_0, Delegate373.AqggkfHrBe),
									this.UniqueID
								}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
								goto IL_098F;
							}
							CS$<>8__locals3.order_1 = this.method_75(CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.replikantoOrder_0, CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.slaveAccount_0, CS$<>8__locals3.order_0, flag);
							if (CS$<>8__locals3.order_1 == null)
							{
								Delegate34.smethod_0(Delegate288.smethod_0(new string[]
								{
									"Replikanto: No changes to be made on order ",
									Delegate138.smethod_0(CS$<>8__locals3.order_0, Delegate138.mDysTjiIyF),
									" for follower account ",
									Delegate373.smethod_0(CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.slaveAccount_0, Delegate373.AqggkfHrBe),
									" from tab \"",
									this.UniqueID,
									"\""
								}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
								goto IL_098F;
							}
							this.method_67(CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.replikantoOrder_0, CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.slaveAccount_0, CS$<>8__locals3.order_1);
							OrderState orderState = Delegate145.smethod_0(CS$<>8__locals3.order_0, Delegate145.delegate145_0);
							OrderState[] array2 = new OrderState[4];
							Delegate239.smethod_0(array2, fieldof(<PrivateImplementationDetails>.C6B5B273C9F86FB3A7EB7B89C4F41BE9A73992E57047D5A5C4AC4A7EAB38A2EB).FieldHandle, Delegate239.delegate239_0);
							if (array2.Contains(orderState))
							{
								CS$<>8__locals3.eventHandler_0 = null;
								CS$<>8__locals3.eventHandler_0 = new EventHandler<OrderEventArgs>(CS$<>8__locals3.method_0);
								Delegate340.smethod_0(Delegate230.smethod_0(CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.slaveAccount_0, Delegate230.delegate230_0), CS$<>8__locals3.eventHandler_0, Delegate340.delegate340_0);
								Delegate314.smethod_0(Delegate25.smethod_0(ReplikantoTabPage.int_2, Delegate25.delegate25_0), new Action<Task>(CS$<>8__locals3.method_1), Delegate314.delegate314_0);
								goto IL_098F;
							}
							Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Changing Order {0} '{1}' '{2}' ('{3}', '{4}') for follower account {5} from tab \"{6}\"", new object[]
							{
								Delegate138.smethod_0(CS$<>8__locals3.order_0, Delegate138.mDysTjiIyF),
								Delegate145.smethod_0(CS$<>8__locals3.order_0, Delegate145.delegate145_0),
								CS$<>8__locals3.order_1,
								Delegate463.smethod_0(CS$<>8__locals3.order_1, Delegate463.delegate463_0),
								Delegate464.smethod_0(CS$<>8__locals3.order_1, Delegate464.delegate464_0),
								Delegate373.smethod_0(CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.slaveAccount_0, Delegate373.AqggkfHrBe),
								this.UniqueID
							}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
							Delegate465.smethod_0(Delegate230.smethod_0(CS$<>8__locals3.<>c__DisplayClass182_1_0.<>c__DisplayClass182_0_0.slaveAccount_0, Delegate230.delegate230_0), new Order[] { CS$<>8__locals3.order_1 }, Delegate465.delegate465_0);
							goto IL_098F;
						}
						return;
					}
					return;
				}
			}
			else
			{
				ReplikantoTabPage.<>c__DisplayClass182_3 CS$<>8__locals4 = new ReplikantoTabPage.<>c__DisplayClass182_3();
				CS$<>8__locals4.<>c__DisplayClass182_0_0 = CS$<>8__locals1;
				Account account2 = Delegate230.smethod_0(CS$<>8__locals4.<>c__DisplayClass182_0_0.slaveAccount_0, Delegate230.delegate230_0);
				IEnumerable<Order> enumerable3;
				if (account2 == null)
				{
					enumerable3 = null;
				}
				else
				{
					Collection<Order> collection4 = Delegate444.smethod_0(account2, Delegate444.delegate444_0);
					enumerable3 = ((collection4 != null) ? collection4.ToList<Order>().Where(new Func<Order, bool>(CS$<>8__locals4.<>c__DisplayClass182_0_0.method_0)) : null);
				}
				IEnumerable<Order> enumerable4 = enumerable3;
				int num2 = enumerable4.Count<Order>();
				if (num2 == 0 && this.concurrentDictionary_2.TryGetValue(CS$<>8__locals4.<>c__DisplayClass182_0_0.replikantoOrder_0.GetCompositeID(), out CS$<>8__locals4.list_0))
				{
					List<CompositeID> list3 = CS$<>8__locals4.list_0;
					if (list3 != null && list3.Count > 0)
					{
						enumerable4 = Delegate277.smethod_0(Delegate230.smethod_0(CS$<>8__locals4.<>c__DisplayClass182_0_0.slaveAccount_0, Delegate230.delegate230_0), Delegate277.delegate277_0).ToList<Order>().Where(new Func<Order, bool>(CS$<>8__locals4.method_0));
						num2 = enumerable4.Count<Order>();
					}
				}
				bool flag3 = false;
				for (int j = num2 - 1; j >= 0; j--)
				{
					ReplikantoTabPage.<>c__DisplayClass182_5 CS$<>8__locals5 = new ReplikantoTabPage.<>c__DisplayClass182_5();
					CS$<>8__locals5.<>c__DisplayClass182_3_0 = CS$<>8__locals4;
					CS$<>8__locals5.order_0 = enumerable4.ElementAt(j);
					ReplikantoAccount replikantoAccount = CS$<>8__locals5.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.replikantoOrder_0.ReplikantoAccount;
					if (replikantoAccount != null && replikantoAccount.Provider == 50 && CS$<>8__locals5.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.replikantoOrder_0.SuppressChange)
					{
						Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Leader order {0} '{1}' for follower account {2} from tab \"{3}\" was changed due to leader Exit filled, it will not change on follower's side", new object[]
						{
							CS$<>8__locals5.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.replikantoOrder_0.OrderId,
							CS$<>8__locals5.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.replikantoOrder_0.OrderState,
							Delegate373.smethod_0(CS$<>8__locals5.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.slaveAccount_0, Delegate373.AqggkfHrBe),
							this.UniqueID
						}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
						return;
					}
					bool flag4 = true;
					if (!Delegate171.smethod_0(Delegate139.smethod_0(CS$<>8__locals5.order_0, Delegate139.qvGsqSkhle), Delegate171.delegate171_0))
					{
						string text = Delegate139.smethod_0(CS$<>8__locals5.order_0, Delegate139.qvGsqSkhle);
						if (Delegate139.smethod_0(CS$<>8__locals5.order_0, Delegate139.qvGsqSkhle).Contains('|'))
						{
							text = Delegate191.smethod_0(Delegate139.smethod_0(CS$<>8__locals5.order_0, Delegate139.qvGsqSkhle), new char[] { '|' }, Delegate191.delegate191_0)[0];
						}
						if (this.collection_0.Contains(Delegate97.smethod_0(text, "-", "", Delegate97.delegate97_0)))
						{
							flag4 = false;
						}
					}
					if (flag4 && CS$<>8__locals5.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.replikantoOrder_0.HasOpositeFilled)
					{
						Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Order {0} '{1}' for follower account {2} from tab \"{3}\" has opposite order (Same OCO*) filled, it will not change", new object[]
						{
							Delegate138.smethod_0(CS$<>8__locals5.order_0, Delegate138.mDysTjiIyF),
							Delegate145.smethod_0(CS$<>8__locals5.order_0, Delegate145.delegate145_0),
							Delegate373.smethod_0(CS$<>8__locals5.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.slaveAccount_0, Delegate373.AqggkfHrBe),
							this.UniqueID
						}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
						flag4 = false;
					}
					if (flag4)
					{
						CS$<>8__locals5.order_1 = this.method_75(CS$<>8__locals5.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.replikantoOrder_0, CS$<>8__locals5.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.slaveAccount_0, CS$<>8__locals5.order_0, true);
						if (!Delegate44.smethod_0(CS$<>8__locals5.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.string_0, Delegate44.delegate44_0))
						{
							string text2 = this.method_59(CS$<>8__locals5.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.replikantoOrder_0);
							try
							{
								CompositeID compositeID = CS$<>8__locals5.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.replikantoOrder_0.GetCompositeID();
								compositeID.Name = CS$<>8__locals5.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.string_0;
								List<CompositeID> list4;
								if (this.concurrentDictionary_2.ContainsKey(compositeID) && this.concurrentDictionary_2.TryGetValue(compositeID, out list4))
								{
									ReplikantoTabPage.<>c__DisplayClass182_6 CS$<>8__locals6 = new ReplikantoTabPage.<>c__DisplayClass182_6();
									List<CompositeID> list5;
									this.concurrentDictionary_2.TryRemove(compositeID, out list5);
									CS$<>8__locals6.compositeID_0 = ReplikantoOrder.Parse(CS$<>8__locals5.order_0).GetCompositeID();
									list4.Find(new Predicate<CompositeID>(CS$<>8__locals6.method_0)).Name = text2;
									this.concurrentDictionary_2.TryAdd(compositeID, list4);
								}
								goto IL_10E4;
							}
							catch (Exception)
							{
								goto IL_10E4;
							}
							goto IL_0DE2;
							IL_0DF0:
							Delegate466.smethod_0(CS$<>8__locals5.order_1, text2, Delegate466.delegate466_0);
							goto IL_0E03;
							IL_10E4:
							if (CS$<>8__locals5.order_1 != null)
							{
								goto IL_0DF0;
							}
							IL_0DE2:
							CS$<>8__locals5.order_1 = CS$<>8__locals5.order_0;
							goto IL_0DF0;
						}
						IL_0E03:
						flag3 = true;
						if (CS$<>8__locals5.order_1 == null)
						{
							Delegate34.smethod_0(Delegate288.smethod_0(new string[]
							{
								"Replikanto: No changes to be made on order ",
								Delegate138.smethod_0(CS$<>8__locals5.order_0, Delegate138.mDysTjiIyF),
								" for follower account ",
								Delegate373.smethod_0(CS$<>8__locals5.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.slaveAccount_0, Delegate373.AqggkfHrBe),
								" from tab \"",
								this.UniqueID,
								"\""
							}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
						}
						else
						{
							this.method_67(CS$<>8__locals5.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.replikantoOrder_0, CS$<>8__locals5.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.slaveAccount_0, CS$<>8__locals5.order_1);
							OrderState orderState2 = Delegate145.smethod_0(CS$<>8__locals5.order_0, Delegate145.delegate145_0);
							OrderState[] array3 = new OrderState[4];
							Delegate239.smethod_0(array3, fieldof(<PrivateImplementationDetails>.C6B5B273C9F86FB3A7EB7B89C4F41BE9A73992E57047D5A5C4AC4A7EAB38A2EB).FieldHandle, Delegate239.delegate239_0);
							if (array3.Contains(orderState2))
							{
								CS$<>8__locals5.eventHandler_0 = null;
								CS$<>8__locals5.eventHandler_0 = new EventHandler<OrderEventArgs>(CS$<>8__locals5.method_0);
								Delegate340.smethod_0(Delegate230.smethod_0(CS$<>8__locals5.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.slaveAccount_0, Delegate230.delegate230_0), CS$<>8__locals5.eventHandler_0, Delegate340.delegate340_0);
								Delegate314.smethod_0(Delegate25.smethod_0(ReplikantoTabPage.int_2, Delegate25.delegate25_0), new Action<Task>(CS$<>8__locals5.method_1), Delegate314.delegate314_0);
							}
							else
							{
								Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Changing Order {0} '{1}' '{2}' ('{3}', '{4}', '{5}') for follower account {6} from tab \"{7}\"", new object[]
								{
									Delegate138.smethod_0(CS$<>8__locals5.order_0, Delegate138.mDysTjiIyF),
									Delegate145.smethod_0(CS$<>8__locals5.order_0, Delegate145.delegate145_0),
									CS$<>8__locals5.order_1,
									Delegate463.smethod_0(CS$<>8__locals5.order_1, Delegate463.delegate463_0),
									Delegate464.smethod_0(CS$<>8__locals5.order_1, Delegate464.delegate464_0),
									Delegate467.smethod_0(CS$<>8__locals5.order_1, Delegate467.delegate467_0),
									Delegate373.smethod_0(CS$<>8__locals5.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.slaveAccount_0, Delegate373.AqggkfHrBe),
									this.UniqueID
								}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
								Delegate465.smethod_0(Delegate230.smethod_0(CS$<>8__locals5.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.slaveAccount_0, Delegate230.delegate230_0), new Order[] { CS$<>8__locals5.order_1 }, Delegate465.delegate465_0);
							}
						}
					}
					else
					{
						Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Wainting the opposite order to be filled to change follower order {0} '{1}' for follower account {2} from tab \"{3}\"", new object[]
						{
							Delegate138.smethod_0(CS$<>8__locals5.order_0, Delegate138.mDysTjiIyF),
							Delegate145.smethod_0(CS$<>8__locals5.order_0, Delegate145.delegate145_0),
							Delegate373.smethod_0(CS$<>8__locals5.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.slaveAccount_0, Delegate373.AqggkfHrBe),
							this.UniqueID
						}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
					}
				}
				if (!flag3)
				{
					Delegate34.smethod_0(Delegate288.smethod_0(new string[]
					{
						"Replikanto: No linked order found to change that matches ",
						CS$<>8__locals4.<>c__DisplayClass182_0_0.replikantoOrder_0.Id,
						" for follower account ",
						Delegate373.smethod_0(CS$<>8__locals4.<>c__DisplayClass182_0_0.slaveAccount_0, Delegate373.AqggkfHrBe),
						" from tab \"",
						this.UniqueID,
						"\""
					}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
					ReplikantoOrderEventArgs replikantoOrderEventArgs = CS$<>8__locals4.<>c__DisplayClass182_0_0.replikantoOrder_0.OrderUpdates.LastOrDefault(new Func<ReplikantoOrderEventArgs, bool>(ReplikantoTabPage.<>c.<>c_0.method_31));
					if (replikantoOrderEventArgs == null)
					{
						return;
					}
					TimeSpan timeSpan = Delegate447.smethod_0(CS$<>8__locals4.<>c__DisplayClass182_0_0.replikantoOrder_0.Time, replikantoOrderEventArgs.Time, Delegate447.delegate447_0);
					if (Delegate448.smethod_0(ref timeSpan, Delegate448.delegate448_0) < (double)ReplikantoTabPage.int_2)
					{
						ReplikantoTabPage.<>c__DisplayClass182_7 CS$<>8__locals7 = new ReplikantoTabPage.<>c__DisplayClass182_7();
						CS$<>8__locals7.<>c__DisplayClass182_3_0 = CS$<>8__locals4;
						Delegate34.smethod_0(Delegate288.smethod_0(new string[]
						{
							"Replikanto: Let's wait a follower order submittion for follower account ",
							Delegate373.smethod_0(CS$<>8__locals7.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.slaveAccount_0, Delegate373.AqggkfHrBe),
							" from tab \"",
							this.UniqueID,
							"\""
						}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
						CS$<>8__locals7.eventHandler_0 = null;
						CS$<>8__locals7.eventHandler_0 = new EventHandler<OrderEventArgs>(CS$<>8__locals7.method_0);
						Delegate340.smethod_0(Delegate230.smethod_0(CS$<>8__locals7.<>c__DisplayClass182_3_0.<>c__DisplayClass182_0_0.slaveAccount_0, Delegate230.delegate230_0), CS$<>8__locals7.eventHandler_0, Delegate340.delegate340_0);
						Delegate314.smethod_0(Delegate25.smethod_0(ReplikantoTabPage.int_2, Delegate25.delegate25_0), new Action<Task>(CS$<>8__locals7.method_1), Delegate314.delegate314_0);
					}
				}
			}
		}

		private void method_74(ReplikantoOrder replikantoOrder_0, SlaveAccount slaveAccount_0)
		{
			ReplikantoTabPage.<>c__DisplayClass183_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass183_0();
			if (slaveAccount_0.Status != FollowerAccountStatus.Checked && slaveAccount_0.Status != FollowerAccountStatus.OutOfSync && !slaveAccount_0.MarketOnly)
			{
				return;
			}
			Instrument instrument = ((!slaveAccount_0.CrossOrder || !this.isCrossOrderChecked) ? replikantoOrder_0.Instrument : this.CrossOrderInstrument);
			if (instrument != null)
			{
				if (Delegate102.smethod_0(replikantoOrder_0.Name, ReplikantoTabPage.string_3, Delegate102.delegate102_0))
				{
					try
					{
						this.Flatten(Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0), instrument);
						this.method_99(slaveAccount_0);
						return;
					}
					catch (Exception ex)
					{
						Delegate34.smethod_0(Delegate50.smethod_0("Replikanto: Error when trying to flatten the follower {0} account for the instrument {1}. {2}", Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe), Delegate327.smethod_0(instrument, Delegate327.delegate327_0), ex, Delegate50.delegate50_0), 3, Delegate34.delegate34_0);
					}
				}
				OrderAction orderAction;
				OrderType orderType;
				double num2;
				double num3;
				int num = this.method_47(replikantoOrder_0, slaveAccount_0, out orderAction, out orderType, out num2, out num3, out CS$<>8__locals1.double_0, 0);
				if (num < 0)
				{
					return;
				}
				string text = this.method_59(replikantoOrder_0);
				if (replikantoOrder_0.IsFromExecution)
				{
					ReplikantoTabPage.<>c__DisplayClass183_1 CS$<>8__locals2 = new ReplikantoTabPage.<>c__DisplayClass183_1();
					Account account = Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0);
					Tuple<long?, EnumMethod, bool> tuple = Tuple.Create<long?, EnumMethod, bool>((account != null) ? new long?(Delegate231.smethod_0(account, Delegate231.delegate231_0)) : null, this.Method, replikantoOrder_0.IsEntry);
					CS$<>8__locals2.double_0 = CS$<>8__locals1.double_0;
					try
					{
						CS$<>8__locals2.double_0 = this.concurrentDictionary_6.AddOrUpdate(tuple, CS$<>8__locals1.double_0, new Func<Tuple<long?, EnumMethod, bool>, double, double>(CS$<>8__locals1.method_0));
					}
					catch (Exception)
					{
					}
					double num4 = Delegate468.smethod_0(CS$<>8__locals2.double_0, 5, Delegate468.delegate468_0);
					if (num4 >= 1.0)
					{
						try
						{
							int num5 = Delegate377.smethod_0(Delegate376.smethod_0(num4, Delegate376.delegate376_0), Delegate377.delegate377_0);
							num += num5;
							CS$<>8__locals2.double_0 -= (double)num5;
							this.concurrentDictionary_6.AddOrUpdate(tuple, CS$<>8__locals2.double_0, new Func<Tuple<long?, EnumMethod, bool>, double, double>(CS$<>8__locals2.method_0));
						}
						catch (Exception)
						{
						}
					}
					if (replikantoOrder_0.IsLastExit)
					{
						this.method_99(slaveAccount_0);
					}
				}
				if (num <= 0)
				{
					return;
				}
				Account account2 = Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0);
				Order order = ((account2 != null) ? Delegate455.smethod_0(account2, instrument, orderAction, 1, this.ReplikantoProperties.StealthMode ? 1 : replikantoOrder_0.OrderEntry, 0, num, 0.0, 0.0, string.Empty, text, replikantoOrder_0.Gtd, null, Delegate455.delegate455_0) : null);
				if (order != null)
				{
					if (replikantoOrder_0.BlockCopy && !ReplikantoTabPage.list_5.Contains(Delegate114.smethod_0(order, Delegate114.delegate114_0)))
					{
						ReplikantoTabPage.list_5.Add(Delegate114.smethod_0(order, Delegate114.delegate114_0));
					}
					if (Delegate123.smethod_0(order, Delegate123.delegate123_0) != num)
					{
						Delegate456.smethod_0(order, num, Delegate456.delegate456_0);
						Delegate34.smethod_0(Delegate82.smethod_0("Replikanto: Info [1008] for Market Order {0} from tab \"{1}\"", order, this.UniqueID, Delegate82.delegate82_0), 1, Delegate34.delegate34_0);
					}
					this.method_67(replikantoOrder_0, slaveAccount_0, order);
					Delegate462.smethod_0(Delegate230.smethod_0(slaveAccount_0, Delegate230.delegate230_0), new Order[] { order }, Delegate462.delegate462_0);
					Delegate34.smethod_0(Delegate50.smethod_0("Replikanto: Submitted Market Order {0} copied from leader order id {1} from tab \"{2}\"", order, replikantoOrder_0.OrderId, this.UniqueID, Delegate50.delegate50_0), 1, Delegate34.delegate34_0);
				}
				return;
			}
			Delegate34.smethod_0(Delegate32.smethod_0("Replikanto: Instrument for {0} is null", slaveAccount_0, Delegate32.delegate32_0), 2, Delegate34.delegate34_0);
		}

		private Order method_75(ReplikantoOrder replikantoOrder_0, SlaveAccount slaveAccount_0, Order order_0, bool bool_5 = true)
		{
			OrderAction orderAction;
			OrderType orderType;
			double num2;
			double num3;
			double num4;
			int num = this.method_47(replikantoOrder_0, slaveAccount_0, out orderAction, out orderType, out num2, out num3, out num4, 0);
			if (num == 0)
			{
				num = 1;
				Delegate34.smethod_0(Delegate288.smethod_0(new string[]
				{
					"Replikanto: Change Order ",
					Delegate138.smethod_0(order_0, Delegate138.mDysTjiIyF),
					" for follower account ",
					Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
					" from tab \"",
					this.UniqueID,
					"\" will use quantity = 1 instead of zero"
				}, Delegate288.delegate288_0), 2, Delegate34.delegate34_0);
			}
			bool flag = false;
			if (Delegate123.smethod_0(order_0, Delegate123.delegate123_0) != num)
			{
				if (bool_5)
				{
					Delegate423.smethod_0(order_0, num, Delegate423.delegate423_0);
					flag = true;
				}
				else
				{
					Delegate423.smethod_0(order_0, Delegate123.smethod_0(order_0, Delegate123.delegate123_0), Delegate423.delegate423_0);
				}
			}
			else
			{
				Delegate423.smethod_0(order_0, Delegate123.smethod_0(order_0, Delegate123.delegate123_0), Delegate423.delegate423_0);
			}
			if (Delegate467.smethod_0(order_0, Delegate467.delegate467_0) != num3)
			{
				Delegate422.smethod_0(order_0, num3, Delegate422.delegate422_0);
				flag = true;
			}
			else
			{
				Delegate422.smethod_0(order_0, Delegate147.smethod_0(order_0, Delegate147.kBvszTivj9), Delegate422.delegate422_0);
			}
			if (Delegate464.smethod_0(order_0, Delegate464.delegate464_0) != num2)
			{
				Delegate421.smethod_0(order_0, num2, Delegate421.delegate421_0);
				flag = true;
			}
			else
			{
				Delegate421.smethod_0(order_0, Delegate144.smethod_0(order_0, Delegate144.delegate144_0), Delegate421.delegate421_0);
			}
			if (flag)
			{
				return order_0;
			}
			Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Change Submit Action for {0} for follower account {1} from tab \"{2}\" has no changes in quantity, stop price or limit price. Parameters are changeQuantity: {3}, replikantoOrder: {4}, order: {5}", new object[]
			{
				Delegate138.smethod_0(order_0, Delegate138.mDysTjiIyF),
				Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
				this.UniqueID,
				bool_5,
				replikantoOrder_0,
				order_0
			}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
			return null;
		}

		private Task jwjmaRbyCw(ReplikantoOrder replikantoOrder_0)
		{
			ReplikantoTabPage.<SendToInternetNodesByHTTP>d__185 <SendToInternetNodesByHTTP>d__;
			<SendToInternetNodesByHTTP>d__.<>t__builder = Delegate425.smethod_0(Delegate425.delegate425_0);
			<SendToInternetNodesByHTTP>d__.<>4__this = this;
			<SendToInternetNodesByHTTP>d__.replikantoOrder = replikantoOrder_0;
			<SendToInternetNodesByHTTP>d__.<>1__state = -1;
			<SendToInternetNodesByHTTP>d__.<>t__builder.Start<ReplikantoTabPage.<SendToInternetNodesByHTTP>d__185>(ref <SendToInternetNodesByHTTP>d__);
			return Delegate426.smethod_0(ref <SendToInternetNodesByHTTP>d__.<>t__builder, Delegate426.delegate426_0);
		}

		private Task method_76(ReplikantoOrder replikantoOrder_0)
		{
			ReplikantoTabPage.<SendToInternetNodesByWS>d__186 <SendToInternetNodesByWS>d__;
			<SendToInternetNodesByWS>d__.<>t__builder = Delegate425.smethod_0(Delegate425.delegate425_0);
			<SendToInternetNodesByWS>d__.<>4__this = this;
			<SendToInternetNodesByWS>d__.replikantoOrder = replikantoOrder_0;
			<SendToInternetNodesByWS>d__.<>1__state = -1;
			<SendToInternetNodesByWS>d__.<>t__builder.Start<ReplikantoTabPage.<SendToInternetNodesByWS>d__186>(ref <SendToInternetNodesByWS>d__);
			return Delegate426.smethod_0(ref <SendToInternetNodesByWS>d__.<>t__builder, Delegate426.delegate426_0);
		}

		private bool method_77(ReplikantoOrder replikantoOrder_0)
		{
			ReplikantoTabPage.<>c__DisplayClass187_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass187_0();
			CS$<>8__locals1.replikantoOrder_0 = replikantoOrder_0;
			CS$<>8__locals1.replikantoTabPage_0 = this;
			if (this.ReplikantoProperties.Credits <= 0U)
			{
				if (this.observableCollection_1.Count > 0)
				{
					ReplikantoTabPage.<>c__DisplayClass187_1 CS$<>8__locals2 = new ReplikantoTabPage.<>c__DisplayClass187_1();
					CS$<>8__locals2.<>c__DisplayClass187_0_0 = CS$<>8__locals1;
					CS$<>8__locals2.string_0 = Delegate32.smethod_0(Resources.NoCreditMessage, string.Join<bool>(", ", this.observableCollection_1.Select(new Func<InternetNode, bool>(ReplikantoTabPage.<>c.<>c_0.method_38))), Delegate32.delegate32_0);
					Delegate34.smethod_0(Delegate33.smethod_0("Replikanto: ", CS$<>8__locals2.string_0, Delegate33.delegate33_0), 2, Delegate34.delegate34_0);
					OrderState[] array = new OrderState[3];
					Delegate239.smethod_0(array, fieldof(<PrivateImplementationDetails>.struct9_0).FieldHandle, Delegate239.delegate239_0);
					if (array.Any(new Func<OrderState, bool>(CS$<>8__locals2.<>c__DisplayClass187_0_0.method_0)))
					{
						Delegate37.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(CS$<>8__locals2.method_0), Delegate37.delegate37_0);
					}
				}
				return false;
			}
			return true;
		}

		private async Task<bool> method_78(string string_4, Node node_0)
		{
			bool flag;
			try
			{
				HttpClient httpClient = new HttpClient();
				Delegate232.smethod_0(httpClient, new Uri(Delegate82.smethod_0("http://{0}:{1}/", node_0.Ip, node_0.Port, Delegate82.delegate82_0)), Delegate232.delegate232_0);
				Delegate234.smethod_0(httpClient, Delegate436.smethod_0((double)this.ReplikantoProperties.LocalNetworkTimeout, Delegate436.delegate436_0), Delegate234.delegate234_0);
				TaskAwaiter<HttpResponseMessage> taskAwaiter = Delegate235.smethod_0(httpClient, "replikanto_node", new StringContent(string_4), Delegate235.delegate235_0).GetAwaiter();
				if (!taskAwaiter.IsCompleted)
				{
					await taskAwaiter;
					TaskAwaiter<HttpResponseMessage> taskAwaiter2;
					taskAwaiter = taskAwaiter2;
					taskAwaiter2 = default(TaskAwaiter<HttpResponseMessage>);
				}
				HttpResponseMessage result = taskAwaiter.GetResult();
				if (Delegate667.smethod_0(result, Delegate667.delegate667_0) != HttpStatusCode.OK)
				{
					flag = false;
				}
				else
				{
					TaskAwaiter<string> taskAwaiter3 = Delegate669.smethod_0(Delegate668.smethod_0(result, Delegate668.delegate668_0), Delegate669.delegate669_0).GetAwaiter();
					if (!taskAwaiter3.IsCompleted)
					{
						await taskAwaiter3;
						TaskAwaiter<string> taskAwaiter4;
						taskAwaiter3 = taskAwaiter4;
						taskAwaiter4 = default(TaskAwaiter<string>);
					}
					JObject jobject = JObject.Parse(taskAwaiter3.GetResult());
					if (!jobject.SelectToken("status").Value<bool>())
					{
						Delegate34.smethod_0(Delegate82.smethod_0("Replikanto: Node {0}. Status Failed. {1}", node_0, jobject.SelectToken("msg").Value<string>(), Delegate82.delegate82_0), 3, Delegate34.delegate34_0);
						flag = false;
					}
					else
					{
						flag = true;
					}
				}
			}
			catch (TaskCanceledException)
			{
				Delegate34.smethod_0(Delegate32.smethod_0("Replikanto: Node {0}. Communication error. Unable to send trades to the remote node. Check the follower's IP, port or Windows firewall.", node_0, Delegate32.delegate32_0), 3, Delegate34.delegate34_0);
				flag = false;
			}
			catch (Exception ex)
			{
				Delegate34.smethod_0(Delegate82.smethod_0("Replikanto: Node {0}. Error {1}", node_0, Delegate31.smethod_0(ex, Delegate31.delegate31_0), Delegate82.delegate82_0), 3, Delegate34.delegate34_0);
				flag = false;
			}
			return flag;
		}

		private Task method_79(Instrument instrument_2, Instrument instrument_3)
		{
			ReplikantoTabPage.<SendToNodes>d__189 <SendToNodes>d__;
			<SendToNodes>d__.<>t__builder = Delegate425.smethod_0(Delegate425.delegate425_0);
			<SendToNodes>d__.<>4__this = this;
			<SendToNodes>d__.oldInstrument = instrument_2;
			<SendToNodes>d__.newInstrument = instrument_3;
			<SendToNodes>d__.<>1__state = -1;
			<SendToNodes>d__.<>t__builder.Start<ReplikantoTabPage.<SendToNodes>d__189>(ref <SendToNodes>d__);
			return Delegate426.smethod_0(ref <SendToNodes>d__.<>t__builder, Delegate426.delegate426_0);
		}

		private Task method_80(ReplikantoOrder replikantoOrder_0)
		{
			ReplikantoTabPage.<SendToNodes>d__190 <SendToNodes>d__;
			<SendToNodes>d__.<>t__builder = Delegate425.smethod_0(Delegate425.delegate425_0);
			<SendToNodes>d__.<>4__this = this;
			<SendToNodes>d__.replikantoOrder = replikantoOrder_0;
			<SendToNodes>d__.<>1__state = -1;
			<SendToNodes>d__.<>t__builder.Start<ReplikantoTabPage.<SendToNodes>d__190>(ref <SendToNodes>d__);
			return Delegate426.smethod_0(ref <SendToNodes>d__.<>t__builder, Delegate426.delegate426_0);
		}

		private void method_81(Node node_0, Brush brush_1)
		{
		}

		private void method_82(string string_4, Brush brush_1)
		{
		}

		private JObject method_83(ReplikantoOrder replikantoOrder_0, bool bool_5 = false)
		{
			ReplikantoTabPage.<>c__DisplayClass193_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass193_0();
			CS$<>8__locals1.replikantoOrder_0 = replikantoOrder_0;
			JObject jobject;
			try
			{
				ReplikantoTabPage.<>c__DisplayClass193_1 CS$<>8__locals2 = new ReplikantoTabPage.<>c__DisplayClass193_1();
				CS$<>8__locals2.<>c__DisplayClass193_0_0 = CS$<>8__locals1;
				object obj = new JObject();
				string oco = CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.Oco;
				string text = oco;
				if (oco.Contains('|'))
				{
					text = Delegate191.smethod_0(oco, new char[] { '|' }, Delegate191.delegate191_0)[0];
				}
				if (ReplikantoTabPage.<>o__193.callSite_0 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_0 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "id", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_0.Target(ReplikantoTabPage.<>o__193.callSite_0, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.Id);
				if (ReplikantoTabPage.<>o__193.callSite_1 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_1 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "orderId", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_1.Target(ReplikantoTabPage.<>o__193.callSite_1, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.OrderId);
				try
				{
					if (Delegate102.smethod_0(CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.Name, Delegate103.smethod_0(Delegate103.delegate103_0), Delegate102.delegate102_0) && Delegate104.smethod_0(CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.Name, "Close", Delegate104.delegate104_0))
					{
						if (ReplikantoTabPage.<>o__193.ueKbgocFmM == null)
						{
							ReplikantoTabPage.<>o__193.ueKbgocFmM = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "name", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
							{
								Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
								Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.Constant, null, Delegate297.delegate297_0)
							}, Delegate469.delegate469_0));
						}
						ReplikantoTabPage.<>o__193.ueKbgocFmM.Target(ReplikantoTabPage.<>o__193.ueKbgocFmM, obj, "Close");
					}
					else
					{
						if (ReplikantoTabPage.<>o__193.callSite_2 == null)
						{
							ReplikantoTabPage.<>o__193.callSite_2 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "name", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
							{
								Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
								Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
							}, Delegate469.delegate469_0));
						}
						ReplikantoTabPage.<>o__193.callSite_2.Target(ReplikantoTabPage.<>o__193.callSite_2, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.Name);
					}
				}
				catch
				{
					if (ReplikantoTabPage.<>o__193.callSite_3 == null)
					{
						ReplikantoTabPage.<>o__193.callSite_3 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "name", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
						{
							Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
							Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
						}, Delegate469.delegate469_0));
					}
					ReplikantoTabPage.<>o__193.callSite_3.Target(ReplikantoTabPage.<>o__193.callSite_3, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.Name);
				}
				if (ReplikantoTabPage.<>o__193.callSite_4 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_4 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "oco", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_4.Target(ReplikantoTabPage.<>o__193.callSite_4, obj, text);
				if (ReplikantoTabPage.<>o__193.callSite_5 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_5 = CallSite<Func<CallSite, object, OrderEntry, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "orderEntry", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_5.Target(ReplikantoTabPage.<>o__193.callSite_5, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.OrderEntry);
				if (ReplikantoTabPage.<>o__193.callSite_6 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_6 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "tif", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_6.Target(ReplikantoTabPage.<>o__193.callSite_6, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.TifName);
				if (ReplikantoTabPage.<>o__193.callSite_7 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_7 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "gtd", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				Func<CallSite, object, string, object> target = ReplikantoTabPage.<>o__193.callSite_7.Target;
				CallSite callSite_ = ReplikantoTabPage.<>o__193.callSite_7;
				object obj2 = obj;
				DateTime dateTime = CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.Gtd;
				target(callSite_, obj2, Delegate470.smethod_0(ref dateTime, "yyyy-MM-dd", Delegate470.delegate470_0));
				if (ReplikantoTabPage.<>o__193.callSite_8 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_8 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "orderState", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_8.Target(ReplikantoTabPage.<>o__193.callSite_8, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.OrderStateName);
				if (ReplikantoTabPage.<>o__193.callSite_9 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_9 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "instrument", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_9.Target(ReplikantoTabPage.<>o__193.callSite_9, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.InstrumentFullName);
				if (ReplikantoTabPage.<>o__193.callSite_10 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_10 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "orderAction", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_10.Target(ReplikantoTabPage.<>o__193.callSite_10, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.OrderActionName);
				if (ReplikantoTabPage.<>o__193.callSite_11 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_11 = CallSite<Func<CallSite, object, double, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "limitPrice", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_11.Target(ReplikantoTabPage.<>o__193.callSite_11, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.LimitPrice);
				if (ReplikantoTabPage.<>o__193.callSite_12 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_12 = CallSite<Func<CallSite, object, double, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "stopPrice", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_12.Target(ReplikantoTabPage.<>o__193.callSite_12, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.StopPrice);
				if (ReplikantoTabPage.<>o__193.callSite_13 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_13 = CallSite<Func<CallSite, object, int, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "quantity", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_13.Target(ReplikantoTabPage.<>o__193.callSite_13, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.Quantity);
				if (ReplikantoTabPage.<>o__193.callSite_14 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_14 = CallSite<Func<CallSite, object, int, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "filled", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_14.Target(ReplikantoTabPage.<>o__193.callSite_14, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.Filled);
				if (ReplikantoTabPage.<>o__193.callSite_15 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_15 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "time", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				Func<CallSite, object, string, object> target2 = ReplikantoTabPage.<>o__193.callSite_15.Target;
				CallSite callSite_2 = ReplikantoTabPage.<>o__193.callSite_15;
				object obj3 = obj;
				dateTime = CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.Time;
				target2(callSite_2, obj3, Delegate470.smethod_0(ref dateTime, "o", Delegate470.delegate470_0));
				if (ReplikantoTabPage.<>o__193.callSite_16 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_16 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "timeUTC", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				Func<CallSite, object, string, object> target3 = ReplikantoTabPage.<>o__193.callSite_16.Target;
				CallSite callSite_3 = ReplikantoTabPage.<>o__193.callSite_16;
				object obj4 = obj;
				dateTime = CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.Time;
				dateTime = Delegate471.smethod_0(ref dateTime, Delegate471.delegate471_0);
				target3(callSite_3, obj4, Delegate470.smethod_0(ref dateTime, "o", Delegate470.delegate470_0));
				if (ReplikantoTabPage.<>o__193.callSite_17 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_17 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "statementDate", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				Func<CallSite, object, string, object> target4 = ReplikantoTabPage.<>o__193.callSite_17.Target;
				CallSite callSite_4 = ReplikantoTabPage.<>o__193.callSite_17;
				object obj5 = obj;
				dateTime = CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.StatementDate;
				target4(callSite_4, obj5, Delegate470.smethod_0(ref dateTime, "yyyy-MM-dd", Delegate470.delegate470_0));
				if (ReplikantoTabPage.<>o__193.callSite_18 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_18 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "strategyName", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_18.Target(ReplikantoTabPage.<>o__193.callSite_18, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.StrategyName);
				if (ReplikantoTabPage.<>o__193.callSite_19 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_19 = CallSite<Func<CallSite, object, long, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "strategyId", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_19.Target(ReplikantoTabPage.<>o__193.callSite_19, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.StrategyId);
				if (ReplikantoTabPage.<>o__193.callSite_20 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_20 = CallSite<Func<CallSite, object, int, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "strategyOrderIndex", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_20.Target(ReplikantoTabPage.<>o__193.callSite_20, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.StrategyOrderIndex);
				if (ReplikantoTabPage.<>o__193.callSite_21 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_21 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "strategyOrders", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_21.Target(ReplikantoTabPage.<>o__193.callSite_21, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.StrategyOrders);
				if (ReplikantoTabPage.<>o__193.callSite_22 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_22 = CallSite<Func<CallSite, object, long, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "initialEntryOrder", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_22.Target(ReplikantoTabPage.<>o__193.callSite_22, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.InitialEntryOrder);
				if (ReplikantoTabPage.<>o__193.callSite_23 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_23 = CallSite<Func<CallSite, object, long, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "webStrategyId", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_23.Target(ReplikantoTabPage.<>o__193.callSite_23, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.WebStrategyId);
				if (ReplikantoTabPage.<>o__193.callSite_24 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_24 = CallSite<Func<CallSite, object, int, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "webStrategyOrderIndex", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_24.Target(ReplikantoTabPage.<>o__193.callSite_24, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.WebStrategyOrderIndex);
				if (ReplikantoTabPage.<>o__193.callSite_25 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_25 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "orderType", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_25.Target(ReplikantoTabPage.<>o__193.callSite_25, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.OrderTypeName);
				if (ReplikantoTabPage.<>o__193.callSite_26 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_26 = CallSite<Func<CallSite, object, bool, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "opositeFilled", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_26.Target(ReplikantoTabPage.<>o__193.callSite_26, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.HasOpositeFilled);
				if (ReplikantoTabPage.<>o__193.callSite_27 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_27 = CallSite<Func<CallSite, object, bool, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "suppressCancel", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_27.Target(ReplikantoTabPage.<>o__193.callSite_27, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.SuppressCancel);
				if (ReplikantoTabPage.<>o__193.callSite_28 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_28 = CallSite<Func<CallSite, object, bool, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "suppressChange", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_28.Target(ReplikantoTabPage.<>o__193.callSite_28, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.SuppressChange);
				if (ReplikantoTabPage.<>o__193.callSite_29 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_29 = CallSite<Func<CallSite, object, ScalperTicketOrderType, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "scalperTicketOrderType", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_29.Target(ReplikantoTabPage.<>o__193.callSite_29, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.ScalperTicketOrderType);
				if (ReplikantoTabPage.<>o__193.callSite_30 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_30 = CallSite<Func<CallSite, object, bool, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "isEntry", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_30.Target(ReplikantoTabPage.<>o__193.callSite_30, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.IsEntry);
				if (ReplikantoTabPage.<>o__193.callSite_31 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_31 = CallSite<Func<CallSite, object, bool, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "isFromExecution", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_31.Target(ReplikantoTabPage.<>o__193.callSite_31, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.IsFromExecution);
				if (ReplikantoTabPage.<>o__193.callSite_32 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_32 = CallSite<Func<CallSite, object, bool, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "isLastExit", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_32.Target(ReplikantoTabPage.<>o__193.callSite_32, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.IsLastExit);
				if (ReplikantoTabPage.<>o__193.uCtkbmNluh == null)
				{
					ReplikantoTabPage.<>o__193.uCtkbmNluh = CallSite<Func<CallSite, object, int, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "executionQuantity", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.uCtkbmNluh.Target(ReplikantoTabPage.<>o__193.uCtkbmNluh, obj, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.ExecutionQuantity);
				object obj6 = new JObject();
				if (CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.LeaderPosition != null)
				{
					try
					{
						if (ReplikantoTabPage.<>o__193.callSite_33 == null)
						{
							ReplikantoTabPage.<>o__193.callSite_33 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "marketPosition", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
							{
								Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
								Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
							}, Delegate469.delegate469_0));
						}
						ReplikantoTabPage.<>o__193.callSite_33.Target(ReplikantoTabPage.<>o__193.callSite_33, obj6, Delegate472.smethod_0(Delegate45.smethod_0(typeof(MarketPosition).TypeHandle, Delegate45.delegate45_0), CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.LeaderPosition.MarketPosition, Delegate472.delegate472_0));
						if (ReplikantoTabPage.<>o__193.callSite_34 == null)
						{
							ReplikantoTabPage.<>o__193.callSite_34 = CallSite<Func<CallSite, object, int, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "quantity", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
							{
								Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
								Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
							}, Delegate469.delegate469_0));
						}
						ReplikantoTabPage.<>o__193.callSite_34.Target(ReplikantoTabPage.<>o__193.callSite_34, obj6, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.LeaderPosition.Quantity);
						if (ReplikantoTabPage.<>o__193.AwYkjsRnMs == null)
						{
							ReplikantoTabPage.<>o__193.AwYkjsRnMs = CallSite<Func<CallSite, object, double, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "averagePrice", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
							{
								Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
								Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
							}, Delegate469.delegate469_0));
						}
						ReplikantoTabPage.<>o__193.AwYkjsRnMs.Target(ReplikantoTabPage.<>o__193.AwYkjsRnMs, obj6, CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.LeaderPosition.AveragePrice);
						if (ReplikantoTabPage.<>o__193.callSite_35 == null)
						{
							ReplikantoTabPage.<>o__193.callSite_35 = CallSite<Func<CallSite, object, object, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "leaderPosition", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
							{
								Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
								Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0)
							}, Delegate469.delegate469_0));
						}
						ReplikantoTabPage.<>o__193.callSite_35.Target(ReplikantoTabPage.<>o__193.callSite_35, obj, obj6);
					}
					catch (Exception)
					{
					}
				}
				List<ReplikantoOrderEventArgs> orderUpdates = CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.OrderUpdates;
				IEnumerable<ReplikantoOrderEventArgs> enumerable;
				if (orderUpdates != null)
				{
					enumerable = orderUpdates.ToList<ReplikantoOrderEventArgs>().Where(new Func<ReplikantoOrderEventArgs, bool>(ReplikantoTabPage.<>c.<>c_0.method_41));
				}
				else
				{
					enumerable = null;
				}
				IEnumerable<ReplikantoOrderEventArgs> enumerable2 = enumerable;
				if (bool_5 && enumerable2.Count<ReplikantoOrderEventArgs>() > ReplikantoTabPage.int_4)
				{
					enumerable2 = this.method_84(enumerable2.ToList<ReplikantoOrderEventArgs>());
					bool isFromExecution = CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.IsFromExecution;
				}
				if (enumerable2 != null && enumerable2.Count<ReplikantoOrderEventArgs>() > 0)
				{
					if (ReplikantoTabPage.<>o__193.zkckaZlFbg == null)
					{
						ReplikantoTabPage.<>o__193.zkckaZlFbg = CallSite<Func<CallSite, object, JArray, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "orderUpdates", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
						{
							Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
							Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
						}, Delegate469.delegate469_0));
					}
					ReplikantoTabPage.<>o__193.zkckaZlFbg.Target(ReplikantoTabPage.<>o__193.zkckaZlFbg, obj, new JArray());
					for (int i = 0; i < enumerable2.Count<ReplikantoOrderEventArgs>(); i++)
					{
						ReplikantoOrderEventArgs replikantoOrderEventArgs = enumerable2.ElementAt(i);
						object obj7 = new JObject();
						if (ReplikantoTabPage.<>o__193.callSite_36 == null)
						{
							ReplikantoTabPage.<>o__193.callSite_36 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "orderState", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
							{
								Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
								Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
							}, Delegate469.delegate469_0));
						}
						ReplikantoTabPage.<>o__193.callSite_36.Target(ReplikantoTabPage.<>o__193.callSite_36, obj7, replikantoOrderEventArgs.OrderState.ToString());
						if (ReplikantoTabPage.<>o__193.callSite_37 == null)
						{
							ReplikantoTabPage.<>o__193.callSite_37 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "time", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
							{
								Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
								Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
							}, Delegate469.delegate469_0));
						}
						Func<CallSite, object, string, object> target5 = ReplikantoTabPage.<>o__193.callSite_37.Target;
						CallSite callSite_5 = ReplikantoTabPage.<>o__193.callSite_37;
						object obj8 = obj7;
						dateTime = replikantoOrderEventArgs.Time;
						target5(callSite_5, obj8, Delegate470.smethod_0(ref dateTime, "o", Delegate470.delegate470_0));
						if (ReplikantoTabPage.<>o__193.callSite_38 == null)
						{
							ReplikantoTabPage.<>o__193.callSite_38 = CallSite<Func<CallSite, object, int, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "quantity", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
							{
								Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
								Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
							}, Delegate469.delegate469_0));
						}
						ReplikantoTabPage.<>o__193.callSite_38.Target(ReplikantoTabPage.<>o__193.callSite_38, obj7, replikantoOrderEventArgs.Quantity);
						if (ReplikantoTabPage.<>o__193.callSite_40 == null)
						{
							ReplikantoTabPage.<>o__193.callSite_40 = CallSite<Action<CallSite, object, object>>.Create(Delegate298.smethod_0(CSharpBinderFlags.ResultDiscarded, "Add", null, Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
							{
								Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
								Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0)
							}, Delegate298.delegate298_0));
						}
						Action<CallSite, object, object> target6 = ReplikantoTabPage.<>o__193.callSite_40.Target;
						CallSite callSite_6 = ReplikantoTabPage.<>o__193.callSite_40;
						if (ReplikantoTabPage.<>o__193.callSite_39 == null)
						{
							ReplikantoTabPage.<>o__193.callSite_39 = CallSite<Func<CallSite, object, object>>.Create(Delegate473.smethod_0(CSharpBinderFlags.None, "orderUpdates", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[] { Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0) }, Delegate473.delegate473_0));
						}
						target6(callSite_6, ReplikantoTabPage.<>o__193.callSite_39.Target(ReplikantoTabPage.<>o__193.callSite_39, obj), obj7);
					}
				}
				CS$<>8__locals2.int_0 = ReplikantoTabPage.int_2;
				if (ReplikantoTabPage.<>o__193.callSite_41 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_41 = CallSite<Func<CallSite, object, int, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "previouslyOrdersSentTimeSpan", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_41.Target(ReplikantoTabPage.<>o__193.callSite_41, obj, CS$<>8__locals2.int_0);
				IEnumerable<ReplikantoOrder> enumerable3;
				if (CS$<>8__locals2.<>c__DisplayClass193_0_0.replikantoOrder_0.IsFromExecution)
				{
					enumerable3 = this.list_1.Where(new Func<ReplikantoOrder, bool>(CS$<>8__locals2.method_0)).Reverse<ReplikantoOrder>().Take(20);
				}
				else
				{
					enumerable3 = this.list_1.Where(new Func<ReplikantoOrder, bool>(CS$<>8__locals2.method_1)).Reverse<ReplikantoOrder>().Take(5);
				}
				if (ReplikantoTabPage.<>o__193.callSite_42 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_42 = CallSite<Func<CallSite, object, object, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "ordersPreviouslySent", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
					{
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
						Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0)
					}, Delegate469.delegate469_0));
				}
				ReplikantoTabPage.<>o__193.callSite_42.Target(ReplikantoTabPage.<>o__193.callSite_42, obj, new JArray());
				if (enumerable3 != null)
				{
					IEnumerator<ReplikantoOrder> enumerator = enumerable3.GetEnumerator();
					try
					{
						while (Delegate38.smethod_0(enumerator, Delegate38.delegate38_0))
						{
							ReplikantoOrder replikantoOrder = enumerator.Current;
							object obj9 = new JObject();
							if (ReplikantoTabPage.<>o__193.callSite_43 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_43 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "id", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_43.Target(ReplikantoTabPage.<>o__193.callSite_43, obj9, replikantoOrder.Id);
							if (ReplikantoTabPage.<>o__193.callSite_44 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_44 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "orderId", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_44.Target(ReplikantoTabPage.<>o__193.callSite_44, obj9, replikantoOrder.OrderId);
							try
							{
								if (Delegate102.smethod_0(replikantoOrder.Name, Delegate103.smethod_0(Delegate103.delegate103_0), Delegate102.delegate102_0) && Delegate104.smethod_0(replikantoOrder.Name, "Close", Delegate104.delegate104_0))
								{
									if (ReplikantoTabPage.<>o__193.callSite_45 == null)
									{
										ReplikantoTabPage.<>o__193.callSite_45 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "name", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
										{
											Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
											Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.Constant, null, Delegate297.delegate297_0)
										}, Delegate469.delegate469_0));
									}
									ReplikantoTabPage.<>o__193.callSite_45.Target(ReplikantoTabPage.<>o__193.callSite_45, obj9, "Close");
								}
								else
								{
									if (ReplikantoTabPage.<>o__193.callSite_46 == null)
									{
										ReplikantoTabPage.<>o__193.callSite_46 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "name", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
										{
											Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
											Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
										}, Delegate469.delegate469_0));
									}
									ReplikantoTabPage.<>o__193.callSite_46.Target(ReplikantoTabPage.<>o__193.callSite_46, obj9, replikantoOrder.Name);
								}
								goto IL_300F;
							}
							catch
							{
								if (ReplikantoTabPage.<>o__193.callSite_47 == null)
								{
									ReplikantoTabPage.<>o__193.callSite_47 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "name", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
									{
										Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
										Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
									}, Delegate469.delegate469_0));
								}
								ReplikantoTabPage.<>o__193.callSite_47.Target(ReplikantoTabPage.<>o__193.callSite_47, obj9, replikantoOrder.Name);
								goto IL_300F;
							}
							goto IL_1BC3;
							IL_1C11:
							ReplikantoTabPage.<>o__193.callSite_48.Target(ReplikantoTabPage.<>o__193.callSite_48, obj9, (!replikantoOrder.Oco.Contains('|')) ? replikantoOrder.Oco : Delegate191.smethod_0(replikantoOrder.Oco, new char[] { '|' }, Delegate191.delegate191_0)[0]);
							if (ReplikantoTabPage.<>o__193.callSite_49 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_49 = CallSite<Func<CallSite, object, OrderEntry, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "orderEntry", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_49.Target(ReplikantoTabPage.<>o__193.callSite_49, obj9, replikantoOrder.OrderEntry);
							if (ReplikantoTabPage.<>o__193.callSite_50 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_50 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "tif", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_50.Target(ReplikantoTabPage.<>o__193.callSite_50, obj9, replikantoOrder.TifName);
							if (ReplikantoTabPage.<>o__193.callSite_51 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_51 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "gtd", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							Func<CallSite, object, string, object> target7 = ReplikantoTabPage.<>o__193.callSite_51.Target;
							CallSite callSite_7 = ReplikantoTabPage.<>o__193.callSite_51;
							object obj10 = obj9;
							dateTime = replikantoOrder.Gtd;
							target7(callSite_7, obj10, Delegate470.smethod_0(ref dateTime, "yyyy-MM-dd", Delegate470.delegate470_0));
							if (ReplikantoTabPage.<>o__193.callSite_52 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_52 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "orderState", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_52.Target(ReplikantoTabPage.<>o__193.callSite_52, obj9, replikantoOrder.OrderState.ToString());
							if (ReplikantoTabPage.<>o__193.callSite_53 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_53 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "instrument", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_53.Target(ReplikantoTabPage.<>o__193.callSite_53, obj9, replikantoOrder.InstrumentFullName);
							if (ReplikantoTabPage.<>o__193.callSite_54 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_54 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "orderAction", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_54.Target(ReplikantoTabPage.<>o__193.callSite_54, obj9, replikantoOrder.OrderAction.ToString());
							if (ReplikantoTabPage.<>o__193.callSite_55 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_55 = CallSite<Func<CallSite, object, double, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "limitPrice", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_55.Target(ReplikantoTabPage.<>o__193.callSite_55, obj9, replikantoOrder.LimitPrice);
							if (ReplikantoTabPage.<>o__193.callSite_56 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_56 = CallSite<Func<CallSite, object, double, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "stopPrice", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_56.Target(ReplikantoTabPage.<>o__193.callSite_56, obj9, replikantoOrder.StopPrice);
							if (ReplikantoTabPage.<>o__193.callSite_57 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_57 = CallSite<Func<CallSite, object, int, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "quantity", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_57.Target(ReplikantoTabPage.<>o__193.callSite_57, obj9, replikantoOrder.Quantity);
							if (ReplikantoTabPage.<>o__193.callSite_58 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_58 = CallSite<Func<CallSite, object, int, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "filled", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_58.Target(ReplikantoTabPage.<>o__193.callSite_58, obj9, replikantoOrder.Filled);
							if (ReplikantoTabPage.<>o__193.callSite_59 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_59 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "time", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							Func<CallSite, object, string, object> target8 = ReplikantoTabPage.<>o__193.callSite_59.Target;
							CallSite callSite_8 = ReplikantoTabPage.<>o__193.callSite_59;
							object obj11 = obj9;
							dateTime = replikantoOrder.Time;
							target8(callSite_8, obj11, Delegate470.smethod_0(ref dateTime, "o", Delegate470.delegate470_0));
							if (ReplikantoTabPage.<>o__193.WiHkgmivrO == null)
							{
								ReplikantoTabPage.<>o__193.WiHkgmivrO = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "timeUTC", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							Func<CallSite, object, string, object> target9 = ReplikantoTabPage.<>o__193.WiHkgmivrO.Target;
							CallSite wiHkgmivrO = ReplikantoTabPage.<>o__193.WiHkgmivrO;
							object obj12 = obj9;
							dateTime = replikantoOrder.Time;
							dateTime = Delegate471.smethod_0(ref dateTime, Delegate471.delegate471_0);
							target9(wiHkgmivrO, obj12, Delegate470.smethod_0(ref dateTime, "o", Delegate470.delegate470_0));
							if (ReplikantoTabPage.<>o__193.callSite_60 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_60 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "statementDate", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							Func<CallSite, object, string, object> target10 = ReplikantoTabPage.<>o__193.callSite_60.Target;
							CallSite callSite_9 = ReplikantoTabPage.<>o__193.callSite_60;
							object obj13 = obj9;
							dateTime = replikantoOrder.StatementDate;
							target10(callSite_9, obj13, Delegate470.smethod_0(ref dateTime, "yyyy-MM-dd", Delegate470.delegate470_0));
							if (ReplikantoTabPage.<>o__193.callSite_61 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_61 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "strategyName", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_61.Target(ReplikantoTabPage.<>o__193.callSite_61, obj9, replikantoOrder.StrategyName);
							if (ReplikantoTabPage.<>o__193.callSite_62 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_62 = CallSite<Func<CallSite, object, long, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "strategyId", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_62.Target(ReplikantoTabPage.<>o__193.callSite_62, obj9, replikantoOrder.StrategyId);
							if (ReplikantoTabPage.<>o__193.callSite_63 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_63 = CallSite<Func<CallSite, object, int, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "strategyOrderIndex", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_63.Target(ReplikantoTabPage.<>o__193.callSite_63, obj9, replikantoOrder.StrategyOrderIndex);
							if (ReplikantoTabPage.<>o__193.callSite_64 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_64 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "strategyOrders", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_64.Target(ReplikantoTabPage.<>o__193.callSite_64, obj9, replikantoOrder.StrategyOrders);
							if (ReplikantoTabPage.<>o__193.callSite_65 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_65 = CallSite<Func<CallSite, object, long, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "webStrategyId", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_65.Target(ReplikantoTabPage.<>o__193.callSite_65, obj9, replikantoOrder.WebStrategyId);
							if (ReplikantoTabPage.<>o__193.callSite_66 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_66 = CallSite<Func<CallSite, object, int, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "webStrategyOrderIndex", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_66.Target(ReplikantoTabPage.<>o__193.callSite_66, obj9, replikantoOrder.WebStrategyOrderIndex);
							if (ReplikantoTabPage.<>o__193.callSite_67 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_67 = CallSite<Func<CallSite, object, long, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "initialEntryOrder", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_67.Target(ReplikantoTabPage.<>o__193.callSite_67, obj9, replikantoOrder.InitialEntryOrder);
							if (ReplikantoTabPage.<>o__193.callSite_68 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_68 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "orderType", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_68.Target(ReplikantoTabPage.<>o__193.callSite_68, obj9, replikantoOrder.OrderType.ToString());
							if (ReplikantoTabPage.<>o__193.callSite_69 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_69 = CallSite<Func<CallSite, object, bool, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "opositeFilled", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_69.Target(ReplikantoTabPage.<>o__193.callSite_69, obj9, replikantoOrder.HasOpositeFilled);
							if (ReplikantoTabPage.<>o__193.callSite_70 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_70 = CallSite<Func<CallSite, object, bool, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "suppressCancel", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_70.Target(ReplikantoTabPage.<>o__193.callSite_70, obj9, replikantoOrder.SuppressCancel);
							if (ReplikantoTabPage.<>o__193.callSite_71 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_71 = CallSite<Func<CallSite, object, bool, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "suppressChange", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_71.Target(ReplikantoTabPage.<>o__193.callSite_71, obj9, replikantoOrder.SuppressChange);
							if (ReplikantoTabPage.<>o__193.callSite_72 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_72 = CallSite<Func<CallSite, object, ScalperTicketOrderType, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "scalperTicketOrderType", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_72.Target(ReplikantoTabPage.<>o__193.callSite_72, obj9, replikantoOrder.ScalperTicketOrderType);
							if (ReplikantoTabPage.<>o__193.callSite_73 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_73 = CallSite<Func<CallSite, object, bool, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "isEntry", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_73.Target(ReplikantoTabPage.<>o__193.callSite_73, obj9, replikantoOrder.IsEntry);
							if (ReplikantoTabPage.<>o__193.callSite_74 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_74 = CallSite<Func<CallSite, object, bool, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "isFromExecution", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_74.Target(ReplikantoTabPage.<>o__193.callSite_74, obj9, replikantoOrder.IsFromExecution);
							if (ReplikantoTabPage.<>o__193.callSite_75 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_75 = CallSite<Func<CallSite, object, bool, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "isLastExit", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_75.Target(ReplikantoTabPage.<>o__193.callSite_75, obj9, replikantoOrder.IsLastExit);
							if (ReplikantoTabPage.<>o__193.callSite_76 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_76 = CallSite<Func<CallSite, object, int, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "executionQuantity", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_76.Target(ReplikantoTabPage.<>o__193.callSite_76, obj9, replikantoOrder.ExecutionQuantity);
							object obj14 = new JObject();
							if (replikantoOrder.LeaderPosition != null)
							{
								try
								{
									if (ReplikantoTabPage.<>o__193.callSite_77 == null)
									{
										ReplikantoTabPage.<>o__193.callSite_77 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "marketPosition", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
										{
											Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
											Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
										}, Delegate469.delegate469_0));
									}
									ReplikantoTabPage.<>o__193.callSite_77.Target(ReplikantoTabPage.<>o__193.callSite_77, obj14, Delegate472.smethod_0(Delegate45.smethod_0(typeof(MarketPosition).TypeHandle, Delegate45.delegate45_0), replikantoOrder.LeaderPosition.MarketPosition, Delegate472.delegate472_0));
									if (ReplikantoTabPage.<>o__193.callSite_78 == null)
									{
										ReplikantoTabPage.<>o__193.callSite_78 = CallSite<Func<CallSite, object, int, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "quantity", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
										{
											Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
											Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
										}, Delegate469.delegate469_0));
									}
									ReplikantoTabPage.<>o__193.callSite_78.Target(ReplikantoTabPage.<>o__193.callSite_78, obj14, replikantoOrder.LeaderPosition.Quantity);
									if (ReplikantoTabPage.<>o__193.callSite_79 == null)
									{
										ReplikantoTabPage.<>o__193.callSite_79 = CallSite<Func<CallSite, object, double, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "averagePrice", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
										{
											Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
											Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
										}, Delegate469.delegate469_0));
									}
									ReplikantoTabPage.<>o__193.callSite_79.Target(ReplikantoTabPage.<>o__193.callSite_79, obj14, replikantoOrder.LeaderPosition.AveragePrice);
									if (ReplikantoTabPage.<>o__193.callSite_80 == null)
									{
										ReplikantoTabPage.<>o__193.callSite_80 = CallSite<Func<CallSite, object, object, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "leaderPosition", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
										{
											Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
											Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0)
										}, Delegate469.delegate469_0));
									}
									ReplikantoTabPage.<>o__193.callSite_80.Target(ReplikantoTabPage.<>o__193.callSite_80, obj9, obj14);
								}
								catch (Exception)
								{
								}
							}
							if (ReplikantoTabPage.<>o__193.callSite_81 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_81 = CallSite<Func<CallSite, object, JArray, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "orderUpdates", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
								}, Delegate469.delegate469_0));
							}
							ReplikantoTabPage.<>o__193.callSite_81.Target(ReplikantoTabPage.<>o__193.callSite_81, obj9, new JArray());
							List<ReplikantoOrderEventArgs> orderUpdates2 = replikantoOrder.OrderUpdates;
							IEnumerable<ReplikantoOrderEventArgs> enumerable4;
							if (orderUpdates2 != null)
							{
								enumerable4 = orderUpdates2.ToList<ReplikantoOrderEventArgs>().Where(new Func<ReplikantoOrderEventArgs, bool>(ReplikantoTabPage.<>c.<>c_0.method_42));
							}
							else
							{
								enumerable4 = null;
							}
							IEnumerable<ReplikantoOrderEventArgs> enumerable5 = enumerable4;
							if (bool_5 && enumerable5.Count<ReplikantoOrderEventArgs>() > ReplikantoTabPage.int_4)
							{
								enumerable5 = this.method_84(enumerable5.ToList<ReplikantoOrderEventArgs>());
							}
							for (int j = 0; j < enumerable5.Count<ReplikantoOrderEventArgs>(); j++)
							{
								ReplikantoOrderEventArgs replikantoOrderEventArgs2 = enumerable5.ElementAt(j);
								object obj15 = new JObject();
								if (ReplikantoTabPage.<>o__193.callSite_82 == null)
								{
									ReplikantoTabPage.<>o__193.callSite_82 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "orderState", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
									{
										Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
										Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
									}, Delegate469.delegate469_0));
								}
								ReplikantoTabPage.<>o__193.callSite_82.Target(ReplikantoTabPage.<>o__193.callSite_82, obj15, replikantoOrderEventArgs2.OrderState.ToString());
								if (ReplikantoTabPage.<>o__193.callSite_83 == null)
								{
									ReplikantoTabPage.<>o__193.callSite_83 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "time", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
									{
										Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
										Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
									}, Delegate469.delegate469_0));
								}
								Func<CallSite, object, string, object> target11 = ReplikantoTabPage.<>o__193.callSite_83.Target;
								CallSite callSite_10 = ReplikantoTabPage.<>o__193.callSite_83;
								object obj16 = obj15;
								dateTime = replikantoOrderEventArgs2.Time;
								target11(callSite_10, obj16, Delegate470.smethod_0(ref dateTime, "o", Delegate470.delegate470_0));
								if (ReplikantoTabPage.<>o__193.callSite_84 == null)
								{
									ReplikantoTabPage.<>o__193.callSite_84 = CallSite<Func<CallSite, object, int, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "quantity", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
									{
										Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
										Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
									}, Delegate469.delegate469_0));
								}
								ReplikantoTabPage.<>o__193.callSite_84.Target(ReplikantoTabPage.<>o__193.callSite_84, obj15, replikantoOrderEventArgs2.Quantity);
								if (ReplikantoTabPage.<>o__193.callSite_86 == null)
								{
									ReplikantoTabPage.<>o__193.callSite_86 = CallSite<Action<CallSite, object, object>>.Create(Delegate298.smethod_0(CSharpBinderFlags.ResultDiscarded, "Add", null, Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
									{
										Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
										Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0)
									}, Delegate298.delegate298_0));
								}
								Action<CallSite, object, object> target12 = ReplikantoTabPage.<>o__193.callSite_86.Target;
								CallSite callSite_11 = ReplikantoTabPage.<>o__193.callSite_86;
								if (ReplikantoTabPage.<>o__193.callSite_85 == null)
								{
									ReplikantoTabPage.<>o__193.callSite_85 = CallSite<Func<CallSite, object, object>>.Create(Delegate473.smethod_0(CSharpBinderFlags.None, "orderUpdates", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[] { Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0) }, Delegate473.delegate473_0));
								}
								target12(callSite_11, ReplikantoTabPage.<>o__193.callSite_85.Target(ReplikantoTabPage.<>o__193.callSite_85, obj9), obj15);
							}
							if (ReplikantoTabPage.<>o__193.callSite_88 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_88 = CallSite<Action<CallSite, object, object>>.Create(Delegate298.smethod_0(CSharpBinderFlags.ResultDiscarded, "Add", null, Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
								{
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
									Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0)
								}, Delegate298.delegate298_0));
							}
							Action<CallSite, object, object> target13 = ReplikantoTabPage.<>o__193.callSite_88.Target;
							CallSite callSite_12 = ReplikantoTabPage.<>o__193.callSite_88;
							if (ReplikantoTabPage.<>o__193.callSite_87 == null)
							{
								ReplikantoTabPage.<>o__193.callSite_87 = CallSite<Func<CallSite, object, object>>.Create(Delegate473.smethod_0(CSharpBinderFlags.None, "ordersPreviouslySent", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[] { Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0) }, Delegate473.delegate473_0));
							}
							target13(callSite_12, ReplikantoTabPage.<>o__193.callSite_87.Target(ReplikantoTabPage.<>o__193.callSite_87, obj), obj9);
							continue;
							IL_1BC3:
							ReplikantoTabPage.<>o__193.callSite_48 = CallSite<Func<CallSite, object, string, object>>.Create(Delegate469.smethod_0(CSharpBinderFlags.None, "oco", Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), new CSharpArgumentInfo[]
							{
								Delegate297.smethod_0(CSharpArgumentInfoFlags.None, null, Delegate297.delegate297_0),
								Delegate297.smethod_0(CSharpArgumentInfoFlags.UseCompileTimeType, null, Delegate297.delegate297_0)
							}, Delegate469.delegate469_0));
							goto IL_1C11;
							IL_300F:
							if (ReplikantoTabPage.<>o__193.callSite_48 == null)
							{
								goto IL_1BC3;
							}
							goto IL_1C11;
						}
					}
					finally
					{
						if (enumerator != null)
						{
							Delegate39.smethod_0(enumerator, Delegate39.delegate39_0);
						}
					}
				}
				this.list_1.RemoveAll(new Predicate<ReplikantoOrder>(CS$<>8__locals2.<>c__DisplayClass193_0_0.whyXpdZwr2));
				if (ReplikantoTabPage.<>o__193.callSite_89 == null)
				{
					ReplikantoTabPage.<>o__193.callSite_89 = CallSite<Func<CallSite, object, JObject>>.Create(Delegate296.smethod_0(CSharpBinderFlags.None, Delegate45.smethod_0(typeof(JObject).TypeHandle, Delegate45.delegate45_0), Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), Delegate296.delegate296_0));
				}
				jobject = ReplikantoTabPage.<>o__193.callSite_89.Target(ReplikantoTabPage.<>o__193.callSite_89, obj);
			}
			catch (Exception ex)
			{
				Delegate34.smethod_0(Delegate51.smethod_0("Replikanto: Error trying deserialize json, with error msg: \"", Delegate31.smethod_0(ex, Delegate31.delegate31_0), "\"", Delegate51.delegate51_0), 3, Delegate34.delegate34_0);
				throw ex;
			}
			return jobject;
		}

		private List<ReplikantoOrderEventArgs> method_84(List<ReplikantoOrderEventArgs> list_8)
		{
			if (list_8.Count <= ReplikantoTabPage.int_4)
			{
				return list_8;
			}
			List<ReplikantoOrderEventArgs> list2;
			try
			{
				int num = 5;
				IEnumerable<ReplikantoOrderEventArgs> enumerable = list_8.Take(5);
				IEnumerable<ReplikantoOrderEventArgs> enumerable2 = list_8.Skip(Delegate427.smethod_0(0, list_8.Count<ReplikantoOrderEventArgs>() - 5, Delegate427.delegate427_0));
				List<ReplikantoOrderEventArgs> range = list_8.GetRange(5, list_8.Count<ReplikantoOrderEventArgs>() - 10);
				for (int i = range.Count - 1; i >= 0; i--)
				{
					ReplikantoTabPage.<>c__DisplayClass194_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass194_0();
					CS$<>8__locals1.replikantoOrderEventArgs_0 = range[i];
					OrderState[] array = new OrderState[4];
					Delegate239.smethod_0(array, fieldof(<PrivateImplementationDetails>.struct10_0).FieldHandle, Delegate239.delegate239_0);
					if (array.Any(new Func<OrderState, bool>(CS$<>8__locals1.method_0)))
					{
						range.RemoveAt(i);
					}
					if (num + num + range.Count <= ReplikantoTabPage.int_4)
					{
						break;
					}
				}
				if (num + num + range.Count > ReplikantoTabPage.int_4)
				{
					for (int j = range.Count - 1; j >= 0; j--)
					{
						ReplikantoOrderEventArgs replikantoOrderEventArgs = range[j];
						range.RemoveAt(j);
						if (num + num + range.Count <= ReplikantoTabPage.int_4)
						{
							break;
						}
					}
				}
				List<ReplikantoOrderEventArgs> list = enumerable.Concat(range).Concat(enumerable2).ToList<ReplikantoOrderEventArgs>();
				list_8.ForEach(new Action<ReplikantoOrderEventArgs>(ReplikantoTabPage.<>c.<>c_0.method_43));
				list.ForEach(new Action<ReplikantoOrderEventArgs>(ReplikantoTabPage.<>c.<>c_0.LptOvgkyfq));
				list2 = list;
			}
			catch (Exception ex)
			{
				Delegate34.smethod_0(Delegate33.smethod_0("Replikanto: Info [1004]. ", Delegate31.smethod_0(ex, Delegate31.delegate31_0), Delegate33.delegate33_0), 1, Delegate34.delegate34_0);
				list2 = list_8;
			}
			return list2;
		}

		private static bool smethod_1(OrderState orderState_2)
		{
			return orderState_2 == 3 || orderState_2 == 8 || orderState_2 == 99 || orderState_2 == 13;
		}

		private static bool smethod_2(OrderState orderState_2)
		{
			return orderState_2 == 3 || orderState_2 == 99;
		}

		private void method_85(object sender, RoutedEventArgs e)
		{
			Delegate475.smethod_0(Delegate86.smethod_0(Delegate474.smethod_0((Hyperlink)sender, Delegate474.delegate474_0), Delegate86.delegate86_0), Delegate475.delegate475_0);
		}

		private void method_86(object sender, RoutedEventArgs e)
		{
			bool flag = false;
			foreach (SlaveAccount slaveAccount in this.bindingList_0.ToList<SlaveAccount>())
			{
				if (Delegate300.smethod_0(Delegate476.smethod_0(this.tbToggle, Delegate476.delegate476_0), Resources.ToggleOff, Delegate300.delegate300_0))
				{
					if (slaveAccount.Status != FollowerAccountStatus.Off)
					{
						slaveAccount.Status = FollowerAccountStatus.Off;
						Delegate34.smethod_0(Delegate50.smethod_0("Replikanto: Follower account '{0}' from tab '{1}' status = {2}", Delegate373.smethod_0(slaveAccount, Delegate373.AqggkfHrBe), this.UniqueID, slaveAccount.Status, Delegate50.delegate50_0), 1, Delegate34.delegate34_0);
						this.list_6.Add(Delegate373.smethod_0(slaveAccount, Delegate373.AqggkfHrBe));
						flag = true;
					}
				}
				else if (this.list_6.Contains(Delegate373.smethod_0(slaveAccount, Delegate373.AqggkfHrBe)) && slaveAccount.Status == FollowerAccountStatus.Off)
				{
					slaveAccount.Status = FollowerAccountStatus.Checked;
					if (this.method_103(this.Account, slaveAccount, this.Instrument, this.CrossOrderInstrument))
					{
						Delegate34.smethod_0(Delegate50.smethod_0("Replikanto: Follower account '{0}' from tab '{1}' status = {2}", Delegate373.smethod_0(slaveAccount, Delegate373.AqggkfHrBe), this.UniqueID, slaveAccount.Status, Delegate50.delegate50_0), 1, Delegate34.delegate34_0);
					}
					else
					{
						slaveAccount.Status = FollowerAccountStatus.Off;
					}
					flag = true;
				}
			}
			if (flag)
			{
				if (Delegate300.smethod_0(Delegate476.smethod_0(this.tbToggle, Delegate476.delegate476_0), Resources.ToggleOff, Delegate300.delegate300_0))
				{
					Delegate316.smethod_0(this.tbToggle, Resources.ToggleOn, Delegate316.delegate316_0);
					return;
				}
				Delegate316.smethod_0(this.tbToggle, Resources.ToggleOff, Delegate316.delegate316_0);
				this.list_6.Clear();
				this.method_53();
			}
		}

		private void method_87(object sender, RoutedEventArgs e)
		{
			bool flag = false;
			foreach (Node node in this.observableCollection_0.ToList<Node>())
			{
				if (!Delegate300.smethod_0(Delegate476.smethod_0(this.tbNodeToggle, Delegate476.delegate476_0), Resources.ToggleOff, Delegate300.delegate300_0))
				{
					if (this.list_7.Contains(Delegate86.smethod_0(node, Delegate86.delegate86_0)) && node.Status != NodeStatus.Online)
					{
						node.Status = NodeStatus.Online;
						Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Node '{0}:{1}' from tab '{2}' status = {3}", new object[] { node.Ip, node.Port, this.UniqueID, node.Status }, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
						flag = true;
					}
				}
				else if (node.Status != NodeStatus.Off)
				{
					node.Status = NodeStatus.Off;
					Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Node '{0}:{1}' from tab '{2}' status = {3}", new object[] { node.Ip, node.Port, this.UniqueID, node.Status }, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
					this.list_7.Add(Delegate86.smethod_0(node, Delegate86.delegate86_0));
					flag = true;
				}
			}
			foreach (InternetNode internetNode in this.observableCollection_1.ToList<InternetNode>())
			{
				if (!Delegate300.smethod_0(Delegate476.smethod_0(this.tbNodeToggle, Delegate476.delegate476_0), Resources.ToggleOff, Delegate300.delegate300_0))
				{
					if (this.list_7.Contains(Delegate86.smethod_0(internetNode, Delegate86.delegate86_0)) && internetNode.Status != NodeStatus.Online)
					{
						internetNode.Status = NodeStatus.Online;
						Delegate34.smethod_0(Delegate50.smethod_0("Replikanto: Remote Node '{0}' from tab '{1}' status = {2}", internetNode.ReplikantoId, this.UniqueID, internetNode.Status, Delegate50.delegate50_0), 1, Delegate34.delegate34_0);
						flag = true;
					}
				}
				else if (internetNode.Status != NodeStatus.Off)
				{
					internetNode.Status = NodeStatus.Off;
					Delegate34.smethod_0(Delegate50.smethod_0("Replikanto: Remote Node '{0}' from tab '{1}' status = {2}", internetNode.ReplikantoId, this.UniqueID, internetNode.Status, Delegate50.delegate50_0), 1, Delegate34.delegate34_0);
					this.list_7.Add(Delegate86.smethod_0(internetNode, Delegate86.delegate86_0));
					flag = true;
				}
			}
			if (flag)
			{
				if (Delegate300.smethod_0(Delegate476.smethod_0(this.tbNodeToggle, Delegate476.delegate476_0), Resources.ToggleOff, Delegate300.delegate300_0))
				{
					Delegate316.smethod_0(this.tbNodeToggle, Resources.ToggleOn, Delegate316.delegate316_0);
					return;
				}
				Delegate316.smethod_0(this.tbNodeToggle, Resources.ToggleOff, Delegate316.delegate316_0);
				this.list_7.Clear();
			}
		}

		private void method_88(object sender, InitializeRecordEventArgs e)
		{
			if (Delegate477.smethod_0(e, Delegate477.delegate477_0) is DataRecord)
			{
				DataRecord dataRecord = (DataRecord)Delegate477.smethod_0(e, Delegate477.delegate477_0);
				if (Delegate479.smethod_0(Delegate478.smethod_0(dataRecord, Delegate478.delegate478_0), "CrossOrder", Delegate479.delegate479_0) == null || Delegate480.smethod_0(Delegate479.smethod_0(Delegate478.smethod_0(dataRecord, Delegate478.delegate478_0), "CrossOrder", Delegate479.delegate479_0), Delegate480.delegate480_0) == null)
				{
					return;
				}
				if (!Delegate481.smethod_0(Delegate86.smethod_0(Delegate480.smethod_0(Delegate479.smethod_0(Delegate478.smethod_0(dataRecord, Delegate478.delegate478_0), "CrossOrder", Delegate479.delegate479_0), Delegate480.delegate480_0), Delegate86.delegate86_0), Delegate481.delegate481_0))
				{
					if (Delegate479.smethod_0(Delegate478.smethod_0(dataRecord, Delegate478.delegate478_0), "COTarget", Delegate479.delegate479_0) != null && this.Instrument != null)
					{
						Delegate482.smethod_0(Delegate479.smethod_0(Delegate478.smethod_0(dataRecord, Delegate478.delegate478_0), "COTarget", Delegate479.delegate479_0), Delegate348.smethod_0(Delegate357.smethod_0(this.Instrument, Delegate357.delegate357_0), Delegate348.delegate348_0), Delegate482.delegate482_0);
					}
				}
				else if (Delegate479.smethod_0(Delegate478.smethod_0(dataRecord, Delegate478.delegate478_0), "COTarget", Delegate479.delegate479_0) != null && this.CrossOrderInstrument != null)
				{
					Delegate482.smethod_0(Delegate479.smethod_0(Delegate478.smethod_0(dataRecord, Delegate478.delegate478_0), "COTarget", Delegate479.delegate479_0), Delegate348.smethod_0(Delegate357.smethod_0(this.CrossOrderInstrument, Delegate357.delegate357_0), Delegate348.delegate348_0), Delegate482.delegate482_0);
					return;
				}
			}
		}

		private void method_89()
		{
			foreach (CompositeID compositeID in this.concurrentDictionary_2.Keys.ToList<CompositeID>())
			{
				if (this.Account != null)
				{
					try
					{
						Order order = Delegate411.smethod_0(this.Account, compositeID.Id, Delegate411.delegate411_0);
						if (order != null && Delegate394.smethod_0(Delegate145.smethod_0(order, Delegate145.delegate145_0), Delegate394.vupglcLpc3))
						{
							List<CompositeID> list;
							this.concurrentDictionary_2.TryRemove(compositeID, out list);
						}
					}
					catch
					{
					}
				}
			}
		}

		private void method_90(object sender, RoutedEventArgs e)
		{
			if (Delegate274.smethod_0(this, Delegate274.delegate274_0).Invoke<bool>(new Func<bool>(this.method_142)))
			{
				using (List<SlaveAccount>.Enumerator enumerator = this.bindingList_0.ToList<SlaveAccount>().GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						SlaveAccount slaveAccount = enumerator.Current;
						slaveAccount.ShowAccountNumber = true;
					}
					return;
				}
			}
			foreach (SlaveAccount slaveAccount2 in this.bindingList_0.ToList<SlaveAccount>())
			{
				slaveAccount2.ShowAccountNumber = false;
			}
		}

		private void method_91(object sender, RoutedEventArgs e)
		{
			this.method_23(null);
		}

		private void method_92(object sender, RoutedEventArgs e)
		{
			SaveFileDialog saveFileDialog = new SaveFileDialog();
			Delegate483.smethod_0(saveFileDialog, "Followers", Delegate483.delegate483_0);
			Delegate484.smethod_0(saveFileDialog, ".txt", Delegate484.delegate484_0);
			Delegate485.smethod_0(saveFileDialog, "Text documents (.txt)|*.txt", Delegate485.delegate485_0);
			bool? flag = Delegate486.smethod_0(saveFileDialog, Delegate486.delegate486_0);
			if (flag.GetValueOrDefault() & (flag != null))
			{
				Delegate489.smethod_0(Delegate487.smethod_0(saveFileDialog, Delegate487.delegate487_0), Delegate49.smethod_0(Delegate488.smethod_0(Delegate488.delegate488_0), this.bindingList_0.ToList<SlaveAccount>().Select(new Func<SlaveAccount, string>(ReplikantoTabPage.<>c.<>c_0.method_44)), Delegate49.delegate49_0), Delegate489.delegate489_0);
			}
		}

		private void method_93(object sender, RoutedEventArgs e)
		{
			OpenFileDialog openFileDialog = new OpenFileDialog();
			Delegate484.smethod_0(openFileDialog, ".txt", Delegate484.delegate484_0);
			bool? flag = Delegate486.smethod_0(openFileDialog, Delegate486.delegate486_0);
			if (flag.GetValueOrDefault() & (flag != null))
			{
				string text = Delegate487.smethod_0(openFileDialog, Delegate487.delegate487_0);
				string text2 = Delegate85.smethod_0(text, Delegate85.PqjGzimOld);
				string[] array = new string[] { Delegate488.smethod_0(Delegate488.delegate488_0) };
				foreach (string text3 in Delegate490.smethod_0(text2, array, StringSplitOptions.RemoveEmptyEntries, Delegate490.delegate490_0))
				{
					try
					{
						if (text3.Contains(';'))
						{
							ReplikantoTabPage.<>c__DisplayClass205_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass205_0();
							string[] array3 = Delegate191.smethod_0(text3, new char[] { ';' }, Delegate191.delegate191_0);
							CS$<>8__locals1.string_0 = array3[0];
							Delegate34.smethod_0(Delegate288.smethod_0(new string[] { "Replikanto: Importing follower account set '", CS$<>8__locals1.string_0, "' from tab '", this.UniqueID, "'" }, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
							bool flag2 = false;
							bool flag3 = false;
							bool flag4 = false;
							FollowerAccountStatus followerAccountStatus = FollowerAccountStatus.Off;
							double num = 1.0;
							double num2 = 0.0;
							ushort num3 = 0;
							try
							{
								CultureInfo cultureInfo = Delegate238.smethod_0("en-US", Delegate238.delegate238_0);
								flag2 = Delegate481.smethod_0(array3[1], Delegate481.delegate481_0);
								flag3 = Delegate481.smethod_0(array3[2], Delegate481.delegate481_0);
								num = Delegate491.smethod_0(array3[3], NumberStyles.Float, cultureInfo, Delegate491.delegate491_0);
								num3 = Delegate492.smethod_0(array3[4], NumberStyles.Integer, Delegate492.delegate492_0);
								num2 = Delegate491.smethod_0(array3[5], NumberStyles.Float, cultureInfo, Delegate491.delegate491_0);
								followerAccountStatus = (FollowerAccountStatus)Delegate106.smethod_0(Delegate45.smethod_0(typeof(FollowerAccountStatus).TypeHandle, Delegate45.delegate45_0), array3[6], Delegate106.delegate106_0);
								flag4 = Delegate481.smethod_0(array3[7], Delegate481.delegate481_0);
							}
							catch
							{
							}
							if (this.concurrentDictionary_0.ContainsKey(CS$<>8__locals1.string_0))
							{
								this.concurrentDictionary_0[CS$<>8__locals1.string_0].UseATM = flag2;
								this.concurrentDictionary_0[CS$<>8__locals1.string_0].CrossOrder = flag3;
								this.concurrentDictionary_0[CS$<>8__locals1.string_0].Ratio = num;
								this.concurrentDictionary_0[CS$<>8__locals1.string_0].PreAllocation = num3;
								this.concurrentDictionary_0[CS$<>8__locals1.string_0].PctField = num2;
								this.concurrentDictionary_0[CS$<>8__locals1.string_0].Status = followerAccountStatus;
								this.concurrentDictionary_0[CS$<>8__locals1.string_0].MarketOnly = flag4;
							}
							SlaveAccount slaveAccount = this.bindingList_0.ToList<SlaveAccount>().FirstOrDefault(new Func<SlaveAccount, bool>(CS$<>8__locals1.method_0));
							if (slaveAccount != null)
							{
								slaveAccount.UseATM = flag2;
								slaveAccount.MarketOnly = flag4;
								slaveAccount.CrossOrder = flag3;
								slaveAccount.Ratio = num;
								slaveAccount.PreAllocation = num3;
								slaveAccount.PctField = num2;
								slaveAccount.Status = followerAccountStatus;
								this.method_46(slaveAccount);
							}
						}
					}
					catch (Exception ex)
					{
						Delegate34.smethod_0(Delegate288.smethod_0(new string[]
						{
							"Replikanto: Error importing the file ",
							text,
							" data ",
							text3,
							". ",
							Delegate31.smethod_0(ex, Delegate31.delegate31_0)
						}, Delegate288.delegate288_0), 3, Delegate34.delegate34_0);
					}
				}
			}
		}

		private void method_94(object sender, RoutedEventArgs e)
		{
			SaveFileDialog saveFileDialog = new SaveFileDialog();
			Delegate483.smethod_0(saveFileDialog, "Nodes", Delegate483.delegate483_0);
			Delegate484.smethod_0(saveFileDialog, ".txt", Delegate484.delegate484_0);
			Delegate485.smethod_0(saveFileDialog, "Text documents (.txt)|*.txt", Delegate485.delegate485_0);
			bool? flag = Delegate486.smethod_0(saveFileDialog, Delegate486.delegate486_0);
			if (flag.GetValueOrDefault() & (flag != null))
			{
				Delegate489.smethod_0(Delegate487.smethod_0(saveFileDialog, Delegate487.delegate487_0), Delegate49.smethod_0(Delegate488.smethod_0(Delegate488.delegate488_0), this.observableCollection_0.Select(new Func<Node, string>(ReplikantoTabPage.<>c.<>c_0.method_45)), Delegate49.delegate49_0), Delegate489.delegate489_0);
			}
		}

		private void method_95(object sender, RoutedEventArgs e)
		{
			OpenFileDialog openFileDialog = new OpenFileDialog();
			Delegate484.smethod_0(openFileDialog, ".txt", Delegate484.delegate484_0);
			bool? flag = Delegate486.smethod_0(openFileDialog, Delegate486.delegate486_0);
			if (flag.GetValueOrDefault() & (flag != null))
			{
				string text = Delegate487.smethod_0(openFileDialog, Delegate487.delegate487_0);
				string text2 = Delegate85.smethod_0(text, Delegate85.PqjGzimOld);
				string[] array = new string[] { Delegate488.smethod_0(Delegate488.delegate488_0) };
				foreach (string text3 in Delegate490.smethod_0(text2, array, StringSplitOptions.RemoveEmptyEntries, Delegate490.delegate490_0))
				{
					try
					{
						ReplikantoTabPage.<>c__DisplayClass207_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass207_0();
						CS$<>8__locals1.string_0 = text3;
						CS$<>8__locals1.int_0 = 4547;
						NodeStatus nodeStatus = NodeStatus.Off;
						string text4 = string.Empty;
						if (text3.Contains(';'))
						{
							string[] array3 = Delegate191.smethod_0(text3, new char[] { ';' }, Delegate191.delegate191_0);
							CS$<>8__locals1.string_0 = array3[0];
							try
							{
								CS$<>8__locals1.int_0 = Delegate493.smethod_0(array3[1], Delegate493.delegate493_0);
							}
							catch
							{
							}
							try
							{
								nodeStatus = (NodeStatus)Delegate106.smethod_0(Delegate45.smethod_0(typeof(NodeStatus).TypeHandle, Delegate45.delegate45_0), array3[2], Delegate106.delegate106_0);
							}
							catch
							{
							}
							try
							{
								text4 = array3[3];
							}
							catch
							{
							}
						}
						Node node = new Node
						{
							Ip = CS$<>8__locals1.string_0,
							Port = CS$<>8__locals1.int_0,
							Status = nodeStatus,
							Description = text4
						};
						if (this.observableCollection_0.Contains(node))
						{
							Node node2 = this.observableCollection_0.FirstOrDefault(new Func<Node, bool>(CS$<>8__locals1.method_0));
							if (node2 != null)
							{
								node2.Status = nodeStatus;
								node2.Description = text4;
							}
						}
						else
						{
							Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Importing node '{0}:{1}' from tab '{2}' status = {3}", new object[] { node.Ip, node.Port, this.UniqueID, node.Status }, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
							Delegate256.smethod_0(node, new PropertyChangedEventHandler(this.method_45), Delegate256.delegate256_0);
							this.observableCollection_0.Add(node);
						}
					}
					catch (Exception ex)
					{
						Delegate34.smethod_0(Delegate288.smethod_0(new string[]
						{
							"Replikanto: Error importing the file ",
							text,
							" data ",
							text3,
							". ",
							Delegate31.smethod_0(ex, Delegate31.delegate31_0)
						}, Delegate288.delegate288_0), 3, Delegate34.delegate34_0);
					}
				}
			}
		}

		private void method_96(object sender, RoutedEventArgs e)
		{
			SaveFileDialog saveFileDialog = new SaveFileDialog();
			Delegate483.smethod_0(saveFileDialog, "RemoteNodes", Delegate483.delegate483_0);
			Delegate484.smethod_0(saveFileDialog, ".txt", Delegate484.delegate484_0);
			Delegate485.smethod_0(saveFileDialog, "Text documents (.txt)|*.txt", Delegate485.delegate485_0);
			bool? flag = Delegate486.smethod_0(saveFileDialog, Delegate486.delegate486_0);
			if (flag.GetValueOrDefault() & (flag != null))
			{
				Delegate489.smethod_0(Delegate487.smethod_0(saveFileDialog, Delegate487.delegate487_0), Delegate49.smethod_0(Delegate488.smethod_0(Delegate488.delegate488_0), this.observableCollection_1.Select(new Func<InternetNode, string>(ReplikantoTabPage.<>c.<>c_0.method_46)), Delegate49.delegate49_0), Delegate489.delegate489_0);
			}
		}

		private void method_97(object sender, RoutedEventArgs e)
		{
			ReplikantoTabPage.<OnImportInternetNodeClick>d__209 <OnImportInternetNodeClick>d__;
			<OnImportInternetNodeClick>d__.<>t__builder = Delegate40.smethod_0(Delegate40.delegate40_0);
			<OnImportInternetNodeClick>d__.<>4__this = this;
			<OnImportInternetNodeClick>d__.<>1__state = -1;
			<OnImportInternetNodeClick>d__.<>t__builder.Start<ReplikantoTabPage.<OnImportInternetNodeClick>d__209>(ref <OnImportInternetNodeClick>d__);
		}

		private void method_98(object sender, RoutedEventArgs e)
		{
			this.method_26(false);
			this.isHideNodesChecked = false;
			Delegate253.smethod_0(this.menuItem_5, true, Delegate253.delegate253_0);
		}

		protected override void Save(XElement element)
		{
			string text = this.string_2;
			NTWindow ntwindow = (NTWindow)Delegate280.smethod_0(this, Delegate280.delegate280_0);
			if (ntwindow != null)
			{
				this.string_2 = Delegate43.smethod_0(ntwindow, Delegate43.delegate43_0);
				if (!Delegate44.smethod_0(text, Delegate44.delegate44_0) && Delegate104.smethod_0(text, this.string_2, Delegate104.delegate104_0))
				{
					try
					{
						ReplikantoTabPage.leaderAccountsGuard_0.ChangeLeaderWorkspace(this.string_2, text, this.UniqueID, this.Instrument);
					}
					catch (Exception)
					{
					}
				}
			}
			if (element == null)
			{
				return;
			}
			if (this.ReplikantoProperties != null)
			{
				try
				{
					object obj = new XmlSerializer(Delegate45.smethod_0(typeof(ReplikantoProperties).TypeHandle, Delegate45.delegate45_0));
					StringWriter stringWriter = new StringWriter();
					Delegate494.smethod_0(obj, stringWriter, this.ReplikantoProperties, Delegate494.delegate494_0);
					XElement xelement = new XElement(Delegate495.smethod_0("ReplikantoProperties", Delegate495.delegate495_0));
					Delegate496.smethod_0(xelement, Delegate86.smethod_0(stringWriter, Delegate86.delegate86_0), Delegate496.delegate496_0);
					Delegate497.smethod_0(element, xelement, Delegate497.delegate497_0);
				}
				catch (Exception ex)
				{
					Delegate34.smethod_0(Delegate33.smethod_0("Replikanto: Error serializing Replikanto Properties. ", Delegate31.smethod_0(ex, Delegate31.delegate31_0), Delegate33.delegate33_0), 1, Delegate34.delegate34_0);
				}
			}
			if (this.Instrument != null && !Delegate44.smethod_0(Delegate327.smethod_0(this.Instrument, Delegate327.delegate327_0), Delegate44.delegate44_0))
			{
				XElement xelement2 = new XElement(Delegate495.smethod_0("Instrument", Delegate495.delegate495_0));
				Delegate496.smethod_0(xelement2, Delegate327.smethod_0(this.Instrument, Delegate327.delegate327_0), Delegate496.delegate496_0);
				Delegate497.smethod_0(element, xelement2, Delegate497.delegate497_0);
			}
			else
			{
				Delegate34.smethod_0("Replikanto: Instrument will be not serialized. Instrument is null or empty", 1, Delegate34.delegate34_0);
			}
			if (this.selectorAccounts != null && !Delegate44.smethod_0(Delegate498.smethod_0(this.selectorAccounts, Delegate498.delegate498_0), Delegate44.delegate44_0))
			{
				XElement xelement3 = new XElement(Delegate495.smethod_0("Account", Delegate495.delegate495_0));
				Delegate496.smethod_0(xelement3, Delegate498.smethod_0(this.selectorAccounts, Delegate498.delegate498_0), Delegate496.delegate496_0);
				Delegate497.smethod_0(element, xelement3, Delegate497.delegate497_0);
			}
			else
			{
				Delegate34.smethod_0("Replikanto: Account will be not serialized. Desired Account is null or empty", 1, Delegate34.delegate34_0);
			}
			XElement xelement4 = new XElement(Delegate495.smethod_0("Followers", Delegate495.delegate495_0));
			bool flag;
			if (xelement4 != null)
			{
				Delegate497.smethod_0(element, xelement4, Delegate497.delegate497_0);
				IEnumerator<string> enumerator = this.concurrentDictionary_0.Keys.GetEnumerator();
				try
				{
					while (Delegate38.smethod_0(enumerator, Delegate38.delegate38_0))
					{
						string text2 = enumerator.Current;
						try
						{
							XElement xelement5 = new XElement(Delegate495.smethod_0("Properties", Delegate495.delegate495_0));
							Delegate497.smethod_0(xelement4, xelement5, Delegate497.delegate497_0);
							object obj2 = xelement5;
							XElement xelement6 = new XElement(Delegate495.smethod_0("Account", Delegate495.delegate495_0));
							Delegate496.smethod_0(xelement6, text2, Delegate496.delegate496_0);
							Delegate497.smethod_0(obj2, xelement6, Delegate497.delegate497_0);
							object obj3 = xelement5;
							XElement xelement7 = new XElement(Delegate495.smethod_0("Status", Delegate495.delegate495_0));
							Delegate496.smethod_0(xelement7, this.concurrentDictionary_0[text2].Status.ToString(), Delegate496.delegate496_0);
							Delegate497.smethod_0(obj3, xelement7, Delegate497.delegate497_0);
							object obj4 = xelement5;
							XElement xelement8 = new XElement(Delegate495.smethod_0("CrossOrder", Delegate495.delegate495_0));
							flag = this.concurrentDictionary_0[text2].CrossOrder;
							Delegate496.smethod_0(xelement8, Delegate499.smethod_0(ref flag, Delegate499.delegate499_0), Delegate496.delegate496_0);
							Delegate497.smethod_0(obj4, xelement8, Delegate497.delegate497_0);
							object obj5 = xelement5;
							XElement xelement9 = new XElement(Delegate495.smethod_0("UseATM", Delegate495.delegate495_0));
							flag = this.concurrentDictionary_0[text2].UseATM;
							Delegate496.smethod_0(xelement9, Delegate499.smethod_0(ref flag, Delegate499.delegate499_0), Delegate496.delegate496_0);
							Delegate497.smethod_0(obj5, xelement9, Delegate497.delegate497_0);
							object obj6 = xelement5;
							XElement xelement10 = new XElement(Delegate495.smethod_0("MarketOnly", Delegate495.delegate495_0));
							flag = this.concurrentDictionary_0[text2].MarketOnly;
							Delegate496.smethod_0(xelement10, Delegate499.smethod_0(ref flag, Delegate499.delegate499_0), Delegate496.delegate496_0);
							Delegate497.smethod_0(obj6, xelement10, Delegate497.delegate497_0);
							object obj7 = xelement5;
							XElement xelement11 = new XElement(Delegate495.smethod_0("PctField", Delegate495.delegate495_0));
							double num = this.concurrentDictionary_0[text2].PctField;
							Delegate496.smethod_0(xelement11, Delegate500.smethod_0(ref num, "G", Delegate238.smethod_0("en-US", Delegate238.delegate238_0), Delegate500.delegate500_0), Delegate496.delegate496_0);
							Delegate497.smethod_0(obj7, xelement11, Delegate497.delegate497_0);
							object obj8 = xelement5;
							XElement xelement12 = new XElement(Delegate495.smethod_0("Ratio", Delegate495.delegate495_0));
							num = this.concurrentDictionary_0[text2].Ratio;
							Delegate496.smethod_0(xelement12, Delegate500.smethod_0(ref num, "G", Delegate238.smethod_0("en-US", Delegate238.delegate238_0), Delegate500.delegate500_0), Delegate496.delegate496_0);
							Delegate497.smethod_0(obj8, xelement12, Delegate497.delegate497_0);
							object obj9 = xelement5;
							XElement xelement13 = new XElement(Delegate495.smethod_0("PreAllocation", Delegate495.delegate495_0));
							ushort preAllocation = this.concurrentDictionary_0[text2].PreAllocation;
							Delegate496.smethod_0(xelement13, Delegate501.smethod_0(ref preAllocation, "D", Delegate238.smethod_0("en-US", Delegate238.delegate238_0), Delegate501.delegate501_0), Delegate496.delegate496_0);
							Delegate497.smethod_0(obj9, xelement13, Delegate497.delegate497_0);
						}
						catch (Exception ex2)
						{
							string text3 = text2;
							if (Delegate44.smethod_0(text3, Delegate44.delegate44_0))
							{
								text3 = "null or empty account";
							}
							Delegate34.smethod_0(Delegate303.smethod_0("Replikanto: Follower account \"", text3, "\" will not be serialized. ", Delegate31.smethod_0(ex2, Delegate31.delegate31_0), Delegate303.delegate303_0), 2, Delegate34.delegate34_0);
						}
					}
				}
				finally
				{
					if (enumerator != null)
					{
						Delegate39.smethod_0(enumerator, Delegate39.delegate39_0);
					}
				}
			}
			NTWindow ntwindow2 = Delegate280.smethod_0(this, Delegate280.delegate280_0) as NTWindow;
			if (ntwindow2 != null)
			{
				XElement xelement14 = new XElement(Delegate495.smethod_0("AreTabsVisible", Delegate495.delegate495_0));
				flag = Delegate502.smethod_0(ntwindow2, Delegate502.delegate502_0);
				Delegate496.smethod_0(xelement14, Delegate499.smethod_0(ref flag, Delegate499.delegate499_0), Delegate496.delegate496_0);
				Delegate497.smethod_0(element, xelement14, Delegate497.delegate497_0);
			}
			try
			{
				XElement xelement15 = new XElement(Delegate495.smethod_0("Method", Delegate495.delegate495_0));
				Delegate496.smethod_0(xelement15, Delegate472.smethod_0(Delegate45.smethod_0(typeof(EnumMethod).TypeHandle, Delegate45.delegate45_0), this.Method, Delegate472.delegate472_0), Delegate496.delegate496_0);
				Delegate497.smethod_0(element, xelement15, Delegate497.delegate497_0);
			}
			catch
			{
				XElement xelement16 = new XElement(Delegate495.smethod_0("Method", Delegate495.delegate495_0));
				Delegate496.smethod_0(xelement16, Delegate472.smethod_0(Delegate45.smethod_0(typeof(EnumMethod).TypeHandle, Delegate45.delegate45_0), EnumMethod.ExactQuantity, Delegate472.delegate472_0), Delegate496.delegate496_0);
				Delegate497.smethod_0(element, xelement16, Delegate497.delegate497_0);
			}
			XElement xelement17 = new XElement(Delegate495.smethod_0("CrossOrderMenu", Delegate495.delegate495_0));
			flag = Delegate257.smethod_0(this.menuItem_2, Delegate257.delegate257_0);
			Delegate496.smethod_0(xelement17, Delegate499.smethod_0(ref flag, Delegate499.delegate499_0), Delegate496.delegate496_0);
			Delegate497.smethod_0(element, xelement17, Delegate497.delegate497_0);
			XElement xelement18 = new XElement(Delegate495.smethod_0("HideNodesMenu", Delegate495.delegate495_0));
			flag = Delegate257.smethod_0(this.menuItem_5, Delegate257.delegate257_0);
			Delegate496.smethod_0(xelement18, Delegate499.smethod_0(ref flag, Delegate499.delegate499_0), Delegate496.delegate496_0);
			Delegate497.smethod_0(element, xelement18, Delegate497.delegate497_0);
			XElement xelement19 = new XElement(Delegate495.smethod_0("UseATMMenu", Delegate495.delegate495_0));
			flag = Delegate257.smethod_0(this.menuItem_3, Delegate257.delegate257_0);
			Delegate496.smethod_0(xelement19, Delegate499.smethod_0(ref flag, Delegate499.delegate499_0), Delegate496.delegate496_0);
			Delegate497.smethod_0(element, xelement19, Delegate497.delegate497_0);
			XElement xelement20 = new XElement(Delegate495.smethod_0("Disarm", Delegate495.delegate495_0));
			flag = Delegate257.smethod_0(this.menuItem_4, Delegate257.delegate257_0);
			Delegate496.smethod_0(xelement20, Delegate499.smethod_0(ref flag, Delegate499.delegate499_0), Delegate496.delegate496_0);
			Delegate497.smethod_0(element, xelement20, Delegate497.delegate497_0);
			if (this.UniqueID != null && !Delegate44.smethod_0(this.UniqueID, Delegate44.delegate44_0))
			{
				if (!Delegate44.smethod_0(text, Delegate44.delegate44_0) && Delegate104.smethod_0(text, this.string_2, Delegate104.delegate104_0))
				{
					int num2 = Delegate242.smethod_0(this, Delegate242.delegate242_0);
					string text4 = Delegate243.smethod_0(ref num2, "X8", Delegate243.delegate243_0);
					this.method_3(text4);
					XElement xelement21 = new XElement(Delegate495.smethod_0("UniqueID", Delegate495.delegate495_0));
					Delegate496.smethod_0(xelement21, text4, Delegate496.delegate496_0);
					Delegate497.smethod_0(element, xelement21, Delegate497.delegate497_0);
				}
				else
				{
					XElement xelement22 = new XElement(Delegate495.smethod_0("UniqueID", Delegate495.delegate495_0));
					Delegate496.smethod_0(xelement22, this.UniqueID, Delegate496.delegate496_0);
					Delegate497.smethod_0(element, xelement22, Delegate497.delegate497_0);
					this.method_3(this.UniqueID);
				}
			}
			else
			{
				Delegate34.smethod_0("Replikanto: UniqueID will be not serialized. UniqueID is null or empty", 1, Delegate34.delegate34_0);
			}
			XElement xelement23 = new XElement(Delegate495.smethod_0("Nodes", Delegate495.delegate495_0));
			if (xelement23 != null)
			{
				Delegate497.smethod_0(element, xelement23, Delegate497.delegate497_0);
				IEnumerator<Node> enumerator2 = this.observableCollection_0.GetEnumerator();
				try
				{
					while (Delegate38.smethod_0(enumerator2, Delegate38.delegate38_0))
					{
						Node node = enumerator2.Current;
						try
						{
							XElement xelement24 = new XElement(Delegate495.smethod_0("Node", Delegate495.delegate495_0));
							Delegate497.smethod_0(xelement23, xelement24, Delegate497.delegate497_0);
							XElement xelement25 = new XElement(Delegate495.smethod_0("Status", Delegate495.delegate495_0));
							Delegate496.smethod_0(xelement25, node.Status.ToString(), Delegate496.delegate496_0);
							XElement xelement26 = xelement25;
							Delegate497.smethod_0(xelement24, xelement26, Delegate497.delegate497_0);
							XElement xelement27 = new XElement(Delegate495.smethod_0("Checked", Delegate495.delegate495_0));
							flag = node.Status > NodeStatus.Off;
							Delegate496.smethod_0(xelement27, Delegate499.smethod_0(ref flag, Delegate499.delegate499_0), Delegate496.delegate496_0);
							XElement xelement28 = xelement27;
							Delegate497.smethod_0(xelement24, xelement28, Delegate497.delegate497_0);
							XElement xelement29 = new XElement(Delegate495.smethod_0("IP", Delegate495.delegate495_0));
							Delegate496.smethod_0(xelement29, node.Ip, Delegate496.delegate496_0);
							XElement xelement30 = xelement29;
							Delegate497.smethod_0(xelement24, xelement30, Delegate497.delegate497_0);
							XElement xelement31 = new XElement(Delegate495.smethod_0("Port", Delegate495.delegate495_0));
							int num2 = node.Port;
							Delegate496.smethod_0(xelement31, Delegate220.smethod_0(ref num2, Delegate220.xReoabdegl), Delegate496.delegate496_0);
							XElement xelement32 = xelement31;
							Delegate497.smethod_0(xelement24, xelement32, Delegate497.delegate497_0);
							XElement xelement33 = new XElement(Delegate495.smethod_0("Description", Delegate495.delegate495_0));
							Delegate496.smethod_0(xelement33, node.Description, Delegate496.delegate496_0);
							XElement xelement34 = xelement33;
							Delegate497.smethod_0(xelement24, xelement34, Delegate497.delegate497_0);
						}
						catch (Exception ex3)
						{
							Delegate34.smethod_0(Delegate82.smethod_0("Replikanto: Follower network node \"{0}\" will not be serialized. {1}", node, Delegate31.smethod_0(ex3, Delegate31.delegate31_0), Delegate82.delegate82_0), 2, Delegate34.delegate34_0);
						}
					}
				}
				finally
				{
					if (enumerator2 != null)
					{
						Delegate39.smethod_0(enumerator2, Delegate39.delegate39_0);
					}
				}
				IEnumerator<InternetNode> enumerator3 = this.observableCollection_1.GetEnumerator();
				try
				{
					while (Delegate38.smethod_0(enumerator3, Delegate38.delegate38_0))
					{
						InternetNode internetNode = enumerator3.Current;
						try
						{
							if (!InternetNode.ECHO.Equals(internetNode))
							{
								XElement xelement35 = new XElement(Delegate495.smethod_0("InternetNode", Delegate495.delegate495_0));
								Delegate497.smethod_0(xelement23, xelement35, Delegate497.delegate497_0);
								XElement xelement36 = new XElement(Delegate495.smethod_0("Status", Delegate495.delegate495_0));
								Delegate496.smethod_0(xelement36, internetNode.Status.ToString(), Delegate496.delegate496_0);
								XElement xelement37 = xelement36;
								Delegate497.smethod_0(xelement35, xelement37, Delegate497.delegate497_0);
								XElement xelement38 = new XElement(Delegate495.smethod_0("Checked", Delegate495.delegate495_0));
								flag = internetNode.Status > NodeStatus.Off;
								Delegate496.smethod_0(xelement38, Delegate499.smethod_0(ref flag, Delegate499.delegate499_0), Delegate496.delegate496_0);
								XElement xelement39 = xelement38;
								Delegate497.smethod_0(xelement35, xelement39, Delegate497.delegate497_0);
								XElement xelement40 = new XElement(Delegate495.smethod_0("ID", Delegate495.delegate495_0));
								Delegate496.smethod_0(xelement40, internetNode.ReplikantoId, Delegate496.delegate496_0);
								XElement xelement41 = xelement40;
								Delegate497.smethod_0(xelement35, xelement41, Delegate497.delegate497_0);
								XElement xelement42 = new XElement(Delegate495.smethod_0("Description", Delegate495.delegate495_0));
								Delegate496.smethod_0(xelement42, internetNode.Description, Delegate496.delegate496_0);
								XElement xelement43 = xelement42;
								Delegate497.smethod_0(xelement35, xelement43, Delegate497.delegate497_0);
							}
						}
						catch (Exception ex4)
						{
							Delegate34.smethod_0(Delegate82.smethod_0("Replikanto: Follower remote node \"{0}\" will not be serialized. {1}", internetNode, Delegate31.smethod_0(ex4, Delegate31.delegate31_0), Delegate82.delegate82_0), 2, Delegate34.delegate34_0);
						}
					}
				}
				finally
				{
					if (enumerator3 != null)
					{
						Delegate39.smethod_0(enumerator3, Delegate39.delegate39_0);
					}
				}
			}
			XElement xelement44 = new XElement(Delegate495.smethod_0("ServerNode", Delegate495.delegate495_0));
			flag = Delegate257.smethod_0(this.mnuServerNode, Delegate257.delegate257_0);
			Delegate496.smethod_0(xelement44, Delegate499.smethod_0(ref flag, Delegate499.delegate499_0), Delegate496.delegate496_0);
			Delegate497.smethod_0(element, xelement44, Delegate497.delegate497_0);
			XElement xelement45 = new XElement(Delegate495.smethod_0("NodeOn", Delegate495.delegate495_0));
			Delegate496.smethod_0(xelement45, Delegate503.smethod_0(this.cbNetworkMode, Delegate503.delegate503_0).ToString(), Delegate496.delegate496_0);
			Delegate497.smethod_0(element, xelement45, Delegate497.delegate497_0);
			XElement xelement46 = new XElement(Delegate495.smethod_0("InternetNode", Delegate495.delegate495_0));
			flag = Delegate257.smethod_0(this.menuItem_6, Delegate257.delegate257_0);
			Delegate496.smethod_0(xelement46, Delegate499.smethod_0(ref flag, Delegate499.delegate499_0), Delegate496.delegate496_0);
			Delegate497.smethod_0(element, xelement46, Delegate497.delegate497_0);
			XElement xelement47 = new XElement(Delegate495.smethod_0("InternetOn", Delegate495.delegate495_0));
			Delegate496.smethod_0(xelement47, Delegate503.smethod_0(this.cbInternetMode, Delegate503.delegate503_0).ToString(), Delegate496.delegate496_0);
			Delegate497.smethod_0(element, xelement47, Delegate497.delegate497_0);
			try
			{
				FieldSortDescription fieldSortDescription = Delegate505.smethod_0(Delegate504.smethod_0(this.grdSlaveAccounts, Delegate504.delegate504_0), Delegate505.delegate505_0).First<FieldSortDescription>();
				XElement xelement48 = new XElement(Delegate495.smethod_0("FollowersFieldSortDescription", Delegate495.delegate495_0));
				XElement xelement49 = new XElement(Delegate495.smethod_0("FieldName", Delegate495.delegate495_0));
				Delegate496.smethod_0(xelement49, Delegate506.smethod_0(fieldSortDescription, Delegate506.delegate506_0), Delegate496.delegate496_0);
				XElement xelement50 = xelement49;
				XElement xelement51 = new XElement(Delegate495.smethod_0("Direction", Delegate495.delegate495_0));
				Delegate496.smethod_0(xelement51, Delegate507.smethod_0(fieldSortDescription, Delegate507.delegate507_0).ToString(), Delegate496.delegate496_0);
				XElement xelement52 = xelement51;
				Delegate497.smethod_0(xelement48, xelement50, Delegate497.delegate497_0);
				Delegate497.smethod_0(xelement48, xelement52, Delegate497.delegate497_0);
				Delegate497.smethod_0(element, xelement48, Delegate497.delegate497_0);
			}
			catch (Exception)
			{
			}
			try
			{
				FieldSortDescription fieldSortDescription2 = Delegate505.smethod_0(Delegate504.smethod_0(this.grdNodes, Delegate504.delegate504_0), Delegate505.delegate505_0).First<FieldSortDescription>();
				XElement xelement53 = new XElement(Delegate495.smethod_0("NodesFieldSortDescription", Delegate495.delegate495_0));
				XElement xelement54 = new XElement(Delegate495.smethod_0("FieldName", Delegate495.delegate495_0));
				Delegate496.smethod_0(xelement54, Delegate506.smethod_0(fieldSortDescription2, Delegate506.delegate506_0), Delegate496.delegate496_0);
				XElement xelement55 = xelement54;
				XElement xelement56 = new XElement(Delegate495.smethod_0("Direction", Delegate495.delegate495_0));
				Delegate496.smethod_0(xelement56, Delegate507.smethod_0(fieldSortDescription2, Delegate507.delegate507_0).ToString(), Delegate496.delegate496_0);
				XElement xelement57 = xelement56;
				Delegate497.smethod_0(xelement53, xelement55, Delegate497.delegate497_0);
				Delegate497.smethod_0(xelement53, xelement57, Delegate497.delegate497_0);
				Delegate497.smethod_0(element, xelement53, Delegate497.delegate497_0);
			}
			catch (Exception)
			{
			}
			try
			{
				FieldSortDescription fieldSortDescription3 = Delegate505.smethod_0(Delegate504.smethod_0(this.grdInternetNodes, Delegate504.delegate504_0), Delegate505.delegate505_0).First<FieldSortDescription>();
				XElement xelement58 = new XElement(Delegate495.smethod_0("InternetNodesFieldSortDescription", Delegate495.delegate495_0));
				XElement xelement59 = new XElement(Delegate495.smethod_0("FieldName", Delegate495.delegate495_0));
				Delegate496.smethod_0(xelement59, Delegate506.smethod_0(fieldSortDescription3, Delegate506.delegate506_0), Delegate496.delegate496_0);
				XElement xelement60 = xelement59;
				XElement xelement61 = new XElement(Delegate495.smethod_0("Direction", Delegate495.delegate495_0));
				Delegate496.smethod_0(xelement61, Delegate507.smethod_0(fieldSortDescription3, Delegate507.delegate507_0).ToString(), Delegate496.delegate496_0);
				XElement xelement62 = xelement61;
				Delegate497.smethod_0(xelement58, xelement60, Delegate497.delegate497_0);
				Delegate497.smethod_0(xelement58, xelement62, Delegate497.delegate497_0);
				Delegate497.smethod_0(element, xelement58, Delegate497.delegate497_0);
			}
			catch (Exception)
			{
			}
		}

		protected override void Restore(XElement element)
		{
			ReplikantoTabPage.<Restore>d__212 <Restore>d__;
			<Restore>d__.<>t__builder = Delegate40.smethod_0(Delegate40.delegate40_0);
			<Restore>d__.<>4__this = this;
			<Restore>d__.element = element;
			<Restore>d__.<>1__state = -1;
			<Restore>d__.<>t__builder.Start<ReplikantoTabPage.<Restore>d__212>(ref <Restore>d__);
		}

		public override void Cleanup()
		{
			Delegate34.smethod_0(Delegate51.smethod_0("Replikanto: Cleaning up Replikanto tab '", this.UniqueID, "'...", Delegate51.delegate51_0), 1, Delegate34.delegate34_0);
			try
			{
				this.collection_0.Clear();
			}
			catch
			{
			}
			try
			{
				ReplikantoTabPage.leaderAccountsGuard_0.Remove(this.string_2, this.UniqueID, this.Instrument);
			}
			catch
			{
			}
			try
			{
				if (this.concurrentDictionary_4.Count > 0)
				{
					string text = JsonConvert.SerializeObject(this.concurrentDictionary_4, Formatting.Indented);
					Delegate489.smethod_0(Delegate303.smethod_0(Delegate87.smethod_0(Delegate87.delegate87_0), "bin\\Custom\\Replikanto_order_names_", this.method_2(), ".json", Delegate303.delegate303_0), text, Delegate489.delegate489_0);
					this.concurrentDictionary_4.Clear();
				}
				else
				{
					try
					{
						if (Delegate508.smethod_0(Delegate303.smethod_0(Delegate87.smethod_0(Delegate87.delegate87_0), "bin\\Custom\\Replikanto_order_names_", this.method_2(), ".json", Delegate303.delegate303_0), Delegate508.delegate508_0))
						{
							Delegate509.smethod_0(Delegate303.smethod_0(Delegate87.smethod_0(Delegate87.delegate87_0), "bin\\Custom\\Replikanto_order_names_", this.method_2(), ".json", Delegate303.delegate303_0), Delegate509.delegate509_0);
						}
					}
					catch
					{
					}
				}
			}
			catch (Exception ex)
			{
				Delegate34.smethod_0(Delegate33.smethod_0("Replikanto: Persist the leader order names error: ", Delegate31.smethod_0(ex, Delegate31.delegate31_0), Delegate33.delegate33_0), 3, Delegate34.delegate34_0);
			}
			try
			{
				if (this.method_24() && (this.ReplikantoProperties.StealthMode || this.bool_1))
				{
					if (this.concurrentDictionary_2.Count > 0)
					{
						JsonConverter[] array = new JsonConverter[]
						{
							new GClass1()
						};
						string text2 = JsonConvert.SerializeObject(this.concurrentDictionary_2, Formatting.Indented, array);
						Delegate489.smethod_0(Delegate303.smethod_0(Delegate87.smethod_0(Delegate87.delegate87_0), "bin\\Custom\\Replikanto_links_", this.method_2(), ".json", Delegate303.delegate303_0), text2, Delegate489.delegate489_0);
						this.concurrentDictionary_2.Clear();
					}
					else
					{
						try
						{
							if (Delegate508.smethod_0(Delegate303.smethod_0(Delegate87.smethod_0(Delegate87.delegate87_0), "bin\\Custom\\Replikanto_links_", this.method_2(), ".json", Delegate303.delegate303_0), Delegate508.delegate508_0))
							{
								Delegate509.smethod_0(Delegate303.smethod_0(Delegate87.smethod_0(Delegate87.delegate87_0), "bin\\Custom\\Replikanto_links_", this.method_2(), ".json", Delegate303.delegate303_0), Delegate509.delegate509_0);
							}
						}
						catch
						{
						}
					}
				}
			}
			catch (Exception ex2)
			{
				Delegate34.smethod_0(Delegate33.smethod_0("Replikanto: Persist the leader and followers orders link error: ", Delegate31.smethod_0(ex2, Delegate31.delegate31_0), Delegate33.delegate33_0), 3, Delegate34.delegate34_0);
			}
			try
			{
				foreach (KeyValuePair<Tuple<long, long>, AtmStrategy> keyValuePair in this.concurrentDictionary_3.ToList<KeyValuePair<Tuple<long, long>, AtmStrategy>>())
				{
					if (Delegate443.smethod_0(keyValuePair.Value, Delegate443.delegate443_0))
					{
						try
						{
							AtmStrategy atmStrategy;
							this.concurrentDictionary_3.TryRemove(keyValuePair.Key, out atmStrategy);
						}
						catch
						{
						}
					}
				}
				if (this.concurrentDictionary_3.Count > 0)
				{
					JsonConverter[] array2 = new JsonConverter[]
					{
						new AtmStrategyConverter()
					};
					string text3 = JsonConvert.SerializeObject(this.concurrentDictionary_3, array2);
					Delegate489.smethod_0(Delegate303.smethod_0(Delegate87.smethod_0(Delegate87.delegate87_0), "bin\\Custom\\Replikanto_strategies_", this.method_2(), ".json", Delegate303.delegate303_0), text3, Delegate489.delegate489_0);
					this.concurrentDictionary_3.Clear();
				}
				else
				{
					try
					{
						if (Delegate508.smethod_0(Delegate303.smethod_0(Delegate87.smethod_0(Delegate87.delegate87_0), "bin\\Custom\\Replikanto_strategies_", this.method_2(), ".json", Delegate303.delegate303_0), Delegate508.delegate508_0))
						{
							Delegate509.smethod_0(Delegate303.smethod_0(Delegate87.smethod_0(Delegate87.delegate87_0), "bin\\Custom\\Replikanto_strategies_", this.method_2(), ".json", Delegate303.delegate303_0), Delegate509.delegate509_0);
						}
					}
					catch
					{
					}
				}
			}
			catch (Exception ex3)
			{
				Delegate34.smethod_0(Delegate33.smethod_0("Replikanto: Persist the strategies link error: ", Delegate31.smethod_0(ex3, Delegate31.delegate31_0), Delegate33.delegate33_0), 3, Delegate34.delegate34_0);
			}
			try
			{
				if (this.concurrentDictionary_5.Count > 0)
				{
					try
					{
						foreach (long num in this.concurrentDictionary_5.Keys.ToList<long>())
						{
							ServerStrategy serverStrategy;
							if (this.concurrentDictionary_5.TryGetValue(num, out serverStrategy) && (serverStrategy.IsTerminal(this.Account) || (serverStrategy.StopOrders.Length == 0 && serverStrategy.TargetOrders.Length == 0)))
							{
								ServerStrategy serverStrategy2;
								this.concurrentDictionary_5.TryRemove(num, out serverStrategy2);
							}
						}
					}
					catch
					{
					}
					if (this.concurrentDictionary_5.Count > 0)
					{
						string text4 = JsonConvert.SerializeObject(this.concurrentDictionary_5, Formatting.Indented);
						Delegate489.smethod_0(Delegate303.smethod_0(Delegate87.smethod_0(Delegate87.delegate87_0), "bin\\Custom\\Replikanto_server_strategies_", this.method_2(), ".json", Delegate303.delegate303_0), text4, Delegate489.delegate489_0);
						this.concurrentDictionary_5.Clear();
					}
				}
			}
			catch (Exception ex4)
			{
				Delegate34.smethod_0(Delegate33.smethod_0("Replikanto: Persist the server strategies error: ", Delegate31.smethod_0(ex4, Delegate31.delegate31_0), Delegate33.delegate33_0), 3, Delegate34.delegate34_0);
			}
			if (this.Account != null)
			{
				Delegate339.smethod_0(this.Account, new EventHandler<OrderEventArgs>(this.OnOrderUpdate), Delegate339.delegate339_0);
				Delegate341.smethod_0(this.Account, new EventHandler<ExecutionEventArgs>(this.method_51), Delegate341.delegate341_0);
				Delegate212.smethod_0(this.Account, new EventHandler<PositionEventArgs>(this.method_50), Delegate212.Dyqofvotxu);
			}
			try
			{
				foreach (SlaveAccount slaveAccount in this.bindingList_0.ToList<SlaveAccount>())
				{
					if (slaveAccount != null)
					{
						try
						{
							if (Delegate230.smethod_0(slaveAccount, Delegate230.delegate230_0) != null)
							{
								Delegate212.smethod_0(Delegate230.smethod_0(slaveAccount, Delegate230.delegate230_0), new EventHandler<PositionEventArgs>(this.method_49), Delegate212.Dyqofvotxu);
								Delegate339.smethod_0(Delegate230.smethod_0(slaveAccount, Delegate230.delegate230_0), new EventHandler<OrderEventArgs>(this.method_48), Delegate339.delegate339_0);
								Delegate213.smethod_0(Delegate230.smethod_0(slaveAccount, Delegate230.delegate230_0), new EventHandler<AccountItemEventArgs>(this.method_42), Delegate213.delegate213_0);
							}
							Delegate293.smethod_0(slaveAccount, new PropertyChangedEventHandler(this.method_43), Delegate293.delegate293_0);
							slaveAccount.Clear();
						}
						catch
						{
						}
					}
				}
				this.bindingList_0.Clear();
				this.concurrentDictionary_0.Clear();
			}
			catch
			{
			}
			if (this.cbxInstruments != null)
			{
				Delegate510.smethod_0(this.cbxInstruments, new CancelEventHandler(this.method_30), Delegate510.delegate510_0);
			}
			Delegate511.smethod_0(new EventHandler<ConnectionStatusEventArgs>(this.method_34), Delegate511.delegate511_0);
			Delegate512.smethod_0(new EventHandler<AccountStatusEventArgs>(this.method_33), Delegate512.delegate512_0);
			try
			{
				EventInfo eventInfo = Delegate265.smethod_0(Delegate45.smethod_0(typeof(Connection).TypeHandle, Delegate45.delegate45_0), "ServerAtmStrategyUpdate", Delegate265.delegate265_0);
				if (Delegate266.smethod_0(eventInfo, null, Delegate266.delegate266_0))
				{
					Type type = Delegate267.smethod_0(eventInfo, Delegate267.delegate267_0);
					MethodInfo methodInfo = Delegate80.smethod_0(Delegate45.smethod_0(typeof(ReplikantoTabPage).TypeHandle, Delegate45.delegate45_0), "OnServerATMStrategyUpdate", BindingFlags.Instance | BindingFlags.NonPublic, Delegate80.delegate80_0);
					if (Delegate268.smethod_0(methodInfo, null, Delegate268.delegate268_0))
					{
						Delegate @delegate = Delegate269.smethod_0(type, this, methodInfo, Delegate269.emdvSgXjud);
						MethodInfo methodInfo2 = Delegate513.smethod_0(eventInfo, Delegate513.delegate513_0);
						object[] array3 = new object[] { @delegate };
						methodInfo2.Invoke(this, array3);
					}
				}
			}
			catch (Exception ex5)
			{
				Delegate34.smethod_0(Delegate32.smethod_0("Replikanto: ServerAtmStrategyUpdate Remove Error. {0}", ex5, Delegate32.delegate32_0), 3, Delegate34.delegate34_0);
			}
			if (this.communicatorBroker_0 != null)
			{
				try
				{
					this.communicatorBroker_0.MessageReceived -= this.method_15;
					this.communicatorBroker_0.Error -= this.method_107;
					this.communicatorBroker_0.Connected -= this.method_104;
					this.communicatorBroker_0.Connecting -= this.method_105;
					this.communicatorBroker_0.Disconnected -= this.method_106;
					CommunicatorFactory.Release(this.communicatorBroker_0, "Page");
				}
				catch
				{
				}
			}
			if (this.epBfwErgBr != null)
			{
				this.epBfwErgBr.MessageReceived -= this.method_16;
			}
			Delegate514.smethod_0(this.grdInternetNodes, new EventHandler<RecordsDeletedEventArgs>(this.method_12), Delegate514.delegate514_0);
			Delegate515.smethod_0(this.grdInternetNodes, new EventHandler<RecordUpdatedEventArgs>(this.method_11), Delegate515.delegate515_0);
			Delegate515.smethod_0(this.grdNodes, new EventHandler<RecordUpdatedEventArgs>(this.method_13), Delegate515.delegate515_0);
			Delegate514.smethod_0(this.grdNodes, new EventHandler<RecordsDeletedEventArgs>(this.method_14), Delegate514.delegate514_0);
			Delegate293.smethod_0(this.ReplikantoProperties, new PropertyChangedEventHandler(this.method_5), Delegate293.delegate293_0);
			if (this.list_0 != null)
			{
				this.list_0.Clear();
			}
			try
			{
				this.list_2.Clear();
				this.list_3.Clear();
			}
			catch
			{
			}
			Delegate516.smethod_0(new EventHandler(this.method_4), Delegate516.delegate516_0);
			if (this.timer_0 != null)
			{
				Delegate517.smethod_0(this.timer_0, new ElapsedEventHandler(this.QwpRlTrwi4), Delegate517.delegate517_0);
			}
			if (this.timer_1 != null)
			{
				Delegate517.smethod_0(this.timer_1, new ElapsedEventHandler(this.method_35), Delegate517.delegate517_0);
			}
			if (this.timer_2 != null)
			{
				Delegate517.smethod_0(this.timer_2, new ElapsedEventHandler(this.method_52), Delegate517.delegate517_0);
			}
			try
			{
				this.concurrentDictionary_6.Clear();
			}
			catch
			{
			}
			Delegate518.smethod_0(this, Delegate518.delegate518_0);
		}

		private void method_99(SlaveAccount slaveAccount_0)
		{
			IEnumerator enumerator = Delegate91.smethod_0(Delegate89.smethod_0(Delegate45.smethod_0(typeof(EnumMethod).TypeHandle, Delegate45.delegate45_0), Delegate89.delegate89_0), Delegate91.delegate91_0);
			try
			{
				while (Delegate38.smethod_0(enumerator, Delegate38.delegate38_0))
				{
					EnumMethod enumMethod = (EnumMethod)Delegate76.smethod_0(enumerator, Delegate76.delegate76_0);
					foreach (bool flag in new bool[]
					{
						default(bool),
						true
					})
					{
						long? num;
						if (slaveAccount_0 == null)
						{
							num = null;
						}
						else
						{
							Account account = Delegate200.smethod_0(slaveAccount_0, Delegate200.delegate200_0);
							num = ((account != null) ? new long?(Delegate231.smethod_0(account, Delegate231.delegate231_0)) : null);
						}
						Tuple<long?, EnumMethod, bool> tuple = Tuple.Create<long?, EnumMethod, bool>(num, enumMethod, flag);
						try
						{
							double num2;
							this.concurrentDictionary_6.TryRemove(tuple, out num2);
						}
						catch
						{
						}
					}
				}
			}
			finally
			{
				IDisposable disposable = enumerator as IDisposable;
				if (disposable != null)
				{
					Delegate39.smethod_0(disposable, Delegate39.delegate39_0);
				}
			}
		}

		private void method_100(object sender, DependencyPropertyChangedEventArgs e)
		{
			bool flag = (bool)Delegate519.smethod_0(ref e, Delegate519.delegate519_0);
			if (!this.bool_0 && flag)
			{
				NTWindow ntwindow = (NTWindow)Delegate280.smethod_0(this, Delegate280.delegate280_0);
				if (ntwindow == null)
				{
					return;
				}
				Delegate282.smethod_0(ntwindow, this.bool_0, Delegate282.delegate282_0);
				Delegate520.smethod_0(this, new DependencyPropertyChangedEventHandler(this.method_100), Delegate520.delegate520_0);
			}
		}

		public override void Startup(bool isNewWindow = false)
		{
			ReplikantoTabPage.<Startup>d__216 <Startup>d__;
			<Startup>d__.<>t__builder = Delegate40.smethod_0(Delegate40.delegate40_0);
			<Startup>d__.<>4__this = this;
			<Startup>d__.<>1__state = -1;
			<Startup>d__.<>t__builder.Start<ReplikantoTabPage.<Startup>d__216>(ref <Startup>d__);
		}

		private void method_101(object sender, RoutedEventArgs e)
		{
			ReplikantoTabPage.<>c__DisplayClass217_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass217_0();
			CS$<>8__locals1.replikantoTabPage_0 = this;
			CS$<>8__locals1.ntwindow_0 = (NTWindow)Delegate280.smethod_0(this, Delegate280.delegate280_0);
			if (CS$<>8__locals1.ntwindow_0 != null)
			{
				Delegate37.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(CS$<>8__locals1.method_0), Delegate37.delegate37_0);
			}
		}

		private void method_102(NTWindow ntwindow_0)
		{
			try
			{
				Delegate326.smethod_0(ntwindow_0, Delegate51.smethod_0(Resources.ReplikantoCaption, " - ", Delegate86.smethod_0(this.version_0, Delegate86.delegate86_0), Delegate51.delegate51_0), Delegate326.delegate326_0);
				if (!Delegate44.smethod_0((ntwindow_0 as ReplikantoWindow).CustomWindowTitle, Delegate44.delegate44_0))
				{
					Delegate326.smethod_0(ntwindow_0, Delegate51.smethod_0(Delegate521.smethod_0(ntwindow_0, Delegate521.delegate521_0), " - ", (ntwindow_0 as ReplikantoWindow).CustomWindowTitle, Delegate51.delegate51_0), Delegate326.delegate326_0);
				}
			}
			catch (Exception)
			{
			}
		}

		private bool method_103(Account account_2, SlaveAccount slaveAccount_0, Instrument instrument_2, Instrument instrument_3)
		{
			bool flag;
			if (!(flag = ReplikantoTabPage.leaderAccountsGuard_0.CanBeFollower(this.string_2, this.UniqueID, account_2, slaveAccount_0, instrument_2, instrument_3, this.ReplikantoProperties)))
			{
				NTMessageBox ntmessageBox = new NTMessageBox(Delegate32.smethod_0(Resources.LoopingNotice, Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe), Delegate32.delegate32_0), Delegate522.smethod_0(Delegate522.delegate522_0), MessageBoxButton.OK, MessageBoxImage.Exclamation);
				Delegate434.smethod_0(ntmessageBox, Delegate280.smethod_0(this, Delegate280.delegate280_0), Delegate434.delegate434_0);
				Delegate57.smethod_0(ntmessageBox, false, Delegate57.delegate57_0);
				Delegate58.smethod_0(ntmessageBox, Delegate58.delegate58_0);
				Delegate34.smethod_0(Delegate288.smethod_0(new string[]
				{
					"Replikanto: Account '",
					Delegate373.smethod_0(slaveAccount_0, Delegate373.AqggkfHrBe),
					"' from tab '",
					this.UniqueID,
					"' workspace '",
					this.string_2,
					"' cannot be a follower to prevent trade in looping"
				}, Delegate288.delegate288_0), 2, Delegate34.delegate34_0);
			}
			return flag;
		}

		private void method_104()
		{
			if (this.replikantoMode_0 == ReplikantoMode.INTERNET_MODE)
			{
				Delegate37.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(this.method_143), Delegate37.delegate37_0);
				return;
			}
			if (this.replikantoMode_0 == ReplikantoMode.LEADER_MODE && this.observableCollection_1.Count > 0)
			{
				Delegate37.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(this.method_144), Delegate37.delegate37_0);
			}
		}

		private void method_105()
		{
			if (this.replikantoMode_0 == ReplikantoMode.INTERNET_MODE)
			{
				Delegate37.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(this.method_145), Delegate37.delegate37_0);
			}
		}

		private void method_106(DisconnectionType disconnectionType_0)
		{
			bool flag = this.replikantoMode_0 == ReplikantoMode.LEADER_MODE && this.observableCollection_1.Count > 0;
			bool flag2 = this.replikantoMode_0 == ReplikantoMode.INTERNET_MODE;
			if (!flag && !flag2)
			{
				return;
			}
			if (this.replikantoMode_0 == ReplikantoMode.INTERNET_MODE)
			{
				Delegate37.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(this.method_146), Delegate37.delegate37_0);
			}
		}

		private void method_107(string string_4)
		{
			ReplikantoTabPage.<>c__DisplayClass224_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass224_0();
			CS$<>8__locals1.replikantoTabPage_0 = this;
			CS$<>8__locals1.string_0 = string_4;
			bool flag = this.replikantoMode_0 == ReplikantoMode.LEADER_MODE && this.observableCollection_1.Count > 0;
			bool flag2 = this.replikantoMode_0 == ReplikantoMode.INTERNET_MODE;
			if (!flag && !flag2)
			{
				return;
			}
			Delegate37.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(CS$<>8__locals1.method_0), Delegate37.delegate37_0);
		}

		private Task HdemHjgcgN()
		{
			ReplikantoTabPage.<RefreshNodeInfo>d__225 <RefreshNodeInfo>d__;
			<RefreshNodeInfo>d__.<>t__builder = Delegate425.smethod_0(Delegate425.delegate425_0);
			<RefreshNodeInfo>d__.<>4__this = this;
			<RefreshNodeInfo>d__.<>1__state = -1;
			<RefreshNodeInfo>d__.<>t__builder.Start<ReplikantoTabPage.<RefreshNodeInfo>d__225>(ref <RefreshNodeInfo>d__);
			return Delegate426.smethod_0(ref <RefreshNodeInfo>d__.<>t__builder, Delegate426.delegate426_0);
		}

		private void method_108(JObject jobject_0)
		{
			string text = null;
			uint num = 0U;
			if (!Delegate171.smethod_0((string)jobject_0["replikanto_id"], Delegate171.delegate171_0))
			{
				text = (string)jobject_0["replikanto_id"];
				try
				{
					num = (uint)jobject_0["credits"];
				}
				catch
				{
					num = 0U;
				}
				this.ReplikantoProperties.ReplikantoID = text;
				this.ReplikantoProperties.Credits = num;
				this.method_29(num);
			}
			if (!Delegate44.smethod_0((string)jobject_0["remote_node_chunk"], Delegate44.delegate44_0))
			{
				try
				{
					int num2 = (int)jobject_0["remote_node_chunk"];
					if (num2 > 0)
					{
						ReplikantoTabPage.int_5 = num2;
					}
				}
				catch
				{
				}
			}
		}

		protected override string GetHeaderPart(string variable)
		{
			uint num = <PrivateImplementationDetails>.ComputeStringHash(variable);
			if (num <= 1942357622U)
			{
				if (num > 1220017134U)
				{
					if (num != 1686558914U)
					{
						if (num != 1749162426U)
						{
							if (num != 1942357622U)
							{
								return variable;
							}
							if (!Delegate102.smethod_0(variable, "@PERIOD_ALL", Delegate102.delegate102_0))
							{
								return variable;
							}
							return variable;
						}
						else
						{
							if (Delegate102.smethod_0(variable, "@HOTLIST", Delegate102.delegate102_0))
							{
								return variable;
							}
							return variable;
						}
					}
					else if (!Delegate102.smethod_0(variable, "@INSTRUMENT_ALL", Delegate102.delegate102_0))
					{
						return variable;
					}
				}
				else if (num != 975127807U)
				{
					if (num != 1031006245U)
					{
						if (num != 1220017134U)
						{
							return variable;
						}
						if (!Delegate102.smethod_0(variable, "@PERIOD", Delegate102.delegate102_0))
						{
							return variable;
						}
						return variable;
					}
					else
					{
						if (!Delegate102.smethod_0(variable, "@ATM", Delegate102.delegate102_0))
						{
							return variable;
						}
						return variable;
					}
				}
				else
				{
					if (Delegate102.smethod_0(variable, "@FUNCTION", Delegate102.delegate102_0))
					{
						return variable;
					}
					return variable;
				}
			}
			else if (num <= 2254984574U)
			{
				if (num != 2054794370U)
				{
					if (num != 2235285802U)
					{
						if (num != 2254984574U)
						{
							return variable;
						}
						if (Delegate102.smethod_0(variable, "@DATASERIES", Delegate102.delegate102_0))
						{
							return variable;
						}
						return variable;
					}
					else
					{
						if (!Delegate102.smethod_0(variable, "@ACCOUNT", Delegate102.delegate102_0))
						{
							return variable;
						}
						if (this.Account != null)
						{
							return Delegate368.smethod_0(this.Account, Delegate368.delegate368_0);
						}
						if (this.replikantoMode_0 == ReplikantoMode.INTERNET_MODE)
						{
							return Delegate525.smethod_0(this.tbReplikantoID, Delegate525.delegate525_0);
						}
						if (this.replikantoMode_0 != ReplikantoMode.NETWORK_MODE)
						{
							return Delegate524.smethod_0(Delegate524.delegate524_0);
						}
						return Resources.NetworkReplikantoInfo;
					}
				}
				else if (!Delegate102.smethod_0(variable, "@INSTRUMENT", Delegate102.delegate102_0))
				{
					return variable;
				}
			}
			else
			{
				if (num != 2396732546U)
				{
					if (num != 3751941606U)
					{
						if (num != 3888991298U)
						{
							return variable;
						}
						if (!Delegate102.smethod_0(variable, "@INSTRUMENT_FULL", Delegate102.delegate102_0))
						{
							return variable;
						}
					}
					else
					{
						if (Delegate102.smethod_0(variable, "@DATASERIES_ALL", Delegate102.delegate102_0))
						{
							return variable;
						}
						return variable;
					}
				}
				else if (!Delegate102.smethod_0(variable, "@INSTRUMENT_FULL_ALL", Delegate102.delegate102_0))
				{
					return variable;
				}
				if (this.Instrument != null)
				{
					return Delegate327.smethod_0(this.Instrument, Delegate327.delegate327_0);
				}
				return Delegate523.smethod_0(Delegate523.delegate523_0);
			}
			if (this.Instrument == null)
			{
				return Delegate523.smethod_0(Delegate523.delegate523_0);
			}
			return Delegate348.smethod_0(Delegate357.smethod_0(this.Instrument, Delegate357.delegate357_0), Delegate348.delegate348_0);
		}

		private void method_109(object sender, MouseButtonEventArgs e)
		{
		}

		[Conditional("Debug")]
		private void method_110(string string_4)
		{
			ReplikantoTabPage.<>c__DisplayClass229_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass229_0();
			CS$<>8__locals1.replikantoTabPage_0 = this;
			CS$<>8__locals1.string_0 = string_4;
			Delegate37.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(CS$<>8__locals1.method_0), Delegate37.delegate37_0);
		}

		[Conditional("Debug")]
		private void method_111(string string_4)
		{
			ReplikantoTabPage.<>c__DisplayClass230_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass230_0();
			CS$<>8__locals1.replikantoTabPage_0 = this;
			CS$<>8__locals1.string_0 = string_4;
			Delegate37.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(CS$<>8__locals1.method_0), Delegate37.delegate37_0);
		}

		Dispatcher IAccountProvider.get_Dispatcher()
		{
			return Delegate274.smethod_0(this, Delegate274.delegate274_0);
		}

		Dispatcher IInstrumentProvider.get_Dispatcher()
		{
			return Delegate274.smethod_0(this, Delegate274.delegate274_0);
		}

		[CompilerGenerated]
		private void method_112(object sender, ExecutedRoutedEventArgs e)
		{
			SlaveAccount slaveAccount = (SlaveAccount)Delegate535.smethod_0(e, Delegate535.delegate535_0);
			if (slaveAccount != null)
			{
				FollowerAccountStatus status = slaveAccount.Status;
				slaveAccount.Status = ((slaveAccount.Status == FollowerAccountStatus.Checked || slaveAccount.Status == FollowerAccountStatus.OutOfSync) ? FollowerAccountStatus.Off : FollowerAccountStatus.Checked);
				if (slaveAccount.Status == FollowerAccountStatus.Checked)
				{
					if (this.method_103(this.Account, slaveAccount, this.Instrument, this.CrossOrderInstrument))
					{
						this.method_53();
					}
					else
					{
						slaveAccount.Status = FollowerAccountStatus.Off;
					}
				}
				this.method_46(slaveAccount);
				Delegate316.smethod_0(this.tbToggle, Resources.ToggleOff, Delegate316.delegate316_0);
				this.list_6.Clear();
			}
		}

		[CompilerGenerated]
		private void method_113(object sender, ExecutedRoutedEventArgs e)
		{
			SlaveAccount slaveAccount = (SlaveAccount)Delegate535.smethod_0(e, Delegate535.delegate535_0);
			if (slaveAccount != null)
			{
				slaveAccount.CrossOrder = !slaveAccount.CrossOrder;
				if (!this.method_103(this.Account, slaveAccount, this.Instrument, this.CrossOrderInstrument))
				{
					slaveAccount.Status = FollowerAccountStatus.Off;
				}
				else
				{
					this.method_53();
				}
				this.method_46(slaveAccount);
			}
		}

		[CompilerGenerated]
		private void method_114(object sender, ExecutedRoutedEventArgs e)
		{
			SlaveAccount slaveAccount = (SlaveAccount)Delegate535.smethod_0(e, Delegate535.delegate535_0);
			if (slaveAccount != null && !slaveAccount.MarketOnly)
			{
				slaveAccount.UseATM = !slaveAccount.UseATM;
				this.method_46(slaveAccount);
			}
		}

		[CompilerGenerated]
		private void method_115(object sender, ExecutedRoutedEventArgs e)
		{
			SlaveAccount slaveAccount = (SlaveAccount)Delegate535.smethod_0(e, Delegate535.delegate535_0);
			if (slaveAccount != null)
			{
				slaveAccount.MarketOnly = !slaveAccount.MarketOnly;
				this.method_46(slaveAccount);
			}
		}

		[CompilerGenerated]
		private void method_116(object sender, ExecutedRoutedEventArgs e)
		{
			Node node = (Node)Delegate535.smethod_0(e, Delegate535.delegate535_0);
			if (node != null)
			{
				node.Status = ((node.Status == NodeStatus.Online || node.Status == NodeStatus.Away) ? NodeStatus.Off : NodeStatus.Online);
				Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Node '{0}:{1}' from tab '{2}' workspace '{3}', Status = {4}", new object[] { node.Ip, node.Port, this.UniqueID, this.string_2, node.Status }, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
				Delegate316.smethod_0(this.tbNodeToggle, Resources.ToggleOff, Delegate316.delegate316_0);
				this.list_7.Clear();
				this.method_81(node, Delegate308.smethod_0(Delegate308.delegate308_0));
			}
		}

		[CompilerGenerated]
		private void method_117(object sender, ExecutedRoutedEventArgs e)
		{
			InternetNode internetNode = (InternetNode)Delegate535.smethod_0(e, Delegate535.delegate535_0);
			if (internetNode != null)
			{
				internetNode.Status = ((internetNode.Status == NodeStatus.Online || internetNode.Status == NodeStatus.Away) ? NodeStatus.Off : NodeStatus.Online);
				Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Remote Node '{0}' from tab '{1}' workspace '{2}', Status = {3}", new object[] { internetNode.ReplikantoId, this.UniqueID, this.string_2, internetNode.Status }, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
				Delegate316.smethod_0(this.tbNodeToggle, Resources.ToggleOff, Delegate316.delegate316_0);
				this.list_7.Clear();
				this.method_82(internetNode.ReplikantoId, Delegate308.smethod_0(Delegate308.delegate308_0));
			}
		}

		[CompilerGenerated]
		private void method_118(object sender, ExecutedRoutedEventArgs e)
		{
			SlaveAccount slaveAccount = (SlaveAccount)Delegate535.smethod_0(e, Delegate535.delegate535_0);
			if (slaveAccount != null)
			{
				Instrument instrument = ((!slaveAccount.CrossOrder || !this.isCrossOrderChecked) ? this.Instrument : this.CrossOrderInstrument);
				Delegate34.smethod_0(Delegate55.smethod_0("Replikanto: Flatten action invoked for follower account '{0}' instrument '{1}' from tab '{2}' workspace '{3}' Status = {4} Cross Order = {5}", new object[]
				{
					Delegate373.smethod_0(slaveAccount, Delegate373.AqggkfHrBe),
					Delegate327.smethod_0(instrument, Delegate327.delegate327_0),
					this.UniqueID,
					this.string_2,
					slaveAccount.Status,
					slaveAccount.CrossOrder
				}, Delegate55.delegate55_0), 1, Delegate34.delegate34_0);
				try
				{
					ReplikantoTabPage.<>c__DisplayClass81_0 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass81_0();
					CS$<>8__locals1.replikantoTabPage_0 = this;
					CS$<>8__locals1.button_0 = (Button)Delegate536.smethod_0(e, Delegate536.delegate536_0);
					Delegate435.smethod_0(CS$<>8__locals1.button_0, false, Delegate435.delegate435_0);
					Delegate25.smethod_0(ReplikantoTabPage.int_3, Delegate25.delegate25_0).ContinueWith<DispatcherOperation<bool>>(new Func<Task, DispatcherOperation<bool>>(CS$<>8__locals1.method_0));
				}
				catch
				{
				}
				this.Flatten(Delegate230.smethod_0(slaveAccount, Delegate230.delegate230_0), instrument);
				if (slaveAccount.Status == FollowerAccountStatus.Disarmed)
				{
					slaveAccount.Status = FollowerAccountStatus.Checked;
				}
			}
		}

		[CompilerGenerated]
		private void method_119(object sender, PropertyChangedEventArgs e)
		{
			if (Delegate102.smethod_0(Delegate278.smethod_0(e, Delegate278.delegate278_0), "NetworkPort", Delegate102.delegate102_0))
			{
				this.epBfwErgBr.Port = ((ReplikantoProperties)sender).NetworkPort;
			}
			if (Delegate102.smethod_0(Delegate278.smethod_0(e, Delegate278.delegate278_0), "NetworkAdapter", Delegate102.delegate102_0))
			{
				try
				{
					string text = ReplikantoTabPage.smethod_0(this.ReplikantoProperties.NetworkAdapter);
					if (!Delegate372.smethod_0(text, Delegate372.delegate372_0))
					{
						Delegate316.smethod_0(this.tbIp, text, Delegate316.delegate316_0);
					}
				}
				catch (Exception)
				{
				}
			}
		}

		[CompilerGenerated]
		private void method_120(string string_4, ReplikantoAccount replikantoAccount_0, Instrument instrument_2, Instrument instrument_3)
		{
			ReplikantoTabPage.<>c__DisplayClass81_1 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass81_1();
			CS$<>8__locals1.replikantoTabPage_0 = this;
			CS$<>8__locals1.instrument_0 = instrument_3;
			if (this.replikantoMode_0 == ReplikantoMode.NETWORK_MODE && this.Instrument == instrument_2)
			{
				if (!Delegate44.smethod_0(string_4, Delegate44.delegate44_0) && !Delegate44.smethod_0(this.ReplikantoProperties.LeaderReplikantoID, Delegate44.delegate44_0) && !Delegate300.smethod_0(Delegate237.smethod_0(string_4, Delegate237.delegate237_0), Delegate237.smethod_0(this.ReplikantoProperties.LeaderReplikantoID, Delegate237.delegate237_0), Delegate300.delegate300_0))
				{
					Delegate34.smethod_0(Delegate288.smethod_0(new string[]
					{
						"Replikanto: Instrument change received will be ignored because the Leader Replikanto ID does not match the ID ",
						Delegate237.smethod_0(this.ReplikantoProperties.LeaderReplikantoID, Delegate237.delegate237_0),
						" tab '",
						this.UniqueID,
						"' workspace '",
						this.string_2,
						"'"
					}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
					return;
				}
				if (replikantoAccount_0 != null && (!Delegate44.smethod_0(replikantoAccount_0.AccountName, Delegate44.delegate44_0) || !Delegate44.smethod_0(replikantoAccount_0.DisplayName, Delegate44.delegate44_0)) && !Delegate44.smethod_0(this.ReplikantoProperties.LeaderAccountName, Delegate44.delegate44_0) && !Delegate300.smethod_0(Delegate237.smethod_0(replikantoAccount_0.AccountName, Delegate237.delegate237_0), Delegate237.smethod_0(this.ReplikantoProperties.LeaderAccountName, Delegate237.delegate237_0), Delegate300.delegate300_0) && !Delegate300.smethod_0(Delegate237.smethod_0(replikantoAccount_0.DisplayName, Delegate237.delegate237_0), Delegate237.smethod_0(this.ReplikantoProperties.LeaderAccountName, Delegate237.delegate237_0), Delegate300.delegate300_0))
				{
					Delegate34.smethod_0(Delegate288.smethod_0(new string[]
					{
						"Replikanto: Instrument change received will be ignored because the Leader account name does not match the account ",
						this.ReplikantoProperties.LeaderAccountName,
						" tab '",
						this.UniqueID,
						"' workspace '",
						this.string_2,
						"'"
					}, Delegate288.delegate288_0), 1, Delegate34.delegate34_0);
					return;
				}
				Delegate37.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(CS$<>8__locals1.method_0), Delegate37.delegate37_0);
			}
		}

		[CompilerGenerated]
		private bool method_121()
		{
			Delegate435.smethod_0(this.mnuServerNode, false, Delegate435.delegate435_0);
			return false;
		}

		[CompilerGenerated]
		private bool method_122()
		{
			Delegate253.smethod_0(this.mnuShowAccountNumbers, false, Delegate253.delegate253_0);
			return false;
		}

		[CompilerGenerated]
		private void method_123()
		{
			ReplikantoWindow replikantoWindow = (ReplikantoWindow)Delegate280.smethod_0(this, Delegate280.delegate280_0);
			replikantoWindow.CustomWindowTitle = this.ReplikantoProperties.WindowTitle;
			this.method_102(replikantoWindow);
		}

		[CompilerGenerated]
		private Brush method_124()
		{
			Brush brush;
			Delegate537.smethod_0(this.bInternetNodes, brush = this.brush_0, Delegate537.delegate537_0);
			return brush;
		}

		[CompilerGenerated]
		private Brush method_125()
		{
			Brush brush;
			Delegate537.smethod_0(this.bNodes, brush = this.brush_0, Delegate537.delegate537_0);
			return brush;
		}

		[CompilerGenerated]
		private bool method_126(ConnectionStatus connectionStatus_0)
		{
			return connectionStatus_0 == Delegate369.smethod_0(this.account_0, Delegate369.delegate369_0);
		}

		[CompilerGenerated]
		private void method_127()
		{
			Delegate316.smethod_0(this.tbNodeMode, Resources.ClickToTurnItOff, Delegate316.delegate316_0);
		}

		[CompilerGenerated]
		private void method_128(object object_3, bool bool_5)
		{
			if (object_3 != null)
			{
				ReplikantoProperties replikantoProperties = (ReplikantoProperties)object_3;
				this.ReplikantoProperties.Fill(replikantoProperties);
			}
		}

		[CompilerGenerated]
		private bool method_129()
		{
			return Delegate257.smethod_0(this.menuItem_2, Delegate257.delegate257_0);
		}

		[CompilerGenerated]
		private bool method_130()
		{
			return Delegate257.smethod_0(this.menuItem_3, Delegate257.delegate257_0);
		}

		[CompilerGenerated]
		private void method_131()
		{
			Delegate271.smethod_0(this.grdSlaveAccounts, null, Delegate271.delegate271_0);
			Delegate271.smethod_0(this.grdSlaveAccounts, this.bindingList_0, Delegate271.delegate271_0);
		}

		[CompilerGenerated]
		private void method_132()
		{
			Delegate537.smethod_0(this.bInternetNodes, Delegate538.smethod_0(Delegate538.delegate538_0), Delegate537.delegate537_0);
		}

		[CompilerGenerated]
		private void method_133()
		{
			Delegate537.smethod_0(this.bInternetNodes, this.brush_0, Delegate537.delegate537_0);
		}

		[CompilerGenerated]
		private void method_134()
		{
			Delegate537.smethod_0(this.bNodes, Delegate538.smethod_0(Delegate538.delegate538_0), Delegate537.delegate537_0);
		}

		[CompilerGenerated]
		private void method_135()
		{
			Delegate537.smethod_0(this.bNodes, this.brush_0, Delegate537.delegate537_0);
		}

		[CompilerGenerated]
		private bool method_136()
		{
			return Delegate257.smethod_0(this.menuItem_2, Delegate257.delegate257_0);
		}

		[CompilerGenerated]
		private bool method_137()
		{
			return Delegate257.smethod_0(this.menuItem_3, Delegate257.delegate257_0);
		}

		[CompilerGenerated]
		private DispatcherOperation method_138(Task task_0)
		{
			return Delegate37.smethod_0(Delegate274.smethod_0(this, Delegate274.delegate274_0), new Action(this.method_139), Delegate37.delegate37_0);
		}

		[CompilerGenerated]
		private void method_139()
		{
			Delegate435.smethod_0(this.btnFlatAll, true, Delegate435.delegate435_0);
			Delegate438.smethod_0(this.btnFlatAll, Resources.FlatAll, Delegate438.delegate438_0);
			try
			{
				DispatcherTimer dispatcherTimer = this.dispatcherTimer_0;
				if (dispatcherTimer != null)
				{
					Delegate539.smethod_0(dispatcherTimer, Delegate539.delegate539_0);
				}
			}
			catch
			{
			}
		}

		[CompilerGenerated]
		private void method_140(object sender, EventArgs e)
		{
			this.timeSpan_0 = Delegate540.smethod_0(ref this.timeSpan_0, Delegate233.smethod_0(-1.0, Delegate233.delegate233_0), Delegate540.delegate540_0);
			if (!Delegate541.smethod_0(this.btnFlatAll, Delegate541.delegate541_0))
			{
				Delegate438.smethod_0(this.btnFlatAll, Delegate32.smethod_0(Resources.Wait, Delegate542.smethod_0(ref this.timeSpan_0, Delegate542.delegate542_0), Delegate32.delegate32_0), Delegate438.delegate438_0);
			}
		}

		[CompilerGenerated]
		private void method_141()
		{
			this.hLdmCaifov(this.Account, true);
			if (this.Account != null && this.Instrument != null)
			{
				ObservableCollection<Node> observableCollection = this.observableCollection_0;
				if (observableCollection != null && observableCollection.Count > 0)
				{
					ObservableCollection<Node> observableCollection2 = this.observableCollection_0;
					bool flag;
					if (observableCollection2 == null)
					{
						flag = false;
					}
					else
					{
						flag = observableCollection2.Any(new Func<Node, bool>(ReplikantoTabPage.<>c.<>c_0.method_28));
					}
					if (flag)
					{
						goto IL_00BA;
					}
				}
				ObservableCollection<InternetNode> observableCollection3 = this.observableCollection_1;
				if (observableCollection3 == null || observableCollection3.Count <= 0)
				{
					return;
				}
				ObservableCollection<InternetNode> observableCollection4 = this.observableCollection_1;
				bool flag2;
				if (observableCollection4 != null)
				{
					flag2 = observableCollection4.Any(new Func<InternetNode, bool>(ReplikantoTabPage.<>c.<>c_0.method_29));
				}
				else
				{
					flag2 = false;
				}
				if (!flag2)
				{
					return;
				}
				IL_00BA:
				ReplikantoTabPage.<>c__DisplayClass173_1 CS$<>8__locals1 = new ReplikantoTabPage.<>c__DisplayClass173_1();
				CS$<>8__locals1.replikantoTabPage_0 = this;
				CS$<>8__locals1.replikantoOrder_0 = ReplikantoOrder.FlatOrder(this.Account, this.Instrument, "0");
				Delegate34.smethod_0("Replikanto: Flatten All action sends to all nodes", 1, Delegate34.delegate34_0);
				Delegate274.smethod_0(this, Delegate274.delegate274_0).InvokeAsync<Task>(new Func<Task>(CS$<>8__locals1.method_0));
			}
		}

		[CompilerGenerated]
		private bool method_142()
		{
			return Delegate257.smethod_0(this.mnuShowAccountNumbers, Delegate257.delegate257_0);
		}

		[CompilerGenerated]
		private void method_143()
		{
			if (Delegate503.smethod_0(this.cbInternetMode, Delegate503.delegate503_0).Value)
			{
				Delegate316.smethod_0(this.tbInternetMode, Resources.ClickToTurnItOff, Delegate316.delegate316_0);
			}
			Delegate435.smethod_0(this.cbInternetMode, true, Delegate435.delegate435_0);
			if (this.ntmessageBox_0 != null)
			{
				Delegate543.smethod_0(this.ntmessageBox_0, Delegate543.delegate543_0);
			}
		}

		[CompilerGenerated]
		private void method_144()
		{
			if (this.ntmessageBox_0 != null)
			{
				Delegate543.smethod_0(this.ntmessageBox_0, Delegate543.delegate543_0);
			}
		}

		[CompilerGenerated]
		private void method_145()
		{
			if (Delegate503.smethod_0(this.cbInternetMode, Delegate503.delegate503_0).Value)
			{
				Delegate316.smethod_0(this.tbInternetMode, Resources.Connecting, Delegate316.delegate316_0);
			}
			Delegate435.smethod_0(this.cbInternetMode, false, Delegate435.delegate435_0);
		}

		[CompilerGenerated]
		private void method_146()
		{
			Delegate316.smethod_0(this.tbInternetMode, Resources.ClickToTurnItOn, Delegate316.delegate316_0);
			Delegate435.smethod_0(this.cbInternetMode, true, Delegate435.delegate435_0);
		}

		internal static void smethod_3()
		{
		}

		internal static void smethod_4()
		{
		}

		internal static object smethod_5(int int_6)
		{
			return Class10.smethod_17(int_6);
		}

		internal static object smethod_6(object object_3)
		{
			return object_3.TabName;
		}

		internal static uint smethod_7(object object_3)
		{
			return object_3.NetworkPort;
		}

		internal static object smethod_8(object object_3)
		{
			return object_3.EmailSubject;
		}

		internal static object smethod_9()
		{
			return Resources.EmailSubjectExample;
		}

		internal static void smethod_10(object object_3, object object_4)
		{
			object_3.EmailSubject = object_4;
		}

		internal static object smethod_11()
		{
			return Resources.CrossOrder;
		}

		internal static object smethod_12()
		{
			return Resources.CrossOrderTooltip;
		}

		internal static object smethod_13()
		{
			return Resources.String_0;
		}

		internal static object smethod_14()
		{
			return Resources.Disarm;
		}

		internal static object smethod_15()
		{
			return Resources.DisarmTooltip;
		}

		internal static object smethod_16()
		{
			return Resources.HideNodes;
		}

		internal static object smethod_17()
		{
			return Resources.HideNodesTooltip;
		}

		internal static object smethod_18()
		{
			return Resources.ServerNodeTooltip;
		}

		internal static object smethod_19()
		{
			return Resources.InternetNode;
		}

		internal static object smethod_20()
		{
			return Resources.InternetNodeTooltip;
		}

		internal static object smethod_21()
		{
			return Resources.RefreshCreditsTooltip;
		}

		internal static object smethod_22()
		{
			return Resources.MyReplikantoIDTooltip;
		}

		internal static object smethod_23()
		{
			return Resources.MyMachineID;
		}

		internal static object smethod_24()
		{
			return Resources.String_1;
		}

		internal static object smethod_25(object object_3, object object_4, object object_5)
		{
			return object_3.Invoke(object_4, object_5);
		}

		internal static void smethod_26(object object_3, object object_4)
		{
			object_3.Connected += object_4;
		}

		internal static void smethod_27(object object_3, object object_4)
		{
			object_3.Connecting += object_4;
		}

		internal static object smethod_28()
		{
			return NetworkFactory.Create();
		}

		internal static void smethod_29(object object_3, uint value)
		{
			object_3.Port = value;
		}

		internal static object smethod_30(object object_3)
		{
			return ReplikantoOrder.Parse(object_3);
		}

		internal static void smethod_31(object object_3, FollowerAccountStatus value)
		{
			object_3.Status = value;
		}

		internal static bool smethod_32(object object_3)
		{
			return object_3.ConnectionColumn;
		}

		internal static bool smethod_33(object object_3)
		{
			return object_3.SideColumn;
		}

		internal static bool smethod_34(object object_3)
		{
			return object_3.QuantityColumn;
		}

		internal static bool smethod_35(object object_3)
		{
			return object_3.AveragePriceColumn;
		}

		internal static bool smethod_36(object object_3)
		{
			return object_3.DescriptionNodeColumn;
		}

		internal static bool smethod_37(object object_3)
		{
			return object_3.DescriptionInternetNodeColumn;
		}

		internal static bool smethod_38(object object_3)
		{
			return object_3.Boolean_0;
		}

		internal static bool smethod_39(object object_3)
		{
			return object_3.CashValueColumn;
		}

		internal static object smethod_40(object object_3)
		{
			return object_3.LeaderReplikantoID;
		}

		internal static object smethod_41(object object_3)
		{
			return object_3.LeaderAccountName;
		}

		internal static int smethod_42(object object_3)
		{
			return object_3.Count;
		}

		internal static NodeStatus smethod_43(object object_3)
		{
			return object_3.Status;
		}

		internal static void smethod_44(object object_3, NodeStatus value)
		{
			object_3.Status = value;
		}

		internal static bool smethod_45(object object_3, object object_4)
		{
			return object_3.ContainsKey(object_4);
		}

		internal static object smethod_46(object object_3)
		{
			return (string)object_3;
		}

		internal static object smethod_47(object object_3, object object_4)
		{
			return object_3[object_4];
		}

		internal static object smethod_48(object object_3)
		{
			return object_3.ToStringSimple();
		}

		internal static void smethod_49(object object_3, object object_4)
		{
			object_3.ReplikantoAccount = object_4;
		}

		internal static object smethod_50(object object_3)
		{
			return object_3.AccountName;
		}

		internal static object smethod_51(object object_3)
		{
			return object_3.DisplayName;
		}

		internal static long smethod_52(object object_3)
		{
			return object_3.OriginalId;
		}

		internal static OrderState smethod_53(object object_3)
		{
			return object_3.OrderState;
		}

		internal static uint smethod_54(object object_3)
		{
			return (uint)object_3;
		}

		internal static NodeStatus smethod_55(object object_3)
		{
			return object_3.Status;
		}

		internal static void smethod_56(object object_3, NodeStatus value)
		{
			object_3.Status = value;
		}

		internal static uint smethod_57(object object_3)
		{
			return object_3.Credits;
		}

		internal static void smethod_58(object object_3, uint value)
		{
			object_3.Credits = value;
		}

		internal static object smethod_59(object object_3)
		{
			return object_3.Instrument;
		}

		internal static object smethod_60()
		{
			return Resources.AddOnHeader;
		}

		internal static void smethod_61(object object_3, object object_4)
		{
			object_3.Fill(object_4);
		}

		internal static FollowerAccountStatus smethod_62(object object_3)
		{
			return object_3.Status;
		}

		internal static bool smethod_63(object object_3)
		{
			return object_3.CrossOrder;
		}

		internal static int smethod_64(object object_3)
		{
			return object_3.Count;
		}

		internal static uint smethod_65(object object_3)
		{
			return object_3.CreditAlert;
		}

		internal static void smethod_66(object object_3, object object_4, object object_5, object object_6, object object_7, object object_8, object object_9)
		{
			object_3.ChangeLeaderInstrument(object_4, object_5, object_6, object_7, object_8, object_9);
		}

		internal static void smethod_67(object object_3, double f)
		{
			object_3.SetFactorAvailableEquity(f);
		}

		internal static void smethod_68(object object_3, double f)
		{
			object_3.SetFactorNetLiq(f);
		}

		internal static bool smethod_69(object object_3, object object_4)
		{
			return object_3.IsTerminal(object_4);
		}

		internal static FollowerAccountStatus smethod_70(object object_3)
		{
			return object_3.Status;
		}

		internal static bool smethod_71(object object_3)
		{
			return object_3.CrossOrder;
		}

		internal static void smethod_72(object object_3, bool value)
		{
			object_3.CrossOrder = value;
		}

		internal static bool smethod_73(object object_3)
		{
			return object_3.UseATM;
		}

		internal static void smethod_74(object object_3, bool value)
		{
			object_3.MarketOnly = value;
		}

		internal static double smethod_75(object object_3)
		{
			return object_3.PctField;
		}

		internal static void smethod_76(object object_3, double value)
		{
			object_3.PctField = value;
		}

		internal static double smethod_77(object object_3)
		{
			return object_3.Ratio;
		}

		internal static void smethod_78(object object_3, double value)
		{
			object_3.Ratio = value;
		}

		internal static void smethod_79(object object_3, ushort value)
		{
			object_3.PreAllocation = value;
		}

		internal static void smethod_80(object object_3, double value)
		{
			object_3.Ratio = value;
		}

		internal static void smethod_81(object object_3, FollowerAccountStatus value)
		{
			object_3.Status = value;
		}

		internal static void smethod_82(object object_3, bool value)
		{
			object_3.CrossOrder = value;
		}

		internal static void smethod_83(object object_3, bool value)
		{
			object_3.UseATM = value;
		}

		internal static void smethod_84(object object_3, bool value)
		{
			object_3.MarketOnly = value;
		}

		internal static void smethod_85(object object_3, ushort value)
		{
			object_3.PreAllocation = value;
		}

		internal static void smethod_86(object object_3, double value)
		{
			object_3.PctField = value;
		}

		internal static ushort smethod_87(object object_3)
		{
			return object_3.PreAllocation;
		}

		internal static bool smethod_88(object object_3)
		{
			return object_3.UseATM;
		}

		internal static bool smethod_89(object object_3)
		{
			return object_3.MarketOnly;
		}

		internal static ushort smethod_90(object object_3)
		{
			return object_3.PreAllocation;
		}

		internal static double smethod_91(object object_3)
		{
			return object_3.PctField;
		}

		internal static int smethod_92(object object_3)
		{
			return object_3.Quantity;
		}

		internal static OrderType smethod_93(object object_3)
		{
			return object_3.OrderType;
		}

		internal static double smethod_94(object object_3)
		{
			return object_3.LimitPrice;
		}

		internal static double smethod_95(object object_3)
		{
			return object_3.FactorAvailableEquity;
		}

		internal static double smethod_96(object object_3)
		{
			return object_3.FactorNetLiq;
		}

		internal static uint smethod_97(object object_3)
		{
			return object_3.OffSet;
		}

		internal static double smethod_98(object object_3)
		{
			return object_3.Ratio;
		}

		internal static bool smethod_99(object object_3)
		{
			return object_3.IsFromExecution;
		}

		internal static int smethod_100(object object_3)
		{
			return object_3.Filled;
		}

		internal static int smethod_101(object object_3)
		{
			return object_3.ExecutionQuantity;
		}

		internal static object smethod_102(object object_3)
		{
			return ReplikantoOrder.Parse(object_3);
		}

		internal static void smethod_103(object object_3, bool value)
		{
			object_3.IsLastExit = value;
		}

		internal static void smethod_104(object object_3, bool value)
		{
			object_3.IsEntry = value;
		}

		internal static void smethod_105(object object_3, object object_4)
		{
			object_3.OrderStateName = object_4;
		}

		internal static int smethod_106(object object_3)
		{
			return object_3.Count;
		}

		internal static object smethod_107(object object_3)
		{
			return ReplikantoOrder.Parse(object_3);
		}

		internal static int smethod_108(object object_3)
		{
			return object_3.Count;
		}

		internal static int smethod_109(object object_3)
		{
			return object_3.Count;
		}

		internal static object smethod_110(object object_3)
		{
			return object_3.ReplikantoAccount;
		}

		internal static long smethod_111(object object_3)
		{
			return object_3.WebStrategyId;
		}

		internal static object smethod_112(object object_3, int i)
		{
			return object_3.GetStopOrder(i);
		}

		internal static long smethod_113(object object_3)
		{
			return object_3.Id;
		}

		internal static object smethod_114(object object_3)
		{
			return object_3.OrderId;
		}

		internal static bool smethod_115(object object_3)
		{
			return CompositeID.IsEmpty(object_3);
		}

		internal static int smethod_116(object object_3, object object_4)
		{
			return object_3.GetBracketIndex(object_4);
		}

		internal static void smethod_117(object object_3, bool value)
		{
			object_3.SuppressCancel = value;
		}

		internal static int smethod_118(object object_3)
		{
			return object_3.WebStrategyOrderIndex;
		}

		internal static object smethod_119(object object_3)
		{
			return object_3.Name;
		}

		internal static void smethod_120(object object_3, object object_4)
		{
			object_3.Name = object_4;
		}

		internal static bool smethod_121(object object_3)
		{
			return object_3.SuppressCancel;
		}

		internal static bool smethod_122(object object_3)
		{
			return object_3.SuppressChange;
		}

		internal static bool smethod_123(object object_3)
		{
			return object_3.HasOpositeFilled;
		}

		internal static bool smethod_124(object object_3)
		{
			return object_3.HasOco();
		}

		internal static object smethod_125(object object_3)
		{
			return object_3.Oco;
		}

		internal static void smethod_126(object object_3, bool value)
		{
			object_3.HasOpositeFilled = value;
		}

		internal static object smethod_127(object object_3)
		{
			return object_3.Id;
		}

		internal static bool smethod_128(object object_3)
		{
			return object_3.StealthMode;
		}

		internal static object smethod_129(object object_3)
		{
			return object_3.ToArray();
		}

		internal static object smethod_130(object object_3)
		{
			return ReplikantoOrder.CreatePartialObject(object_3);
		}

		internal static bool smethod_131(object object_3)
		{
			return object_3.IsLimit;
		}

		internal static bool smethod_132(object object_3)
		{
			return object_3.IsEntry;
		}

		internal static bool smethod_133(object object_3)
		{
			return object_3.IsStopMarket;
		}

		internal static bool smethod_134(object object_3)
		{
			return object_3.IsStopLimit;
		}

		internal static bool smethod_135(object object_3)
		{
			return object_3.IsSimulatedStop;
		}

		internal static bool smethod_136(object object_3)
		{
			return object_3.OnlyActiveWokspace;
		}

		internal static int smethod_137(object object_3)
		{
			return object_3.Count;
		}

		internal static object smethod_138()
		{
			return Resources.OnlyActiveWokspace;
		}

		internal static object smethod_139()
		{
			return Resources.EnumMethod_PctChange;
		}

		internal static object smethod_140(object object_3)
		{
			return object_3.Account;
		}

		internal static double smethod_141(object object_3)
		{
			return object_3.StopPrice;
		}

		internal static DateTime smethod_142(object object_3)
		{
			return object_3.Time;
		}

		internal static object smethod_143(object object_3)
		{
			return object_3.StrategyName;
		}

		internal static bool smethod_144(object object_3)
		{
			return object_3.ScalperTicketIntegration;
		}

		internal static object smethod_145()
		{
			return Resources.FlatAllConfirmation;
		}

		internal static object smethod_146()
		{
			return Resources.Wait;
		}

		internal static long smethod_147(object object_3)
		{
			return object_3.StrategyId;
		}

		internal static int smethod_148(object object_3)
		{
			return object_3.StrategyOrderIndex;
		}

		internal static object smethod_149(object object_3)
		{
			return object_3.GetCompositeID();
		}

		internal static DateTime smethod_150(object object_3)
		{
			return object_3.Time;
		}

		internal static object smethod_151()
		{
			return Resources.LoopPreventionPerformed;
		}

		internal static ScalperTicketOrderType smethod_152(object object_3)
		{
			return object_3.ScalperTicketOrderType;
		}

		internal static object smethod_153(object object_3)
		{
			return object_3.StrategyBase;
		}

		internal static OrderEntry smethod_154(object object_3)
		{
			return object_3.OrderEntry;
		}

		internal static TimeInForce smethod_155(object object_3)
		{
			return object_3.TimeInForce;
		}

		internal static bool smethod_156(object object_3)
		{
			return object_3.BlockCopy;
		}

		internal static DateTime smethod_157(object object_3)
		{
			return object_3.Gtd;
		}

		internal static int smethod_158(object object_3)
		{
			return ((ICollection<OrderEventArgs>)object_3).Count;
		}

		internal static void smethod_159(object object_3, object object_4)
		{
			object_3.Name = object_4;
		}

		internal static bool smethod_160(object object_3)
		{
			return object_3.IsLastExit;
		}

		internal static int smethod_161(object object_3)
		{
			return object_3.Count;
		}

		internal static object smethod_162()
		{
			return Resources.NoCreditMessage;
		}

		internal static object smethod_163(object object_3)
		{
			return object_3.TifName;
		}

		internal static object smethod_164(object object_3)
		{
			return object_3.OrderStateName;
		}

		internal static DateTime smethod_165(object object_3)
		{
			return object_3.StatementDate;
		}

		internal static object smethod_166(object object_3)
		{
			return object_3.StrategyOrders;
		}

		internal static long smethod_167(object object_3)
		{
			return object_3.InitialEntryOrder;
		}

		internal static object smethod_168(object object_3)
		{
			return object_3.OrderTypeName;
		}

		internal static MarketPosition smethod_169(object object_3)
		{
			return object_3.MarketPosition;
		}

		internal static object smethod_170(object object_3)
		{
			return object_3.LeaderPosition;
		}

		internal static int smethod_171(object object_3)
		{
			return object_3.Quantity;
		}

		internal static double smethod_172(object object_3)
		{
			return object_3.AveragePrice;
		}

		internal static OrderState smethod_173(object object_3)
		{
			return object_3.OrderState;
		}

		internal static object smethod_174(object object_3)
		{
			return object_3.InstrumentFullName;
		}

		internal static OrderAction smethod_175(object object_3)
		{
			return object_3.OrderAction;
		}

		internal static int smethod_176(object object_3)
		{
			return object_3.Quantity;
		}

		internal static object smethod_177()
		{
			return Resources.ToggleOff;
		}

		internal static void smethod_178(object object_3)
		{
			object_3.Clear();
		}

		internal static object smethod_179(object object_3)
		{
			return object_3.Ip;
		}

		internal static int smethod_180(object object_3)
		{
			return object_3.Port;
		}

		internal static object smethod_181(object object_3)
		{
			return object_3.ReplikantoId;
		}

		internal static object smethod_182()
		{
			return Resources.ToggleOn;
		}

		internal static void smethod_183(object object_3, bool value)
		{
			object_3.ShowAccountNumber = value;
		}

		internal static void smethod_184(object object_3, bool value)
		{
			object_3.UseATM = value;
		}

		internal static void smethod_185(object object_3, object object_4)
		{
			object_3.Ip = object_4;
		}

		internal static void smethod_186(object object_3, int value)
		{
			object_3.Port = value;
		}

		internal static void smethod_187(object object_3, object object_4)
		{
			object_3.Description = object_4;
		}

		internal static void smethod_188(object object_3, object object_4, object object_5, object object_6, object object_7)
		{
			object_3.ChangeLeaderWorkspace(object_4, object_5, object_6, object_7);
		}

		internal static bool smethod_189(object object_3, object object_4)
		{
			return object_3.Equals(object_4);
		}

		internal static object smethod_190(object object_3)
		{
			return object_3.Description;
		}

		internal static void smethod_191(object object_3, object object_4, object object_5, object object_6)
		{
			object_3.Remove(object_4, object_5, object_6);
		}

		internal static int smethod_192(object object_3)
		{
			return object_3.Count;
		}

		internal static object smethod_193(object object_3, Formatting formatting_0)
		{
			return JsonConvert.SerializeObject(object_3, formatting_0);
		}

		internal static void smethod_194(object object_3)
		{
			object_3.Clear();
		}

		internal static int smethod_195(object object_3)
		{
			return object_3.Count;
		}

		internal static object smethod_196(object object_3, Formatting formatting_0, object object_4)
		{
			return JsonConvert.SerializeObject(object_3, formatting_0, object_4);
		}

		internal static void smethod_197(object object_3)
		{
			object_3.Clear();
		}

		internal static int smethod_198(object object_3)
		{
			return object_3.Count;
		}

		internal static object smethod_199(object object_3, object object_4)
		{
			return JsonConvert.SerializeObject(object_3, object_4);
		}

		internal static void smethod_200(object object_3)
		{
			object_3.Clear();
		}

		internal static int smethod_201(object object_3)
		{
			return object_3.Count;
		}

		internal static object smethod_202(object object_3)
		{
			return object_3.StopOrders;
		}

		internal static object smethod_203(object object_3)
		{
			return object_3.TargetOrders;
		}

		internal static void smethod_204(object object_3)
		{
			object_3.Clear();
		}

		internal static void smethod_205(object object_3)
		{
			object_3.Clear();
		}

		internal static void smethod_206(object object_3)
		{
			object_3.Clear();
		}

		internal static void smethod_207(object object_3, object object_4)
		{
			object_3.Connected -= object_4;
		}

		internal static void smethod_208(object object_3, object object_4)
		{
			object_3.Connecting -= object_4;
		}

		internal static void smethod_209(object object_3)
		{
			object_3.Clear();
		}

		internal static void smethod_210(object object_3)
		{
			object_3.Clear();
		}

		internal static void smethod_211(object object_3)
		{
			object_3.Clear();
		}

		internal static object smethod_212()
		{
			return Resources.ReplikantoCaption;
		}

		internal static object smethod_213(object object_3)
		{
			return object_3.CustomWindowTitle;
		}

		internal static object smethod_214()
		{
			return Resources.LoopingNotice;
		}

		internal static void smethod_215(object object_3, object object_4)
		{
			object_3.ReplikantoID = object_4;
		}

		internal static object smethod_216()
		{
			return Resources.NetworkReplikantoInfo;
		}

		internal static void smethod_217()
		{
		}

		internal static object smethod_218()
		{
			return LeaderAccountsGuard.GetInstance();
		}

		internal static object smethod_219(object object_3)
		{
			return object_3.NetworkAdapter;
		}

		internal static object smethod_220(object object_3)
		{
			return ReplikantoTabPage.smethod_0(object_3);
		}

		internal static void smethod_221(object object_3, object object_4)
		{
			object_3.CustomWindowTitle = object_4;
		}

		internal static object smethod_222()
		{
			return Resources.ClickToTurnItOff;
		}

		internal static object smethod_223()
		{
			return Resources.FlatAll;
		}

		internal static int smethod_224(object object_3)
		{
			return object_3.Count;
		}

		internal static int smethod_225(object object_3)
		{
			return object_3.Count;
		}

		internal static object smethod_226()
		{
			return Resources.Connecting;
		}

		internal static object smethod_227()
		{
			return Resources.ClickToTurnItOn;
		}

		private static LeaderAccountsGuard leaderAccountsGuard_0 = LeaderAccountsGuard.GetInstance();

		[CompilerGenerated]
		private ReplikantoProperties replikantoProperties_0;

		private bool bool_0;

		private readonly CultureInfo cultureInfo_0 = Delegate238.smethod_0("en-US", Delegate238.delegate238_0);

		[CompilerGenerated]
		private int int_0;

		private readonly MenuItem menuItem_0;

		private readonly MenuItem menuItem_1;

		private readonly MenuItem menuItem_2;

		private readonly MenuItem menuItem_3;

		private readonly MenuItem menuItem_4;

		private readonly MenuItem menuItem_5;

		public readonly MenuItem mnuServerNode;

		private readonly MenuItem menuItem_6;

		private readonly MenuItem menuItem_7;

		private readonly MenuItem menuItem_8;

		private readonly MenuItem menuItem_9;

		private readonly MenuItem menuItem_10;

		private readonly MenuItem menuItem_11;

		private readonly MenuItem menuItem_12;

		private readonly MenuItem menuItem_13;

		private readonly MenuItem menuItem_14;

		[CompilerGenerated]
		private string string_0;

		[CompilerGenerated]
		private string string_1;

		private BindingList<SlaveAccount> bindingList_0;

		private ConcurrentDictionary<string, SlaveAccountSavedStatus> concurrentDictionary_0;

		private ReplikantoCrossOrderRelationship replikantoCrossOrderRelationship_0;

		private ObservableCollection<Node> observableCollection_0;

		private ObservableCollection<InternetNode> observableCollection_1;

		private readonly Collection<string> collection_0 = new Collection<string>();

		private OrderState[] orderState_0 = new OrderState[] { 7 };

		private OrderState[] orderState_1;

		private readonly ConcurrentDictionary<Tuple<string, bool>, LinkedList<ReplikantoOrder>> concurrentDictionary_1;

		private readonly object object_0;

		private readonly object object_1;

		private List<Tuple<string, long, DateTime, OrderState>> list_0;

		private readonly List<ReplikantoOrder> list_1;

		private static readonly object object_2 = new object();

		private readonly ConcurrentDictionary<CompositeID, List<CompositeID>> concurrentDictionary_2;

		private readonly ConcurrentDictionary<Tuple<long, long>, AtmStrategy> concurrentDictionary_3;

		private readonly ConcurrentDictionary<string, string> concurrentDictionary_4;

		private ConcurrentDictionary<long, ServerStrategy> concurrentDictionary_5;

		private readonly ConcurrentDictionary<Tuple<long?, EnumMethod, bool>, double> concurrentDictionary_6;

		private readonly List<Order> list_2;

		private readonly List<Order> list_3;

		private readonly List<Execution> list_4;

		private static readonly List<long> list_5 = new List<long>();

		private readonly HashSet<ulong> hashSet_0;

		private readonly List<string> list_6;

		private readonly List<string> list_7;

		private readonly Timer timer_0;

		private readonly Timer timer_1;

		private readonly Timer timer_2;

		private Brush brush_0;

		private ReplikantoMode replikantoMode_0;

		private CommunicatorBroker communicatorBroker_0;

		private NetworkBroker epBfwErgBr;

		private string string_2;

		internal bool isCrossOrderChecked;

		internal bool isHideNodesChecked;

		private bool bool_1;

		private Version version_0;

		private static readonly int int_1 = 48;

		private static int int_2 = 3000;

		private static int int_3 = 2000;

		private static readonly int int_4 = 50;

		private static int int_5 = 25;

		private static string string_3 = "Close";

		private DispatcherTimer dispatcherTimer_0;

		private TimeSpan timeSpan_0;

		private bool bool_2;

		private Account account_0;

		private Account account_1;

		private Instrument instrument_0;

		[CompilerGenerated]
		private Instrument instrument_1;

		private EnumMethod enumMethod_0;

		[CompilerGenerated]
		private bool bool_3;

		private NTMessageBox ntmessageBox_0;
	}
}
