private void AddNoteButton_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.jcwMemoEdit1.Text)) { this.dxErrorProvider.SetError(this.jcwMemoEdit1, JcwResources.GetString("MissingChartNoteText")); return; } this.DialogResult = DialogResult.OK; this.Close(); }
public NavigationMdiParentFrm() { InitializeComponent(); BackMenuButton = new JcwToolStripButton(); BackMenuButton.Alignment = ToolStripItemAlignment.Right; BackMenuButton.Click += new EventHandler(BackMenuButton_Click); BackMenuButton.Enabled = true; BackMenuButton.Image = (Bitmap)JcwResources.GetObject("BackButton"); BackMenuButton.ImageAlign = ContentAlignment.MiddleLeft; BackMenuButton.Text = JcwResources.GetString("BackMenuButtonText"); BackMenuButton.TextAlign = ContentAlignment.MiddleRight; BackMenuButton.Visible = true; MdiMenuStrip.Items.Add(BackMenuButton); }