示例#1
0
        private void llblConnected_Click(object sender, EventArgs e)
        {
            // on instancie la fenêtre d'identification et si elle nous a retourné un client, on rend accessible son profil
            using (Identification)
            {
                if (!(Identification.ShowDialog() == DialogResult.No))
                    if (CurrentClient!=null)
                    {
                        lblClientProfil.Text = CurrentClient.firstName + " " + CurrentClient.name;
                        lblClientProfil.Visible = true;
                        llblConnected.Visible = false;
                    }

            }
            identification = null;
        }
示例#2
0
 private void CloseLoginBox(object sender, FormClosingEventArgs e)
 {
     if (Identification.CurrentClient != null)
         CurrentClient = Identification.CurrentClient;
     identification.Dispose();
     identification = null;
 }