Beispiel #1
0
        /// <summary>
        /// "Create curtain system" button clicked, hide the main form,
        /// pop up the create curtain system dialog to let user add a new curtain system.
        /// After the curtain system created, close the dialog and show the main form again
        /// </summary>
        /// <param name="sender">
        /// object who sent this event
        /// </param>
        /// <param name="e">
        /// event args
        /// </param>
        private void createCSButton_Click(object sender, EventArgs e)
        {
            this.Hide();

            // show the "create curtain system" dialog
            using (CreateCurtainSystemDialog dlg = new CreateCurtainSystemDialog(m_mydocument))
            {
                dlg.ShowDialog(this);
            }
        }
Beispiel #2
0
        /// <summary>
        /// "Create curtain system" button clicked, hide the main form,
        /// pop up the create curtain system dialog to let user add a new curtain system.
        /// After the curtain system created, close the dialog and show the main form again
        /// </summary>
        /// <param name="sender">
        /// object who sent this event
        /// </param>
        /// <param name="e">
        /// event args
        /// </param>
        private void createCSButton_Click(object sender, EventArgs e)
        {
            this.Hide();

             // show the "create curtain system" dialog
             using (CreateCurtainSystemDialog dlg = new CreateCurtainSystemDialog(m_mydocument))
             {
            dlg.ShowDialog(this);
             }
        }