public MainWindow()
        {
            InitializeComponent();
            this.DataContext = this;

            this.DispatcherObject = System.Windows.Threading.Dispatcher.CurrentDispatcher;
            this.Command          = new RelayCommand(this.CommandReceived);

            var b = new libSharedProject.ProtolV1Commands.ProtocolV1Base();

            protocolV1Kennung = this.GetPropertyName(() => b.MyType);

            client = new libDesktop.TcpClientV1();
            Client.NotifyexceptionEvent       += Client_NotifyexceptionEvent;
            Client.NotifyTextEvent            += Client_NotifyTextEvent;
            Client.NotifyMessageReceivedEvent += Client_NotifyMessageReceivedEvent;

            string machineName = Environment.MachineName;

            this.AddInfoTextLine("Hallo Welt");


            //libSharedProject.ProtolV1Commands.TestClass c = new libSharedProject.ProtolV1Commands.TestClass();
            //this.SelectedCmd = c;

            //c.Title += "dsf";
            //for (int i = 0; i < 5; i++)
            //{
            //    //CommandList.Add(new libShared.ProtolV1Commands.TestCmd() { Title = "Comand " + i.ToString() });
            //    CommandList.Add(new TestCmd());// { Title = "Comand " + i.ToString() });
            //}

            //for (int i = 0; i < 5; i++)
            //{
            //    SendList.Add(new TestCmd() { Title = "Send " + i.ToString() });
            //}

            //for (int i = 0; i < 5; i++)
            //{
            //    ReceiveList.Add(new TestCmd() { Title = "Comand " + i.ToString() });
            //}

            this.CommandView = this.CommandTable.DefaultView;
            this.SendView    = this.SendTable.DefaultView;
            this.ReceiveView = this.ReceiveTable.DefaultView;


            //var x = this.ReceiveTable.NewDataTableCmdRow();
            //x.Info = "kdfjsl";
            //ReceiveTable.AddDataTableCmdRow(x);


            Assembly asem = fd.GetType().Assembly;

            Type[] types = asem.GetTypes(); //Assembly.GetExecutingAssembly().GetTypes();

            foreach (Type t in types)
            {
                if (t.BaseType != null && t.BaseType.Equals(typeof(libSharedProject.ProtolV1Commands.ProtocolV1Base)))
                {
                    //AddInfoTextLine(t.Name);
                    //object ob = Activator.CreateInstance(t);
                    //CommandList.Add(new KeyValuePair<string, object>("CMD", ob));
                    ////CommandList2.Add(new KeyValuePair<string, object>("CMD", ob));
                    ////int x = 0;

                    //var nr = this.CommandTable.NewDataTableCmdRow();
                    //nr.Info = t.Name;
                    //nr.JSON = Newtonsoft.Json.JsonConvert.SerializeObject(ob);
                    ////nr.Comand = ob;
                    //this.CommandTable.AddDataTableCmdRow(nr);


                    RunActionMenuItem btn = new RunActionMenuItem(t.Name, () => AddCmd(t));
                    this.CmdMenuItems.Add(btn);
                }
            }
        }
 public UcEthernet(IEthernetSync _Ethernet)
     : this()
 {
     this.Ethernet = _Ethernet;
 }