Пример #1
0
        private void editConcreteDesignLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            DesignOptions option = concreteDesignComboBox.SelectedItem as DesignOptions;

            if (option != null && !(option is NoDesign))
            {
                DesignOptions clone  = (DesignOptions)option.Clone();
                DialogResult  result = new Canguro.Commands.Forms.EditDesignOptionsDialog(clone).ShowDialog(this);
                if (result == DialogResult.OK)
                {
                    option.CopyFrom(clone);
                }
            }
        }
 private void editSteelDesignLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     DesignOptions option = steelDesignComboBox.SelectedItem as DesignOptions;
     if (option != null && !(option is NoDesign))
     {
         DesignOptions clone = (DesignOptions)option.Clone();
         DialogResult result = new Canguro.Commands.Forms.EditDesignOptionsDialog(clone).ShowDialog(this);
         if (result == DialogResult.OK)
             option.CopyFrom(clone);
     }
 }