// only call when parsing internal MultiValueBigTable ReconstructBigTable(long _id, string _name, MultiValPointer _disp_vect, string _unit_x, string _unit_y, string _unit_z, List <string> _names, List <string> _units, List <List <double> > _values, List <string> _row_names) { if (_id < 0) { return(null); } MultiValueBigTable created = new MultiValueBigTable(_id, _name, _disp_vect, _unit_x, _unit_y, _unit_z, _names, _units, _values, _row_names); // check if a valid value table was created if (created == null) { return(null); } if (created.Values.Count == 0) { return(null); } // create this.value_record.Add(created); // adjust type counter MultiValue.NR_MULTI_VALUES = Math.Max(MultiValue.NR_MULTI_VALUES, created.MVID); // done return(created); }
public MultiValueBigTable CreateBigTable(string _name, List <string> _names, List <string> _units, List <List <double> > _values, List <string> _row_names = null) { MultiValueBigTable created = null; if (_row_names == null) { created = new MultiValueBigTable(_name, _names, _units, _values); } else { created = new MultiValueBigTable(_name, _names, _units, _values, _row_names); } if (created == null) { return(null); } if (created.Values.Count == 0) { return(null); } // check if a valid value table was created this.value_record.Add(created); return(created); }
public void OpenShowBigTableWindow(MultiValueBigTable _to_show) { if (_to_show == null) { return; } this.show_BT_win = new ShowMVBigTableWindow(); this.show_BT_win.Data = _to_show; this.show_BT_win.ShowDialog(); }