public Login() { InitializeComponent(); con = new sqlite_connector(); this.username = null; login_id = -1; }
private void MainMenu_Load(object sender, EventArgs e) { string sql = @" select username from users where id_user={0} "; con = new sqlite_connector(); con.open(); string title = con.select(string.Format(sql, id_user.ToString())).Tables[0].Rows[0].ItemArray[0].ToString(); con.close(); this.Text += ": Logged in as " + title; if (id_user == ROOT_ID) { mod_users = new ToolStripMenuItem("Users", null, userToolStripMenuItem); menuStrip1.Items.Add(mod_users); } }
private void Register_Load(object sender, EventArgs e) { con = new sqlite_connector(); this.DialogResult = DialogResult.None; this.BringToFront(); this.Activate(); this.ActiveControl = this.textBox1; if (root) { this.textBox1.Enabled = false; this.textBox1.Text = "root"; this.ActiveControl = this.textBox2; } else if (modifying) { this.Text = "Modifying User"; this.button1.Text = "Update"; this.label2.Text = "New Password"; this.label3.Text = "Confirm New Password"; } }
public Modify_Users() { InitializeComponent(); con = new sqlite_connector(); show_pass = false; }
public Login(string username) { InitializeComponent(); con = new sqlite_connector(); this.username = username; }