Private void initext () {// temp
Dataset DS = new dataset ("zerowiresfa ");
// Server table -----------------------------------------------------
Datatable dtserver = new datatable ("server ");
// Create a column
Datacolumn dtserverid = new datacolumn ("ID ");
Dtserverid. datatype = typeof (INT );
Dtserverid. autoincrement = true;
Datacolumn dtservername = new datacolumn ("name ");
Dtservername. datatype = typeof (string );
// Add a column.
Dtserver. Columns. Add (dtserverid );
Dtserver. Columns. Add (dtservername );
// Add data
Datarow drowserver;
Drowserver = dtserver. newrow ();
Drowserver ["ID"] = 1;
Drowserver ["name"] = "D-PEK-GGE ";
Dtserver. Rows. Add (drowserver );
// User list -----------------------------------------------------
Datatable dtuser = new datatable ("user ");
// Create a column
Datacolumn dtuserid = new datacolumn ("ID ");
Dtuserid. datatype = typeof (INT );
Dtuserid. autoincrement = true;
Datacolumn dtusername = new datacolumn ("name ");
Dtusername. datatype = typeof (string );
// Add a column.
Dtuser. Columns. Add (dtuserid );
Dtuser. Columns. Add (dtusername );
// Add data
Datarow drowuser;
Drowuser = dtuser. newrow ();
Drowuser ["ID"] = 1;
Drowuser ["name"] = "Appolo. Chen ";
Dtuser. Rows. Add (drowuser );
Datarow drowuser2;
Drowuser2 = dtuser. newrow ();
Drowuser2 ["ID"] = 2;
Drowuser2 ["name"] = "Glen. ge ";
Dtuser. Rows. Add (drowuser2 );
// Synchronization interval list -----------------------------------------------------
Datatable dtinterval = new datatable ("interval ");
// Create a column
Datacolumn dtintervalid = new datacolumn ("ID ");
Dtintervalid. datatype = typeof (INT );
Dtintervalid. autoincrement = true;
Datacolumn dtintervalname = new datacolumn ("name ");
Dtintervalname. datatype = typeof (string );
// Add a column.
Dtinterval. Columns. Add (dtintervalid );
Dtinterval. Columns. Add (dtintervalname );
// Add data
Datarow drowinterval;
Drowinterval = dtinterval. newrow ();
Drowinterval ["ID"] = 1;
Drowinterval ["name"] = "NONE ";
Dtinterval. Rows. Add (drowinterval );
Datarow drowinterval2;
Drowinterval2 = dtinterval. newrow ();
Drowinterval2 ["ID"] = 2;
Drowinterval2 ["name"] = "1 ";
Dtinterval. Rows. Add (drowinterval2 );
Datarow drowinterval3;
Drowinterval3 = dtinterval. newrow ();
Drowinterval3 ["ID"] = 3;
Drowinterval3 ["name"] = "5 ";
Dtinterval. Rows. Add (drowinterval3 );
Datarow drowinterval4;
Drowinterval4 = dtinterval. newrow ();
Drowinterval4 ["ID"] = 4;
Drowinterval4 ["name"] = "10 ";
Dtinterval. Rows. Add (drowinterval4 );
Datarow drowinterval5;
Drowinterval5 = dtinterval. newrow ();
Drowinterval5 ["ID"] = 5;
Drowinterval5 ["name"] = "15 ";
Dtinterval. Rows. Add (drowinterval5 );
Datarow drowinterval6;
Drowinterval6 = dtinterval. newrow ();
Drowinterval6 ["ID"] = 6;
Drowinterval6 ["name"] = "20 ";
Dtinterval. Rows. Add (drowinterval6 );
Datarow drowinterval7;
Drowinterval7 = dtinterval. newrow ();
Drowinterval7 ["ID"] = 7;
Drowinterval7 ["name"] = "30 ";
Dtinterval. Rows. Add (drowinterval7 );
Datarow drowinterval8;
Drowinterval8 = dtinterval. newrow ();
Drowinterval8 ["ID"] = 8;
Drowinterval8 ["name"] = "45 ";
Dtinterval. Rows. Add (drowinterval8 );
Datarow drowinterval9;
Drowinterval9 = dtinterval. newrow ();
Drowinterval9 ["ID"] = 9;
Drowinterval9 ["name"] = "60 ";
Dtinterval. Rows. Add (drowinterval9 );
Datarow drowinterval10;
Drowinterval10 = dtinterval. newrow ();
Drowinterval10 ["ID"] = 10;
Drowinterval10 ["name"] = "90 ";
Dtinterval. Rows. Add (drowinterval10 );
Datarow drowinterval11;
Drowinterval11 = dtinterval. newrow ();
Drowinterval11 ["ID"] = 11;
Drowinterval11 ["name"] = "120 ";
Dtinterval. Rows. Add (drowinterval11 );
// System language list -----------------------------------------------------
Datatable dtlanguage = new datatable ("language ");
// Create a column
Datacolumn dtlanguageid = new datacolumn ("ID ");
Dtlanguageid. datatype = typeof (INT );
Dtlanguageid. autoincrement = true;
Datacolumn dtlanguagename = new datacolumn ("name ");
Dtlanguagename. datatype = typeof (string );
// Add a column.
Dtlanguage. Columns. Add (dtlanguageid );
Dtlanguage. Columns. Add (dtlanguagename );
// Add data
Datarow drowlanguage;
Drowlanguage = dtlanguage. newrow ();
Drowlanguage ["ID"] = 0;
Drowlanguage ["name"] = "simplified Chinese ";
Dtlanguage. Rows. Add (drowlanguage );
Datarow drowlanguage2;
Drowlanguage2 = dtlanguage. newrow ();
Drowlanguage2 ["ID"] = 1;
Drowlanguage2 ["name"] = "English ";
Dtlanguage. Rows. Add (drowlanguage2 );
// UI style list -----------------------------------------------------
Datatable dtstyle = new datatable ("style ");
// Create a column
Datacolumn dtstyleid = new datacolumn ("ID ");
Dtstyleid. datatype = typeof (INT );
Dtstyleid. autoincrement = true;
Datacolumn dtstylename = new datacolumn ("name ");
Dtstylename. datatype = typeof (string );
// Add a column.
Dtstyle. Columns. Add (dtstyleid );
Dtstyle. Columns. Add (dtstylename );
// Add data
Datarow drowstyle;
Drowstyle = dtstyle. newrow ();
Drowstyle ["ID"] = 1;
Drowstyle ["name"] = "style1 ";
Dtstyle. Rows. Add (drowstyle );
Datarow drowstyle2;
Drowstyle2 = dtstyle. newrow ();
Drowstyle2 ["ID"] = 2;
Drowstyle2 ["name"] = "style2 ";
Dtstyle. Rows. Add (drowstyle2 );
// Date Format list -----------------------------------------------------
Datatable dtdateformat = new datatable ("dateformat ");
// Create a column
Datacolumn dtdateformatid = new datacolumn ("ID ");
Dtdateformatid. datatype = typeof (INT );
Dtdateformatid. autoincrement = true;
Datacolumn dtdateformatname = new datacolumn ("name ");
Dtdateformatname. datatype = typeof (string );
// Add a column.
Dtdateformat. Columns. Add (dtdateformatid );
Dtdateformat. Columns. Add (dtdateformatname );
// Add data
Datarow drowdateformat;
Drowdateformat = dtdateformat. newrow ();
Drowdateformat ["ID"] = 0;
Drowdateformat ["name"] = "YYYY-MM-DD ";
Dtdateformat. Rows. Add (drowdateformat );
// Automatic upgrade list -----------------------------------------------------
Datatable dtautoupdate = new datatable ("AutoUpdate ");
// Create a column
Datacolumn dtautoupdateid = new datacolumn ("ID ");
Dtautoupdateid. datatype = typeof (INT );
Dtautoupdateid. autoincrement = true;
Datacolumn dtautoupdatename = new datacolumn ("name ");
Dtautoupdatename. datatype = typeof (string );
// Add a column.
Dtautoupdate. Columns. Add (dtautoupdateid );
Dtautoupdate. Columns. Add (dtautoupdatename );
// Add data
Datarow drowautoupdate;
Drowautoupdate = dtautoupdate. newrow ();
Drowautoupdate ["ID"] = 0;
Drowautoupdate ["name"] = "no ";
Dtautoupdate. Rows. Add (drowautoupdate );
Datarow drowautoupdate2;
Drowautoupdate2 = dtautoupdate. newrow ();
Drowautoupdate2 ["ID"] = 1;
Drowautoupdate2 ["name"] = "yes ";
Dtautoupdate. Rows. Add (drowautoupdate2 );
// Add the table to the dataset
String apppath = path. getdirectoryname (assembly. getexecutingassembly (). getmodules () [0]. fullyqualifiedname );
String fullpath = apppath + @ "\ Ext. config ";
DS. Tables. Add (dtserver );
DS. Tables. Add (dtuser );
DS. Tables. Add (dtinterval );
DS. Tables. Add (dtlanguage );
DS. Tables. Add (dtstyle );
DS. Tables. Add (dtdateformat );
DS. Tables. Add (dtautoupdate );
DS. writexml (fullpath );
DS = NULL;
}