Beispiel #1
0
        /// <summary>
        /// when clicked it sends the time to the other form and closes itself
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BtnSet_Click(object sender, EventArgs e)
        {
            Alarm501.AddClock(DTPInput.Value, RbnOn.Checked, first, pos);
            var thing = new Alarm501();

            x.Redisplay();
            this.Close();
        }
Beispiel #2
0
 /// <summary>
 /// constructor takes an instance of Alarm501
 /// this allows the redisplay funciton to be called.
 /// </summary>
 /// <param name="x">takes in an instance of Alarm 501</param>
 public InputTime(Alarm501 X, bool First, int Pos)
 {
     this.x = X;
     first  = First;
     pos    = Pos;
     InitializeComponent();
     DTPInput.Format       = DateTimePickerFormat.Custom;
     DTPInput.ShowUpDown   = true;
     DTPInput.CustomFormat = "MM/dd/yyyy hh:mm:ss";
 }