<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">The UIDemo was my first and only experiment into the C# MVVM UI design paradigm, and we (Connamara) ended up using it as a driver for some early proof-of-concept QF/n validation tests.  That was in late 2011.  Since then, I've barely thought about this thing.<br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">Don't you see?  All the questions you've asked are not about QuickFIX, but about the non-QF parts of UIDemo.<br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">You are spending your effort trying to understand my terrible UI implementation that uses a paradigm I barely understood and written in a UI framework (WPF) which MS doesn't seem to care about anymore.<br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">As to your questions about the projects:<br></div><div class="gmail_default"><ul><li><font color="#000000">FixApplication - this project contains all the QuickFIX stuff</font></li><li><font color="#000000">UIDemo - this project contains all the UI stuff, and references FixApplication for dependent QF features</font></li><li><font color="#000000">UnitTest - NUnit tests.  These do not "interact" with the app.  NUnit runs by itself.  It sounds like you may not be familiar with unit testing; I highly recommend you read more about it.  NUnit is just one framework for unit testing.</font></li></ul></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><b>I'm not going to answer any more questions about UIDemo.  It's dead to me.</b></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">Stick to the Examples, and read the docs at <a href="http://quickfixn.org">quickfixn.org</a>.</div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">TradeClient is a sample initiator (aka client), and SimpleAcceptor and Executor are sample acceptors (aka servers).</div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">By default, TradeClient is configured to try to connect to Executor on localhost.  Start Executor first in a DOS prompt, then start TradeClient in another DOS prompt.  TC's simple command-line interface will let you send an order to Executor, and Executor will send an ExecReport message back to TC.</div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">-Grant</div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 30, 2017 at 1:39 PM, Simone Cavallarin <span dir="ltr"><<a href="mailto:Simone.Cavallarin@banorcapital.com" target="_blank">Simone.Cavallarin@banorcapital.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="m_7992341346101363619WordSection1">
<p class="MsoNormal">Hi, <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m a bit struggling to understand the logic behind the UI DEMO. (I’m sorry Grant!) When I have been working with NET I used many times form and clicking into a button<u></u><u></u></p>
<p class="MsoNormal">I was going into the code, so quite straight and easy.<u></u><u></u></p>
<p class="MsoNormal">In this app instead is quite different is much more advanced, and with my basic knowledge I’m a bit disorientated.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">To understand how it works I’m trying to start from each button to get the actual code that is executed. Let me to do an example.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The “Connect” button has this code:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue"><</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515">StackPanel</span><span style="font-size:9.5pt;font-family:Consolas;color:red">
 Orientation</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">="Horizontal"</span><span style="font-size:9.5pt;font-family:Consolas;color:red"> HorizontalAlignment</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">="Center"></span><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black">                   
</span><span style="font-size:9.5pt;font-family:Consolas;color:blue"><</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515">Button</span><span style="font-size:9.5pt;font-family:Consolas;color:red"> x</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">:</span><span style="font-size:9.5pt;font-family:Consolas;color:red">Name</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">="bttnConnectu"</span><span style="font-size:9.5pt;font-family:Consolas;color:red">
 Content</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">="Connect"</span><span style="font-size:9.5pt;font-family:Consolas;color:red"> Width</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">="80"</span><span style="font-size:9.5pt;font-family:Consolas;color:red">
<span style="background:yellow">Command</span></span><span style="font-size:9.5pt;font-family:Consolas;color:blue">="{</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515">Binding</span><span style="font-size:9.5pt;font-family:Consolas;color:red">
 ConnectCommand</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">}"</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black">                      
</span><span style="font-size:9.5pt;font-family:Consolas;color:red"> Style</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">="{</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515">StaticResource</span><span style="font-size:9.5pt;font-family:Consolas;color:red">
 EnableIfDisconnected</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">}"/>]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:blue"><u></u> <u></u></span></p>
<p class="MsoNormal">What I’m looking to find is the action behind it, that should be link through the “<span style="background:yellow">Command</span>” so
<span style="font-size:9.5pt;font-family:Consolas;color:blue">"{</span>binding ConnectCommand<span style="font-size:9.5pt;font-family:Consolas;color:blue">}"</span>.
<u></u><u></u></p>
<p class="MsoNormal">I think that it is inside ConnectionViewModel.cs, (pls correct me if I’m wrong).<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue">public</span><span style="font-size:9.5pt;font-family:Consolas;color:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">class</span><span style="font-size:9.5pt;font-family:Consolas;color:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#2b91af">ConnectionViewModel</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> :
</span><span style="font-size:9.5pt;font-family:Consolas;color:#2b91af">ViewModelBase</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> 
<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue">public</span><span style="font-size:9.5pt;font-family:Consolas;color:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#2b91af">ICommand</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> ConnectCommand {</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">get</span><span style="font-size:9.5pt;font-family:Consolas;color:black">;</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">set</span><span style="font-size:9.5pt;font-family:Consolas;color:black">;}<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none">I’m not able to understand what it run inside this class and how.<u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none"><u></u> <u></u></p>
<p class="MsoNormal" style="text-autospace:none">Then there are the <u></u><u></u></p>
<ul style="margin-top:0cm" type="disc">
<li class="m_7992341346101363619MsoListParagraph" style="margin-left:0cm;text-autospace:none">
FIX Application<u></u><u></u></li><li class="m_7992341346101363619MsoListParagraph" style="margin-left:0cm;text-autospace:none">
UIDemo<u></u><u></u></li><li class="m_7992341346101363619MsoListParagraph" style="margin-left:0cm;text-autospace:none">
UnitTest<u></u><u></u></li></ul>
<p class="MsoNormal" style="text-autospace:none"><u></u> <u></u></p>
<p class="MsoNormal" style="text-autospace:none">“Fix Application” look like the proper engine that is creating the messages, but I don’t understand how it interact with the UI Demo.<u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">The “UIdemo, okay is the code behind the form, but can It run by itself or does it need it the “FIX application” to work?<u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">The “Unit Test” are test okay!, but how can you select which test you would like to run and how it interacts with the rest of the app?
<u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none"><u></u> <u></u></p>
<p class="MsoNormal" style="text-autospace:none">And finally, last question where can I find the script that establish where to look for the connection? Now I’m running the “executor” and the “UI” on my pc so probably
<u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">There is a “look on local host” wrote somewhere, but let’s said that I would like to move the executor into another pc inside my network where should I write the new IP?<u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none"><u></u> <u></u></p>
<p class="MsoNormal" style="text-autospace:none">I know that you suggested to avoid the UIDemo but with it looks like is easier to understand. I had a look also to the “Examples.TradeClient” and okay maybe for you it looks much more easier but once I open the
 only script that I found is the “Trade Client App” things are not getting better … for example what is the
<span style="font-size:9.5pt;font-family:Consolas;color:#2b91af">IInitiator?<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><u></u> <u></u></p>
<p class="MsoNormal" style="text-autospace:none"><u></u> <u></u></p>
<p class="MsoNormal" style="text-autospace:none">Many Thanks! <u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none"><u></u> <u></u></p>
<p class="MsoNormal" style="text-autospace:none"><u></u> <u></u></p>
<p class="MsoNormal" style="text-autospace:none"><u></u> <u></u></p>
<p class="MsoNormal" style="text-autospace:none">Simone <u></u><u></u></p>
</div>
<font>Simone Cavallarin</font>
<br>
<font>T. <a href="tel:+44%2020%203002%201866" value="+442030021866" target="_blank">+44 203 002 1866</a> | F. <a href="tel:+44%2020%203002%201856" value="+442030021856" target="_blank">+44 203 002 1856</a> | M. <a href="tel:+44%207413%20876068" value="+447413876068" target="_blank">+44 741 387 6068</a></font> <br>
<a href="mailto:simone.cavallarin@banorcapital.com" target="_blank"><font>Simone.Cavallarin@<wbr>banorcapital.com</font></a> | <a href="http://www.banorcapital.com/" target="_blank"><font>www.<wbr>banorcapital.com</font></a><br>
<br>
<img src="http://www.banorcapital.com/wp-content/themes/banor/images/logo.png" alt="Logo" width="150" height="40"><br>
<br>
<font>Banor Capital Limited</font> <br>
<font>6<sup>th</sup> Floor, 16 Berkeley Street,<wbr> London W1J 8DZ (UK)</font> <br>
<br>
<font>Banor Capital Limited is <wbr>Authorised and Regulated by <wbr>the Financial Conduct <wbr>Authority. Please visit <a href="http://www.banorcapital.com/Disclaimer.html" target="_blank"><font>our <wbr>website</font></a> for important <wbr>disclaimers/disclosures <wbr>regarding Banor Capital’s <wbr>services.</font>
<br>
<br>
<br>

</div>

<br>______________________________<wbr>_________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" rel="noreferrer" target="_blank">http://lists.quickfixn.com/<wbr>listinfo.cgi/quickfixn-<wbr>quickfixn.com</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div><font size="2"><span style="background-color:#000000"><span style="background-color:#ffffff">Grant Birchmeier</span></span></font><font size="2"><font color="#3333ff"><br></font></font></div><div><font size="2"><b><font color="#3333ff"><span style="background-color:#ffcc33"><span style="background-color:#ffcc66"><span style="background-color:#ffcc99"><span style="background-color:#ffffff"><span style="background-color:#ffcc00">Connamara Systems, LLC</span></span></span></span></span></font></b></font><br></div><div><font size="2"><b>Made-To-Measure Trading Solutions.</b></font></div><div><font size="2">Exactly what you need. No more. No less.</font><font size="2"><b><font color="#3333ff"><br></font></b></font></div><div><font size="2"><a href="http://connamara.com" target="_blank">http://connamara.com</a><br></font></div></div>
</div>