public static MStatus Obter() { MStatus retorno = null; if (Conexao.Abrir()) { SqlCommand command = new SqlCommand { Connection = Conexao.Connection, CommandText = "SELECT DB_NAME() AS Nome" }; SqlDataReader reader = command.ExecuteReader(); if (reader.Read()) { retorno = new MStatus(); retorno.NomeBanco = reader["Nome"].ToString(); } reader.Close(); Conexao.Fechar(); } return(retorno); }
private void cmbBoxGender_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == 13) { MStatus.Focus(); e.Handled = true; } else { e.Handled = false; } }
public static async Task Send(this IBot bot, MStatus msg) => await _Send(bot, msg, "status");