Example #1
0
 /// <summary>
 /// Click sur OK
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnOK_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(txtTitle.Text))
     {
         MessageBox.Show(Errors.STAGE_TITLE_EMPTY, Errors.ERROR_BOX_TITLE);
     }
     else
     {
         VO_Stage stage = ObjectsFactory.CreateStage(Convert.ToInt32(ddpWidth.Value), Convert.ToInt32(ddpHeight.Value));
         stage.Title = txtTitle.Text;
         EditorHelper.Instance.CurrentStage = stage.Id;
         DialogResult = DialogResult.OK;
         this.Close();
     }
 }