示例#1
0
        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);
        }
示例#2
0
        public void Initialize(IFormBuilder InstanceForm, FormStyle FS)
        {
            switch (FS)
            {
            case FormStyle.StartPage:
                break;

            case FormStyle.Histogram:
                break;

            case FormStyle.Details:
                break;

            case FormStyle.ToolBox:
                break;

            case FormStyle.PaintHandleForm:
                //InstanceForm = (PaintHandlerForm)FormCreator(FormStyle.PaintHandleForm, 0, 0, 725, 390, Color.FromArgb(45, 45, 48), ((PaintHandlerForm)InstanceForm).Text);
                DockableFormInfo DFI04 = DockContainer01Panel.Add((PaintHandlerForm)InstanceForm, zAllowedDock.All, new Guid("a6402b80-2ebd-4fd3-8930-024a6201d001"));
                DFI04.ShowContextMenuButton = false;
                if (DockContainer01Panel.GetFormInfo(StartPageForm.Instance) != null)
                {
                    DockContainer01Panel.DockForm(DFI04, DFI01, DockStyle.Fill, zDockMode.Inner);
                }
                else
                {
                    DockContainer01Panel.DockForm(DFI04, DockStyle.Fill, zDockMode.Inner);
                }
                if (!EnableActivatedEventDictionary.ContainsKey(FormStyle.PaintHandleForm))
                {
                    EnableActivatedEventDictionary.Add(FormStyle.PaintHandleForm, 0);
                }
                EnableActivatedEventDictionary[FormStyle.PaintHandleForm]++;
                break;

            case FormStyle.ImageHandleForm:
                //InstanceForm = (ImageHandlerForm)FormCreator(FS, 0, 0, 725, 390, Color.FromArgb(45, 45, 48), ((ImageHandlerForm)InstanceForm).Text);
                DockableFormInfo DFI05 = DockContainer01Panel.Add((ImageHandlerForm)InstanceForm, zAllowedDock.All, new Guid("a6402b80-2ebd-4fd3-8930-024a6201d001"));
                DFI05.ShowContextMenuButton = false;
                if (DockContainer01Panel.GetFormInfo(StartPageForm.Instance) != null)
                {
                    DockContainer01Panel.DockForm(DFI05, DFI01, DockStyle.Fill, zDockMode.Inner);
                }
                else
                {
                    DockContainer01Panel.DockForm(DFI05, DockStyle.Fill, zDockMode.Inner);
                }
                if (!EnableActivatedEventDictionary.ContainsKey(FormStyle.ImageHandleForm))
                {
                    EnableActivatedEventDictionary.Add(FormStyle.ImageHandleForm, 0);
                }
                EnableActivatedEventDictionary[FormStyle.ImageHandleForm]++;
                break;

            case FormStyle.PsdHandlerForm:
                DockableFormInfo DFI06 = DockContainer01Panel.Add((PsdHandlerForm)InstanceForm, zAllowedDock.All, new Guid("a6402b80-2ebd-4fd3-8930-024a6201d001"));
                DFI06.ShowContextMenuButton = false;
                if (DockContainer01Panel.GetFormInfo(StartPageForm.Instance) != null)
                {
                    DockContainer01Panel.DockForm(DFI06, DFI01, DockStyle.Fill, zDockMode.Inner);
                }
                else
                {
                    DockContainer01Panel.DockForm(DFI06, DockStyle.Fill, zDockMode.Inner);
                }
                if (!EnableActivatedEventDictionary.ContainsKey(FormStyle.PsdHandlerForm))
                {
                    EnableActivatedEventDictionary.Add(FormStyle.PsdHandlerForm, 0);
                }
                EnableActivatedEventDictionary[FormStyle.PsdHandlerForm]++;
                break;

            default:
                break;
            }
        }