Ejemplo n.º 1
0
        private void EditStylistButton_Click(object sender, EventArgs e)
        {
            string[] name = ListofStylists.Text.Split(' ');

            for (int i = 0; i < name.Length; i++)
            {
                switch (i)
                {
                case 0:
                    StylistFirstName = name[i];
                    break;

                case 1:
                    StylistLastName = name[i];
                    break;
                }
            }
            edit = true;
            StylistSearch.Clear();
            Hide();
            StylistInfo Stylist = new StylistInfo();

            Stylist.EditStylistClicked();
            Stylist.Closed += (s, args) => this.Show();
            Stylist.Show();
        }
Ejemplo n.º 2
0
        private void NewStylist_Click(object sender, EventArgs e)
        {
            this.Hide();
            StylistInfo Stylist = new StylistInfo();

            Stylist.Closed += (s, args) => this.Close();
            Stylist.Show();
        }