void Initialize() { // Start Page Form SPF = (StartPageForm)FormCreator(FormStyle.StartPage, 0, 0, 725, 390, this.BackColor, "Start Page"); DFI01 = DockContainer01Panel.Add(SPF, zAllowedDock.All, new Guid("a6402b80-2ebd-4fd3-8930-024a6201d001")); DFI01.ShowContextMenuButton = false; //DFI01.ShowCloseButton = false; DFI01.ShowFormAutoPanel(); DockContainer01Panel.DockForm(DFI01, DockStyle.Fill, zDockMode.Inner); //Details Form DF = (DetailsForm)FormCreator(FormStyle.Details, 0, 0, 300, 300, this.BackColor, "Details View"); DFI03 = DockContainer01Panel.Add(DF, zAllowedDock.All, new Guid("096b52a7-5f4b-44ee-ab77-9830ec717002")); DFI03.ShowContextMenuButton = true; DockContainer01Panel.DockForm(DFI03, DockStyle.Right, zDockMode.Inner); //Histogram Form HF = (HistogramForm)FormCreator(FormStyle.Histogram, 0, 0, 300, 300, Color.White, "Histogram View"); DFI02 = DockContainer01Panel.Add(HF, zAllowedDock.All, new Guid("a6402b80-2ebd-4fd3-8930-024a6201d001")); DFI02.ShowContextMenuButton = true; DockContainer01Panel.DockForm(DFI02, DFI03, DockStyle.Bottom, zDockMode.Outer); //Paint Handle Form //PHF = (PaintHandlerForm)FormCreator(FormStyle.PaintHandleForm, 0, 0, 725, 390, Color.FromArgb(45, 45, 48), "Untiteled"); //DFI04 = DockContainer01Panel.Add(PHF, zAllowedDock.All, new Guid("a6402b80-2ebd-4fd3-8930-024a6201d001")); //DFI04.ShowContextMenuButton = false; //DockContainer01Panel.DockForm(DFI04, DFI01, DockStyle.Fill, zDockMode.Inner); }
/// <summary> /// Apply select /// </summary> public override void Apply() { Hide(); if (SelectedIndex >= 0 && SelectedIndex < Forms.Length) { DockableFormInfo info = Forms[SelectedIndex]; info.IsSelected = true; if (info.IsAutoHideMode) { info.ShowFormAutoPanel(); } } }
private void changeImageToolStripMenuItem_Click(object sender, EventArgs e) { switch (F3.ImageLocation) { case @"E:\Games\-=Mes Documents=-\Visual Studio 2008\Projects\NdsCRC III\NdsCRC III\bin\Debug\data\img\0001a.png": F3.ChangeImage(@"E:\Games\-=Mes Documents=-\Visual Studio 2008\Projects\NdsCRC III\NdsCRC III\bin\Debug\data\img\0001b.png"); break; case @"E:\Games\-=Mes Documents=-\Visual Studio 2008\Projects\NdsCRC III\NdsCRC III\bin\Debug\data\img\0001b.png": F3.ChangeImage(@"E:\Games\-=Mes Documents=-\Visual Studio 2008\Projects\NdsCRC III\NdsCRC III\bin\Debug\data\img\0001a.png"); break; default: F3.ChangeImage(@"E:\Games\-=Mes Documents=-\Visual Studio 2008\Projects\NdsCRC III\NdsCRC III\bin\Debug\data\img\0001b.png"); break; } f3.ShowFormAutoPanel(); }