// Open messenger when view private void view_button_Click(object sender, EventArgs e) { Main gg = new Main(""); messenger g = new messenger(gg, this.employeenumber); g.Show(); this.Visible = false; this.Close(); }
// Prompt Login dialog private void messenger_button_Click(object sender, EventArgs e) { if (!messenger_box) { messenger form = new messenger(this, this.employee_box_name); //messenger form = new messenger("10577"); form.Show(); messenger_box = true; //form.Show(); } }