Exemple #1
0
        /// <summary>
        /// add a new cReminder
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void plusStripMenuItem1_Click(object sender, EventArgs e)
        {
            //represents the a unique time stamp for use as name of form
            long long_unique_timestamp = DateTime.Now.Ticks;

            cReminder cReminder_new = new cReminder();

            cReminder_new.Name     = long_unique_timestamp.ToString();
            cReminder_new.Location = new Point(10, 25);
            cReminder_new.TopLevel = false;
            cReminder_new.Parent   = this.Parent;

            this.Parent.Controls.Add(cReminder_new);
            cReminder_new.Show();
            cReminder_new.BringToFront();
        }
Exemple #2
0
        /// <summary>
        /// add a new cReminder
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void plusStripMenuItem1_Click(object sender, EventArgs e)
        {
            //represents the a unique time stamp for use as name of form
            long long_unique_timestamp = DateTime.Now.Ticks;

            cReminder cReminder_new = new cReminder();
            cReminder_new.Name = long_unique_timestamp.ToString();
            cReminder_new.Location = new Point(10, 25);
            cReminder_new.TopLevel = false;
            cReminder_new.Parent = this.Parent;

            this.Parent.Controls.Add(cReminder_new);
            cReminder_new.Show();
            cReminder_new.BringToFront();
        }