Beispiel #1
0
        private void ProfilChange_function()
        {
            ProfilChangeArgs args = new ProfilChangeArgs();

            args.profil = currentProfil;
            ProfilChange.Invoke(this, args);
        }
        private void UcProfilManage_ProfilChange(object sender, EventArgs e)
        {
            ProfilChangeArgs args = e as ProfilChangeArgs;

            curentProfil = args.profil;
            if (curentProfil.ProfilName == null)
            {
                TabJob.Visibility           = Visibility.Hidden;
                TabMachine.Visibility       = Visibility.Hidden;
                TabConfiguration.Visibility = Visibility.Hidden;
            }
            else
            {
                TabJob.Visibility     = Visibility.Visible;
                TabMachine.Visibility = Visibility.Visible;
                if (curentProfil.AcreditationLevel == Acreditation.High)
                {
                    TabConfiguration.Visibility = Visibility.Visible;
                }
            }
        }