public ChronopicWindow(Chronopic cpDetected, ArrayList myCpd)
{
LogB.Debug("constructor");
Glade.XML gxml;
gxml = Glade.XML.FromAssembly (Util.GetGladePath() + "chronopic_window.glade", "chronopic_window", "chronojump");
gxml.Autoconnect(this);
cpd = myCpd;
if(cpDetected != null) {
cp = cpDetected;
sp = new SerialPort( ((ChronopicPortData) cpd[0]).Port );
}
UtilGtk.IconWindow(chronopic_window);
if(UtilAll.IsWindows())
isWindows = true;
else
isWindows = false;
setDefaultValues();
chronopicInit = new ChronopicInit();
//Pixbuf pixbuf = new Pixbuf (null, Util.GetImagePath(false) + "chronopic_128.png");
//chronopic_image.Pixbuf = pixbuf;
/*
Pixbuf pixbuf;
pixbuf = new Pixbuf (null, Util.GetImagePath(true) + Constants.FileNameContactPlatformModular);
image_contact_modular.Pixbuf = pixbuf;
pixbuf = new Pixbuf (null, Util.GetImagePath(true) + Constants.FileNameInfrared);
image_infrared.Pixbuf = pixbuf;
*/
/*
if(chronopicPort1 != Constants.ChronopicDefaultPortWindows &&
(chronopicPort1 != Constants.ChronopicDefaultPortLinux && File.Exists(chronopicPort1))
) {
ConfirmWindow confirmWin = ConfirmWindow.Show(Catalog.GetString("Do you want to connect to Chronopic now?"), "", "");
confirmWin.Button_accept.Clicked += new EventHandler(chronopicAtStart);
}
*/
}