Exemple #1
0
		//public SC_Config Serialize() {
		//	return new SC_Config(Record);
		//}
		#endregion
		#region public SC_Config Serialize();
		public SC_Config Serialize() {
			SO_Config[] _serialisableobject;

			lock (record__) {
				int _current = Current;

				_serialisableobject = new SO_Config[Count];

				Reset();
				while (Read()) {
					_serialisableobject[Current] 
						= new SO_Config(
							parent_ref_.fields_.Name,
							parent_ref_.fields_.Config,
							parent_ref_.fields_.Type,
							parent_ref_.fields_.Description
						);
				}

				Current = _current;
			}

			SC_Config _serialize_out = new SC_Config();
			_serialize_out.SO_Config = _serialisableobject;
			return _serialize_out;
		}
Exemple #2
0
		public void Deserialize(SO_Config Config_in) {
			mainAggregate.Fields = Config_in;
		}
Exemple #3
0
		void clrObject() {
			fields_ = new SO_Config();
		}
Exemple #4
0
		public void Open(SO_Config[] serialisableobject_in) {
			DataTable _datatable = new DataTable();
			_datatable.Columns.Add(new DataColumn("codProfissao", typeof(int)));
			_datatable.Columns.Add(new DataColumn("descProfissao", typeof(string)));

			DataRow _datarow;
			for (int i = 0; i < serialisableobject_in.Length; i++) {
				_datarow = _datatable.NewRow();
				_datarow["Name"] = serialisableobject_in[i].Name;
				_datarow["Config"] = serialisableobject_in[i].Config;
				_datarow["Type"] = serialisableobject_in[i].Type;
				_datarow["Description"] = serialisableobject_in[i].Description;

				_datatable.Rows.Add(_datarow);
			}

			Open(_datatable);
		}