Esempio n. 1
0
        private void CheckForNewRV_Tick(object sender, EventArgs e)
        {
            if (Properties.Settings.Default.UserName != String.Empty)
            {
                newrv = MedecinController.NewRV(Medecin.Id_doc);
                if (newrv != -1)
                {
                    label_NewRV.Text = newrv.ToString();
                }
            }

            if (dataUpdated)
            {
                dataUpdated        = false;
                label_welcome.Text = "Bienvenu!\nMr " + Medecin.Nom;
            }
        }
Esempio n. 2
0
        private void Home_Form_Load(object sender, EventArgs e)
        {
            //Properties.Settings.Default.UserName = String.Empty;


            if (Properties.Settings.Default.UserName != String.Empty)
            {
                label_welcome.Text = "Bienvenu!\nMr " + Medecin.Nom;
                if (MedecinController.NewRV(Medecin.Id_doc) != -1)
                {
                    label_NewRV.Text = MedecinController.NewRV(Medecin.Id_doc).ToString();
                    numberOfNewRv[0] = 0;
                    numberOfNewRv[1] = int.Parse(label_NewRV.Text);
                }
                else
                {
                    label_NewRV.Text = "!";
                }
            }
            else
            {
                this.Close();
            }


            notification.Image        = Resources.notificationSmallWhite;
            notification.ImagePadding = new Padding(0, 20, 0, 0);
            notification.TitlePadding = new Padding(0, 20, 0, 0);
            notification.TitleText    = "Nouveau Rendez-Vous";
            notification.ContentText  = "vous avez un nouveau rendez-vous, vous peuvez le valider maintenent";
            notification.TitleColor   = Color.White;
            notification.TitleFont    = new Font("Arial", 16);
            notification.BodyColor    = Color.FromArgb(0, 140, 176);
            notification.BorderColor  = Color.Transparent;
            notification.OptionsMenu  = new ContextMenuStrip();
            notification.OptionsMenu.Items.Add("Never Show again");

            notification.OptionsMenu.Items[0].Click += new EventHandler(this.HideNotification);
        }