Beispiel #1
0
 private void InitializeExperiment(BatchExperiment batch)
 {
     ctxt = new Context();
     ctxt.BatchExperiment = batch;
     ctxt.FocusedItemChanged += this.OnSelectedItemChanged;
 }
Beispiel #2
0
        private void OnSelectedItemChanged(Context ctxt)
        {
            DataFormat dataFmt = ctxt.BatchExperiment.GetDataFormats(ctxt.FocusedItem.IsTimeSeries)[ctxt.FocusedItem.Index];

            bbiDrawTSScalar.Enabled = false;
            bbiExportTSVAsCSV.Enabled = false;
            bbiExportMatrix.Enabled = false;
            bbiExportTSMatrix.Enabled = false;
            bbiShowMatrix.Enabled = false;
            bbiShowNTSMatrix.Enabled = false;

            if (dataFmt.IsTimeSeries == true && dataFmt.Dimension == DataFormat.DataDimension.Scalar) {
                bbiDrawTSScalar.Enabled = true;
                bbiExportTSVAsCSV.Enabled = true;
            }
            if (dataFmt.IsTimeSeries == true && dataFmt.Dimension == DataFormat.DataDimension.Array2D) {
                bbiExportTSMatrix.Enabled = true;
                bbiShowMatrix.Enabled = true;
            }
            if (dataFmt.IsTimeSeries == false && dataFmt.Dimension == DataFormat.DataDimension.Array2D) {
                bbiExportMatrix.Enabled = true;
                bbiShowNTSMatrix.Enabled = true;
            }
        }