private void GetWindowType() { if (Chameleon.GetType() == "widget") { Chameleon.Close(); } if (Chameleon.GetType() == "window") { Dictionary data = new Dictionary("message", "This is an example of data you can return"); Chameleon.Close(true, data); } }