Exemplo n.º 1
0
        public bool ShowDesign(ImageModuleDesign imgModuleDesign, IWin32Window owner)
        {
            _imgModuleDesign = imgModuleDesign;

            toolsConfig1.InitToolDesign(_imgModuleDesign.ToolsDesign);

            this.ShowDialog(owner);

            return(_isOk);
        }
Exemplo n.º 2
0
        protected override void ReloadCustomDesign(string customContext)
        {
            if (string.IsNullOrEmpty(customContext))
            {
                return;
            }

            _imgModuleDesign = JsonHelper.DeserializeObject <ImageModuleDesign>(customContext);

            LoadDesign();
        }
Exemplo n.º 3
0
        public ImageControl()
        {
            InitializeComponent();

            _imgModuleDesign = new ImageModuleDesign();

            _imgModuleDesign.ToolsDesign.Visible  = true;
            _imgModuleDesign.ButImgRefreshVisible = true;
            _imgModuleDesign.ButImgSettingVisible = true;

            _imgModuleDesign.ToolsDesign.BackColor  = toolStrip2.BackColor;
            _imgModuleDesign.ToolsDesign.ForceColor = toolStrip2.ForeColor;
        }