Exemplo n.º 1
0
        public Form1(ref switcher a)
        {
            InitializeComponent();
            ouai = a;

            label2.Text = this.hourDozen.ToString();
            label3.Text = this.hourUnit.ToString();
            label4.Text = this.minuteDozen.ToString();
            label5.Text = this.minuteUnit.ToString();

            fillRadioList();
            radioCBo.DataSource    = this.list;
            radioCBo.ValueMember   = "url";
            radioCBo.DisplayMember = "name";
        }
Exemplo n.º 2
0
        static void Main()
        {
            switcher ouai = new switcher();

            ouai.alarmActive  = false;
            ouai.alarmRinging = false;
            ouai.urlAlarm     = string.Empty;
            ouai.radioName    = "Radio non choisie";
            ouai.alarmTime    = new DateTime(1, 1, 1, 0, 0, 0);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);


            Application.Run(new Acceuil(ref ouai));
        }
Exemplo n.º 3
0
        public Acceuil(ref switcher a)
        {
            InitializeComponent();
            this.ouai = a;

            label1.Text = DateTime.Now.ToLongTimeString();
            if (this.ouai.alarmActive)
            {
                label2.Text = "Heure de l'alarme : " + this.ouai.alarmTime.ToShortTimeString();
                label3.Text = "Radio de l'alarme : " + this.ouai.radioName;
            }
            else
            {
                label2.Text = "Alarme éteinte";
                label3.Text = "";
            }
        }