Example #1
0
        private void toolStripMenuItem2_Click(object sender, EventArgs e)
        {
            this.Hide();
            welcome well = new welcome();

            well.ShowDialog();
            this.Text = "Digital Phone Directory (" + well.return_user() + ")";
            user      = well.return_user();
            loadData();
            this.Show();
        }
Example #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            welcome well = new welcome();

            well.ShowDialog();
            user      = well.return_user().ToString().ToUpper();
            this.Text = "Digital Phone Directory" + " (" + " " + user + " " + ")";
            if (well.isSucs())
            {
                well.label1_Click(null, null);
                well.Close();
                well.Dispose();
                loadData();
            }
        }