private void dgvProducts_RowEnter(object sender, DataGridViewCellEventArgs e) { Governance p = gb.Read(Convert.ToInt32(dgvProducts.Rows[e.RowIndex].Cells["GovernanceID"].Value)); txtid.Text = p.GovernanceID.ToString(); txtad.Text = p.FirstName; txtsoyad.Text = p.LastName; lst1.Text = p.Gender; txtusername.Text = p.UserName; txtpassword.Text = p.UserPassword; }
private void button1_Click(object sender, EventArgs e) { Governance p = gb.Read(Convert.ToInt32(txtid.Text)); p.GovernanceID = Convert.ToInt32(txtid.Text); p.UserPassword = txtpassword.Text; p.UserName = txtusername.Text; p.FirstName = txtad.Text; p.LastName = txtsoyad.Text; p.Gender = lst1.Text; gb.Update(p); ListGovernance(); MessageBox.Show("Yönetici Bilgileri Başarıyla Güncellendi.", "Güncelleme Başarılı", MessageBoxButtons.OK, MessageBoxIcon.Information); }
private void btnurun_Click(object sender, EventArgs e) { Governance p = new Governance { FirstName = txtad.Text, LastName = txtsoyad.Text, Gender = lst1.Text, UserName = txtusername.Text, UserPassword = txtpassword.Text, }; gb.Create(p); MessageBox.Show("Kayıt Başarıyla Tamamlandı", "Kayıt Başarılı", MessageBoxButtons.OK, MessageBoxIcon.Information); yoneticidetay yonetim = new yoneticidetay(); yonetim.Show(); this.Hide(); }
public CosmosApiClient(CosmosApiClientSettings settings) { _settings = settings; _flurlClient = new Lazy <IFlurlClient>(CreateClient, LazyThreadSafetyMode.ExecutionAndPublication); GaiaRest = new GaiaREST(GetClient); TendermintRpc = new TendermintRPC(GetClient); Transactions = new Transactions(GetClient); Auth = new Auth(GetClient); Bank = new Bank(GetClient); Staking = new Staking(GetClient); Governance = new Governance(GetClient); Slashing = new Slashing(GetClient); Distribution = new Distribution(GetClient); Mint = new Mint(GetClient); var jsonSerializerSettings = JsonSerializerSettings(); Serializer = new NewtownJsonSerializer(jsonSerializerSettings); }