public JcwDockManager(ContainerControl form, int autoHideContainerWidth, Font autoHideContainerFont) { m_containerControl = form; m_autoHideContainerWidth = autoHideContainerWidth; m_autoHideContainerFont = autoHideContainerFont; InitializeComponent(); // convert images to bitmaps Bitmap arrowUp = JcwResources.GetObject("ArrowUp") as Bitmap; Bitmap arrowRight = JcwResources.GetObject("ArrowRight") as Bitmap; Bitmap arrowDown = JcwResources.GetObject("ArrowDown") as Bitmap; Bitmap arrowLeft = JcwResources.GetObject("ArrowLeft") as Bitmap; // make the background color in this bitmap transparent. the background // color is the color of the pixel at (1,1) in the image arrowUp.MakeTransparent(arrowUp.GetPixel(1, 1)); arrowRight.MakeTransparent(arrowRight.GetPixel(1, 1)); arrowDown.MakeTransparent(arrowDown.GetPixel(1, 1)); arrowLeft.MakeTransparent(arrowLeft.GetPixel(1, 1)); // store the bitmaps in the image list this.imageList1.Images.Add("up", arrowUp); this.imageList1.Images.Add("right", arrowRight); this.imageList1.Images.Add("down", arrowDown); this.imageList1.Images.Add("left", arrowLeft); }
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); }