예제 #1
0
 public void GetClient(Clients client)
 {
     MonamurDBDataSetTableAdapters.ClientsTableAdapter t_clientsTableAdap = new MonamurDBDataSetTableAdapters.ClientsTableAdapter();
     MonamurDBDataSet.ClientsDataTable t_clientsDataTable = new MonamurDBDataSet.ClientsDataTable();
     t_clientsTableAdap.FillByID(t_clientsDataTable, client.ID);
     client.Fio       = t_clientsDataTable.Rows[0]["fio"].ToString();
     client.Character = Convert.ToInt32(t_clientsDataTable.Rows[0]["character"]);
     client.Phone     = t_clientsDataTable.Rows[0]["phone"].ToString();
     client.Social    = t_clientsDataTable.Rows[0]["social"].ToString();
     client.About     = t_clientsDataTable.Rows[0]["about"].ToString();
     client.Bonus     = Convert.ToInt32(t_clientsDataTable.Rows[0]["bonus"]);
 }
예제 #2
0
 public void GetInfo()
 {
     MonamurDBDataSetTableAdapters.ClientsTableAdapter t_clientsTableAdap = new MonamurDBDataSetTableAdapters.ClientsTableAdapter();
     MonamurDBDataSet.ClientsDataTable t_clientsDataTable = new MonamurDBDataSet.ClientsDataTable();
     t_clientsTableAdap.FillByID(t_clientsDataTable, ID);
     Fio       = t_clientsDataTable.Rows[0]["fio"].ToString();
     Character = Convert.ToInt32(t_clientsDataTable.Rows[0]["character"]);
     Phone     = t_clientsDataTable.Rows[0]["phone"].ToString();
     Social    = t_clientsDataTable.Rows[0]["social"].ToString();
     About     = t_clientsDataTable.Rows[0]["about"].ToString();
     Bonus     = Convert.ToInt32(t_clientsDataTable.Rows[0]["bonus"]);
     Sms       = (bool)t_clientsDataTable.Rows[0]["sms"];
 }