private void Save() { try { Entities.ServerConfig con = new Entities.ServerConfig(); con.Server = cbxLoaiMay.SelectedItem.ToString(); con.Ip = txtIP.Text; con.Port = txtPort.Text; Common.Utilities com = new Common.Utilities(); com.CreateFileServerConfig(con); } catch (Exception ex) { string s = ex.Message; this.Close(); } }
private void Save() { try { Entities.ServerConfig con = new Entities.ServerConfig(); con.Server = cbxLoaiMay.SelectedItem.ToString(); con.Ip = txtIP.Text; con.Port = txtPort.Text; Common.Utilities com = new Common.Utilities(); com.CreateFileServerConfig(con); } catch (Exception ex) { string s = ex.Message; this.Close(); } }