void CloseWindow() { testHelper.Clear(); ChartPhoto.setPhoto(null); Panel p = this.Parent as Panel; if (p != null) { p.Children.Remove(this); } CameraTestDesktop cd = CameraTestDesktop.getDesktop(); if (cd.TaskList.Children.Contains(ci)) { cd.TaskList.Children.Remove(ci); } }
//GrayChart t = new GrayChart(); void CloseWindow() { try { //t.Clear(); testHelper.Clear(); Panel p = this.Parent as Panel; if (p != null) { p.Children.Remove(this); } CameraTestDesktop cd = CameraTestDesktop.getDesktop(); if (cd.TaskList.Children.Contains(ci)) { cd.TaskList.Children.Remove(ci); } } catch (Exception xe) { SilverlightLFC.common.Environment.ShowMessage(xe.Message); } }