//this is called on AutoDetect
static public ChronopicWindow Create(Chronopic cpDetected, ArrayList myCpd, string myEncoderPort, bool recreate, bool volumeOn)
{
LogB.Debug("enter create");
if (ChronopicWindowBox != null && recreate)
{
ChronopicWindowBox.chronopic_window.Hide();
}
if (ChronopicWindowBox == null || recreate)
{
ChronopicWindowBox = new ChronopicWindow(cpDetected, myCpd);
}
LogB.Information("create cp is null? " + (ChronopicWindowBox.cp == null).ToString());
//don't show until View is called
//ChronopicWindowBox.chronopic_window.Show ();
ChronopicWindowBox.volumeOn = volumeOn;
ChronopicWindowBox.setEncoderPort(myEncoderPort);
ChronopicWindowBox.fakeWindowDone = new Gtk.Button();
//ChronopicWindowBox.fakeWindowReload = new Gtk.Button();
return(ChronopicWindowBox);
}