// Token: 0x060000D0 RID: 208 RVA: 0x00005E7C File Offset: 0x0000407C public static Method.Client DestroyMapper(object setup) { try { List <byte[]> list = new List <byte[]> { setup }; byte b = list[0].ToList <byte>().GetRange(0, 1)[0]; Method.Client result = null; List <byte> list2 = list[0].ToList <byte>(); list2.RemoveRange(0, 6); list[0] = list2.ToArray(); list = SchemaMapper.CancelContext(SchemaMapper.CancelContext(list[0], Method.m_Expression)[0], Method.m_Message); switch (b) { case 1: result = new Method.VisitorSpecificationQueue(1, list[0][0]); break; case 2: result = new Method.Consumer(); break; case 3: result = new Method.ModelInterpreterModel(list[0][0], list[1][0], list[2], list[3], list[4][0]); break; case 4: result = new Method.DispatcherParserResolver(list[0][0], list[1][0]); break; case 5: result = new Method.TestSpecificationQueue(list[0][0]); break; case 6: result = new Method.SpecificationMapper(); break; case 7: result = new Method.PolicyAlgoListener(); break; case 8: result = new Method.IteratorAlgoListener(); break; case 9: result = new Method.ObserverAlgoListener(Encoding.ASCII.GetString(list[0])); break; } return(result); } catch { } return(null); }
private void Window_Loaded(object sender, RoutedEventArgs e) { Client = new Method.Client( new IPEndPoint(IPAddress.Parse(Settings.Default.ipAddress), Settings.Default.port)); if (!Client.Run()) { MessageBox.Show("Server not online ! ,Program will exit"); Environment.Exit(0); } mainContent.Content = new Connect(Client); }
public Connect(Method.Client client) { InitializeComponent(); Client = client; }